![](templates/Classic/images/spacer.gif) |
shaun.murray Magician
![](images/avatars/109438204648cab86f4d289.jpg)
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! |
|
|
![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
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 |
|
|
![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
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.
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|