|
Thalir Novice
Joined: 10 Aug 2002 Posts: 35 Location: USA
|
Posted: Sat Oct 05, 2002 12:45 am
Random Movements |
Hey guys!
how do i create a trigger that will allow me to take the current exits in a room and move through them randomly.
example of room description is below.
[Path to Hell.]
A small roadway bordered by dying hedges bisects the wide path of Death Mountain at a right angle, heading east to west. A thick, half broken sign stands just off to the side of a dirt path. A wooden sign and a broken lantern are here.
This area is illuminated.
You see the 1st Hydra.
Obvious paths: north east southeast south west.
Thanks for any help you guys can throw my way.
As Always I Am Grateful,
Thalir. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Oct 05, 2002 1:13 pm |
#TRIGGER {Obvious paths: (*).} {#EXEC %item(%replace("%1", " ", "|"), %random(1, %numitems(%replace("%1", " ", "|"))))}
Kjata |
|
|
|
Thalir Novice
Joined: 10 Aug 2002 Posts: 35 Location: USA
|
Posted: Sat Oct 05, 2002 6:47 pm |
WOW! your amazing, thank you so much it works like a charm.
One more quick question if you dont mind me asking.
Where would i use the #wait 4000 if i wanted to hold back on the execution of the trigger for a few seconds.
would it be directly after #exec or infront of , %random. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Oct 05, 2002 10:23 pm |
It would be in front of #EXEC, but the correct way would be to use an alarm:
#TRIGGER {Obvious paths: (*).} {#ALARM {+4} {#EXEC %item(%replace("%1", " ", "|"), %random(1, %numitems(%replace("%1", " ", "|"))))}}
Kjata |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|