|
zyran Beginner
Joined: 16 Apr 2003 Posts: 17 Location: USA
|
Posted: 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? |
|
|
|
zyran Beginner
Joined: 16 Apr 2003 Posts: 17 Location: USA
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
zyran Beginner
Joined: 16 Apr 2003 Posts: 17 Location: USA
|
Posted: 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. |
|
|
|
|
|