Author Topic: Linux AGI_Studio  (Read 2164 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwarfy

Linux AGI_Studio
« on: November 07, 2002, 02:26:06 PM »
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


I feel the power! It's in my shoes! *c-walking*

Offline Zonkie

Re:Linux AGI_Studio
« Reply #1 on: November 07, 2002, 03:25:15 PM »
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
Code: [Select]
set.view(object, view)
Try the code like

Code: [Select]
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

Offline Joel

Re:Linux AGI_Studio
« Reply #2 on: November 07, 2002, 03:32:10 PM »
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.

Offline Joel

Re:Linux AGI_Studio
« Reply #3 on: November 07, 2002, 03:35:10 PM »
I think you may also be able to do a force.update() without needing to bother with erasing and redrawing ego.

Offline Andrew_Baker

Re:Linux AGI_Studio
« Reply #4 on: November 08, 2002, 03:52:52 AM »
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...
I hope you realize that one day I will devour the Earth.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.036 seconds with 21 queries.