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
Thalir
Novice


Joined: 10 Aug 2002
Posts: 35
Location: USA

PostPosted: Fri Oct 11, 2002 8:19 pm   

Putting it all together.
 
hey guys!
I'm having a problem can someone look at it and give me some help pelase.
I have all i need as far as what the triggers will do i just cant get them to talk to one another.
*********************************************
#class Moveme
#TRIGGER {Obvious exits: (*).} {#ALARM {+4} {#EXEC %item(%replace("%1", " ", "|"), %random(1, %numitems(%replace("%1", " ", "|"))))}}


#alias stopme
#trigger {You see the} {#t- Moveme}
#trigger {the small shadow claws at you}{claw shadow}
#trigger {Turns and runs %1} {q c|%1}
#trigger {With a crash, everything it was carrying falls to the ground before you} {#wa 60000}
#trigger {sit} {treat Thalir}
#trigger {you treat your wounds} {treat Thalir}
#trigger {Target is not injured} {stand}
#trigger {you stand up} {invoke 3 at Thalir}
#trigger {The sparkling silver lights about you fade away} {#t+ Moveme}
*********************************************

Basicly this is meant to move randomly in a concentrated area.
once Zmud see's [YOU SEE THE 1st SMALL SHADOW] it turns off [MOVEMENT] and begins the secondary commands.
Once the secondary commands have completed and Zmud see's [The sparkling silver lights about you fade away] it turns [movemet] back on and i continue on my way.

Thanks for helping you guys are great!
Thalir
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 12, 2002 3:02 am   
 
#class Moveme
#TRIGGER {Obvious exits: (*).} {#ALARM {+4} {#EXEC %item(%replace("%1", " ", "|"), %random(1, %numitems(%replace("%1", " ", "|"))))}}
#CLASS 0
#alias stopme {#NOOP THIS ALIAS DOESN'T HAVE ANY ACTION}
#trigger {You see the} {#t- Moveme}
#trigger {the small shadow claws at you} {claw shadow}
#trigger {Turns and runs (%w)} {q c|%1}
#trigger {With a crash, everything it was carrying falls to the ground before you} {#wa 60000}
#trigger {sit} {treat Thalir}
#trigger {you treat your wounds} {treat Thalir}
#trigger {Target is not injured} {stand}
#trigger {you stand up} {invoke 3 at Thalir}
#trigger {The sparkling silver lights about you fade away} {#t+ Moveme}

I admit to being confused about the action q c|%1, but that's what you have so I presume it works. You need a space between each section of a trigger, such as in the "claw shadow" trigger. If you expect these triggers to work while the #ALARM is disabled, they have to be in a different class since you are disabling the #ALARM's class.

LightBulb
Senior Member
Reply with quote
Thalir
Novice


Joined: 10 Aug 2002
Posts: 35
Location: USA

PostPosted: Sat Oct 12, 2002 5:11 am   
 
#trigger {Turns and runs (%w)} {q c|%1}
is meant to follow a shadow when it runs into another room but currently it does not work. the {q c|%1 was} was a typo should have been {q c;%1} i think? but that doesnt work either.
Q C stand for que cleared the mud i play allows for 6 commands to be placed in a que if i type q c it will stop any command you enterd into the que.

Thank you for your help as always i am gratful.

Thalir
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