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
zyran
Beginner


Joined: 16 Apr 2003
Posts: 17
Location: USA

PostPosted: Wed Apr 16, 2003 10:27 pm   

loopexp triggers
 
ok here's the trigger

^You feel a tightening sensation grow in
your lungs

#cw 10
#if ((@stunned=0) & (@sleep=0) & (@anorexia=0)) {
#if (%item( @pw, 1)="") {
#additem pw a1
#var asthma 1
#t+ a1
%sort( @pw)
} {
#var asthma 1
#additem pw a1
%sort( @pw)
}
}
Then in the class a1 I got a trigger for
eating an herb every half of a secon so that
it's persistant in eating it till it's eaten
@asthma=1 loopexp 0 outr kelp;eat kelp
wait 500
so it'll keep eating till
^Your bronchial tubes open up and your asthma is cured

#var asthma 0
#t- a1
#state @asthma 0
#delitem pw a1

however I keep getting a loop detection thingy
and it'll close zmud.What am I doing wrong?
Reply with quote
zyran
Beginner


Joined: 16 Apr 2003
Posts: 17
Location: USA

PostPosted: Wed Apr 16, 2003 11:13 pm   
 
oh yah there's a state 2 in the @asthma=1 trig...that's what the wait 500 is
and the state one is the loopexp with outr kelp eat kelp
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Apr 17, 2003 3:22 am   
 
Perhaps click on that trigger, then File->Export Text

Then post that trigger and its states.

The #WAIT is not recommended. There is a better way to get around that.

Ton Diening
Reply with quote
zyran
Beginner


Joined: 16 Apr 2003
Posts: 17
Location: USA

PostPosted: Thu Apr 17, 2003 12:06 pm   
 
#TRIGGER {@asthma=1} {outr kelp;eat kelp} "herbs|kelp|a1" {loopexp|param=1}
#COND {} {} {wait|param=500}

the {loopexp|param=1} was {loopexp|param=0}
and it works now but what other ways are you talking about. Would greatly appreciate any input.
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