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
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Wed Nov 22, 2006 9:47 pm   

Using @variables inside a trigger pattern. *SOLVED BY SELF*
 
Hey, anyone know how i can do this...

variable...
@enemies = paul|peter|edward

trigger...

(*)John(*)has killed(*){@enemies}(*)

sample trigger...
The master John has killed the feeble paul.


if the sample trigger fires i want to be able to use %4 to see what the @enemies result was...

eg

The master John has killed the feeble paul.

which will fire... adding 1 to the database record matching the name

#DBLOAD allkills
#if (%find( "%4", died)) {
key=%find( "%4", died)
killstome=%db( @key, tome)
#add killstome 1
#dbput @key tome @killstome
}

*******edit*******

I found that enclosing the @enemies in ( ) allowed me to assign a % to it!

all fixed, thanks
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