|
itpro Newbie
Joined: 10 Jan 2002 Posts: 3
|
Posted: Tue Apr 16, 2002 7:48 pm
notrig option goes where? useable with #TEMP? |
I have this trigger
#TEMP {@findVictom} {#IF %pos( Kleftis, %trigger) {
pickpocket @victom
} {#IF %pos( front, %line2) {
advance @victom
pickpocket @victom
} {
retreat @victom
pickpocket @victom
}}}
problem is when it exacutes retreat @victom or advanced @vicom and sends the mud that command til Zmud crashs from stack overload, how do I use the notrig option?
this trigger is in a alias that sets up all the variables for the trigger here the whole thing
example use
pp 2 begger
#ALIAS pp {
victom=%0
#IF (%isnumber( %1)) {
#IF (%rightback( %1, 1)=1) {findVictom=%concat( %1, "st ", %2)}
#IF (%rightback( %1, 1)=2) {findVictom=%concat( %1, "nd ", %2)}
#IF (%rightback( %1, 1)=3) {findVictom=%concat( %1, "rd ", %2)}
#IF (%rightback( %1, 1)>3) {findVictom=%concat( %1, "th ", %2)}
} {findVictom=%1}
#TEMP {@findVictom} {#IF %pos( Kleftis, %trigger) {
pickpocket @victom
} {#IF %pos( front, %line2) {
advance @victom
pickpocket @victom
} {
retreat @victom
pickpocket @victom
}}}
TACTICAL
}
TACTICAL is the command that outputs the text that trips the trigger |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Apr 22, 2002 4:55 pm |
I don't see anything in this script that would cause a loop, so it's probably somewhere in the TACTICAL command (alias?).
LightBulb
Vague questions get vague answers |
|
|
|
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Mon Apr 29, 2002 6:25 pm |
Under 'View|Preferences|General'...
Did you disable 'Script Parser->General Parsing->Trigger on Commands' ? |
|
|
|
Sildaren Wanderer
Joined: 19 Jul 2001 Posts: 59 Location: Germany
|
Posted: Mon Apr 29, 2002 9:29 pm |
quote: problem is when it exacutes retreat @victom or advanced @vicom and sends the mud that command til Zmud crashs from
stack overload
if it only sends
retreat @victom
instead of
retreat @victom
pickpocket @victom
then you probably have another alias named pickpocket, that is somehow causing the loop.
PS.
your pp alias creates the strings '11st beggar', '12nd beggar', and '13rd beggar' which isn't proper english.
So either your mud is really sloppy coded, or your script is handling the numbers 11, 12, and 13 wrong. |
|
|
|
|
|
|
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
|
|