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
lucid
Newbie


Joined: 02 Sep 2003
Posts: 3
Location: USA

PostPosted: Tue Sep 02, 2003 10:24 pm   

#if (warning, this is a loaded question)
 
here is the deal. on the mud, examine slar produces this:
The mighty Slar stands over 8 feet tall. His eyes fix on you and chills shoot up your back. His 10 foot tail drapes to the floor and curves at its tip. Long spikes thrust outwards from his back. These spikes appear quite sharp and dangerous. A small cloud of smoke forms in front of the Slar's nostrils with each of its long, heavy breaths.

Attack the Slar? It'll be your funeral.
He is slightly hurt.
He looks notably clumsy.
The Slar is carrying:
The Slar bears the mark of Source.
The Slar's Plate (worn).
A Fist Hammer (wielded two-handed).

__

so here is the deal, twards the bottom is says " The slar bears the mark of source." This is very important, I need it to note that it is sigiled. I have it doing this so far, when it sees that it is changing @slarbears to 1 from zero. Then I drew this #if statement.

#if {@slarbears = 1} {slarout} {kill slar}

slarout is the exit alias. The goal is to have it kill slar, or leave, all dependent on the sigil (@slarbears). I am having problems due to the fact that the examine trig is looking for "KIll slar? it would be your funeral." and the bearing statment appears after this fact. Any ideas would be great on how to do this.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Sep 02, 2003 11:01 pm   
 
A delayed action is the obvious choice.
#TR {^Attack the Slar? It'll be your funeral.} {#VAR slarbears 0}
#COND {} {#IF (@slarbears = 1) {slarout} {kill slar}} {Wait|Param=2000}
#TR {^The Slar bears the mark of Source.} {#VAR slarbears 1}
Reply with quote
lucid
Newbie


Joined: 02 Sep 2003
Posts: 3
Location: USA

PostPosted: Wed Sep 03, 2003 8:03 pm   
 
Thanks Lightbulb
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