 |
shaun.murray Magician

Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Sun Jun 08, 2008 7:15 pm
stringlist q |
how is it that i could remove a value? for example...
Code: |
#var {mob_list} {one=10|two=10}
#trg {one goes} {<this is where i want to subtract a key from the db var>}
#trig {two goes} {<this is where i want to subtract a key from the db var>} |
basically, when i get a 'one goes' it will subtract a value from the db mob_list and they key=one. tia! |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sun Jun 08, 2008 8:07 pm |
#trig {one goes} {#ADDKEY mob_list {one} {(%db(@mob_list,"one")-1)}}
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Jun 08, 2008 9:28 pm |
You could also use #add mob_list.one -1.
|
|
|
 |
|
|