|
kazu Beginner
Joined: 16 Sep 2008 Posts: 17
|
Posted: 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. |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: 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
-------------------------------- |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|