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
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Mon May 31, 2004 12:36 pm   

Variable/trigger stuff.
 
Can anyone see why this thing shouldn't work?

Variable:

Name: Illusion2
Value:

Trigger:

Name: *****s you twice in rapid succession with his dirk.
Value: @Illusion2 = 1

Name: Hmmm. Why is everything so difficult to figure out?
Value: #IF {@Illusion2 = 1} {eatq goldenseal}

Name: Hmmmm. Why is everything so difficult to figure out?
Value: #IF {@Illusion2 = 1} {eatq goldenseal}

Name: sinks his fangs into your body and you wince in pain.
Value: @Illusion2 = 1

Name: .
Value: #var Illusion2 = 0

The . trigger has a few spaces after the . . Because the two lines illusions will have some spaces on the end of the first line, as all lines are 80 letters/symbols/spaces.

Anyone see why this shouldn't work?

The whole point is to get it not to eat if the Variable Illusion2 is at 0... and make it eat if it is at 1.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Jun 01, 2004 1:58 am   
 
Pretty simple you have an extra at or 2.
Name: *****s you twice in rapid succession with his dirk.
Value: Illusion2 = 1

Name: sinks his fangs into your body and you wince in pain.
Value: Illusion2 = 1
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