|
sevenseas Newbie
Joined: 03 Jan 2007 Posts: 3
|
Posted: Wed Jan 03, 2007 1:37 pm
#ADDITEM - Having problem with one trigger |
I use the #additem command frequently but I can't seem to figure out why this isnt working. Trigger captures wildcard correctly.
put %1 in @sack
#additem rune %1
Seems simple enough. It places the rune correctly in my sack but doesnt add it to the variable rune. It most likely something simple that Im just not seeing. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Jan 03, 2007 1:44 pm |
#additem doesn't allow duplicates, which might be your problem. Instead you'll have to use %additem:
#var rune %additem(%1,@rune) |
|
|
|
sevenseas Newbie
Joined: 03 Jan 2007 Posts: 3
|
Posted: Wed Jan 03, 2007 2:09 pm |
With these wildcards there are never duplicates.
|
|
|
|
sevenseas Newbie
Joined: 03 Jan 2007 Posts: 3
|
Posted: Wed Jan 03, 2007 2:12 pm |
Bah! I figured it out. Was another trigger deleting the first item off my stringlist. My bad.
|
|
|
|
|
|