|
Synzra Beginner
Joined: 15 Dec 2005 Posts: 25
|
Posted: Sat Dec 17, 2005 8:42 pm
Help on scripting... |
Im kinda stumped! For some reason my walk command is not picking up the trigger!!! Here is what the description:
+---------+ Turn 4
| | [ east south ]
| | The last and final turn before you have to run the track again.
| | | Along the edge of the wall you notice a small gate that takes
| * - | you to the tunnel that they use to bring the cars through to the
| | | | track and pits.
| - |
| | |
+---------+
Hp3774/3774 Mana1333/1669 Exp95897799
As you can see where the exit are but its not picking it up for some reason. Heres are my trigger or class as you may call it.
#CLASS {akill}
#TRIGGER {(White)*} {
#T- walk
#SUSPEND a1
cast chain 1
cast earth 1
#T- akill
}
#CLASS {walk}
#TRIGGER {^[ north east south west ]*} {
#ALARM "a1" +2 {
#STEP
#PAUSE
}
} "" {notrig}
#CLASS 0
it picks up the kill trigger but not the walk trigger. Am I doing this right? Or do I have to use the path command to walk? |
|
|
|
Pseudo Wanderer
Joined: 25 Oct 2005 Posts: 99
|
Posted: Sat Dec 17, 2005 10:22 pm |
^ is used to anchor the trigger to the beginning of the line. By your own example, your line starts with |||
[ and ] are special characters and should be referred to as ~[ and ~] in triggers.
Lastly, by using the directions in the trigger, those directions would always have to exist for the trigger to fire.
So [ north east ] would not fire. Only [ north east south west ] would.
If you are looking for a trigger which only fires when all four directions are present, then here you go.
#CLASS {walk}
#TRIGGER {~[ north east south west ~]} {
#ALARM "a1" +2 {
#STEP
#PAUSE
}
} "" {notrig}
#CLASS 0
If the [ and ] characters arent used anywhere else in the mud in that fashion, you may want to consider:
#TRIGGER {~[(*)~]} {
to pickup all the exits instead of just one set. |
|
|
|
Synzra Beginner
Joined: 15 Dec 2005 Posts: 25
|
Posted: Sat Dec 17, 2005 10:49 pm |
hrm Im still having problem with my guy moving... would making a path be better... K this is the path Im using to go through this one zone. Now the script I have above wont work for me cause alot of the exit are fairly narrow so what I want to do is move along the path Im showing.
12se13nenesensesesw2swseswseswseswseswseswse2ws2wswnwsnw3nwnenwnenwnenwnenwnenw
here are the two output I see on the mud when I cast two of my spells:
Lightning flashes from your fingers!
and
The earth trembles beneath your feet!
how can I stop my path or stop moving and move again after the mob is killed? is it #step? to go again? |
|
|
|
|
|