Linux AGI_Studio

Sidrious play Can someone help me?

I know how to do views, a little do prios. and a little to script logics. The problem is, so many thing what i do, do someting wrong. Like:

Logics

if (said("wear","maks")) {
if(has("mask")) {
print("Ok.");
load.ego(o2);
set.ego(o2);
}
else {
print("You don't have a mask.");
}
}
...

or Prioritys

If i put a pink colour anywhere (@the priority-screen), i can walk behind, then no one can see the char. But if i go under the pink colour, nobody can see me! I must have to go 1cm down, then i can see the Char.


Help me!

-Ever alias SidyPlay
Zonkie Hi,

you can't use a command like "set.ego", because that doesn't exist. Instead, you have to assign a different view to the ego, which you do by
set.view(object, view)

Try the code like


if (said("wear","mask")) {
if(has("mask")) {
print("Ok.");
load.view(view number);
erase(ego);
set.view(ego,view number);
draw(ego);
}
else {
print("You don't have a mask.");
}
}


I'm not sure if you have to erase the ego and draw it again, but this works for me.

Good luck!

Zonkie
Joel You do not have to erase ego and draw it again...but if I'm not mistaken ego will be updated on the next interpreter cycle and not immediately if you don't. It may not be updated until the next interpreter cycle anyway, but I wouldn't put money on it.
Joel I think you may also be able to do a force.update() without needing to bother with erasing and redrawing ego.
Andrew_Baker Also, if your trouble is simply the pink priority covering your object inappropriately, try setting it to one priority lower. I often set my priority one too high based on the number given me in Picedit...