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


Joined: 30 May 2002
Posts: 17
Location: Denmark

PostPosted: Mon Aug 12, 2002 8:46 pm   

help on script
 
Hi

This is my script and I use zmud 6.32

#ALIAS start {
#T+ {styles}
#VAR currentstyle 1
style %item( @sty, @Currentstyle) }

#ALIAS stop { #T- {styles} }

#CLASS {styles}
#VAR sty {berserk|aggressive|standard|defensive|evasive}
#TRIGGER {^You nearly trip in a lame attempt to adopt} {style %item( @sty, @Currentstyle)}
#TRIGGER {^You adopt} {
#ADD Currentstyle 1
#IF (@CurrentCycle > %numitems( @sty)) {#VAR CurrentCycle 1)}
style %item( @sty, @Currentstyle)
}
#CLASS 0

This is my patterns:

You nearly trip in a lame attempt to adopt a berserk fighting style.
You nearly trip in a lame attempt to adopt an aggressive fighting style.
You nearly trip in a lame attempt to adopt a standard fighting style.
You nearly trip in a lame attempt to adopt a defensive fighting style.
You nearly trip in a lame attempt to adopt an evasive fighting style.

You adopt a berserk fighting style.
You adopt an aggressive fighting style.
You adopt a standard fighting style.
You adopt a defensive fighting style.
You adopt an evasive fighting style.

I cant get it to keep running, it stops and I don’t know why? It should first stop
when I type stop


Logic
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Mon Aug 12, 2002 11:17 pm   
 
Logic, you need to use the same variable in this whole script, but you're using CurrentStyle and CurrentCycle, 2 variables. Update your "You adopt" trigger to use CurrentStyle and it should be okay.

Iljhar

Edit: Err, my reply looks funny now, so EDIT!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Aug 12, 2002 11:55 pm   
 
quote:

While your heart is in the right place, MattLofton, it has nothing to do with the fact that Logic is using a beta version.

Logic, you need to use the same variable in this whole script, but you're using CurrentStyle and CurrentCycle, 2 variables. Update your "You adopt" trigger to use CurrentStyle and it should be okay.

Iljhar



Duly retracted, and apologies to everyone.

li'l shmoe of Dragon's Gate MUD
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