Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
itpro
Newbie


Joined: 10 Jan 2002
Posts: 3

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Mon Apr 29, 2002 6:25 pm   
 
Under 'View|Preferences|General'...
Did you disable 'Script Parser->General Parsing->Trigger on Commands' ?
Reply with quote
Sildaren
Wanderer


Joined: 19 Jul 2001
Posts: 59
Location: Germany

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net