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
sevenseas
Newbie


Joined: 03 Jan 2007
Posts: 3

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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)
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
sevenseas
Newbie


Joined: 03 Jan 2007
Posts: 3

PostPosted: Wed Jan 03, 2007 2:09 pm   
 
With these wildcards there are never duplicates.
Reply with quote
sevenseas
Newbie


Joined: 03 Jan 2007
Posts: 3

PostPosted: Wed Jan 03, 2007 2:12 pm   
 
Bah! I figured it out. Was another trigger deleting the first item off my stringlist. My bad.
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