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


Joined: 16 Sep 2008
Posts: 17

PostPosted: Wed Sep 17, 2008 12:27 am   

stringlist help
 
Ok, so i made a stringlist with the stored variables in it. The problem is that I have no idea how to get the triggers to react to the stringlist variables.

stringlist name: afflicts

value

1. paralysis
2. stupidity
3. clumsiness

So then I made a trigger like this:

pattern: You gasp as your fine-tuned reflexes disappear into a haze of confusion
value: #var clumsiness 1

The only problem is that this made a new variable called clumsiness. Please help someone! Thank you in advance.
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Wed Sep 17, 2008 12:46 am   
 
You need database variable.

affect name would be key, the case if it's currently active or not the value.

Code:

#addkey Affects paralysis 0
#addkey Affects stupidity 0
#addkey Affects clumsiness 0


Then, when you got your trigger:

Code:

#trigger {You gasp as your fine-tuned reflexes disappear into a haze of confusion} {#addkey Affects clumsiness 1}
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Wed Sep 17, 2008 12:48 am   
 
#ADDI afflicts {affliction} - adds unique members
#DELI afflicts {affiction} - removes members
#IF (%ismember("affliction", @afflicts)) {do stuff} - checks to see if you have said member
_________________
Discord: Shalimarwildcat
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