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
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Wed May 02, 2012 7:08 pm   

making a root counter for MM
 
Hello everyone,

I am trying to design a root counter that can be displayed on my status bar, But I seem to run into several snags

1 snag) the variable RootsCollected is displaying this (1.'a bag bearing the insignia of the Council of Seven' + 2.'a bag bearing the insignia of the Council of Seven') instead of the total amount that is in these 2 rootbags

2 snag) You see no %item(@root_bag,1) here. would pop up when i activate this trigger and loop until the end of the block of code

any ideals or suggestion would be helpful.

also I am running Zmud 7.21 (not planning on changing) Wink




#Class {root_counter}
#TRIGGER {^You take (%d) a maleficarum root from the corpse} {#var RootsGathered {@rootsgathered+%1}};open %item(@Root_Bag,1);put all.root %item( @Root_Bag, 1);close %item(@Root_Bag,1)}
#TRIGGER {^The master of clans tells you 'Thank you for the (*) gem} {#var rootsgathered {@rootsgathered - %1}}
#TRIGGER {^A maleficarum root crackles and burns!} {#var rootsgathered {@rootsgathered - 1}}
#TRIGGER {You take a maleficarum root from the corpse of *} {#var RootsGathered {@rootsgathered+1}};open %item(@Root_Bag,1);put all.root %item( @Root_Bag, 1);close %item(@Root_Bag,1)}
#TRIGGER {(%d) A gnarled and blackened root is on the ground.} {#var RootsGathered {@rootsgathered+%1}};open %item(@Root_Bag,1);get all.root;put all.root %item( @Root_Bag, 1);close %item(@Root_Bag,1)}
#TRIGGER {^You aren't carrying anything that will fit into {a|an} (*).} {#var @Root_Bag %delitem(%item(@Root_Bag,1),@Root_Bag);open %item(@Root_Bag,1);put all.root %item(@Root_Bag,1);close %item(@Root_Bag,1)}
#VAR RootsCollected
@RootsCollected = (1.'a bag bearing the insignia of the Council of Seven' + 2.'a bag bearing the insignia of the Council of Seven')
#STAtus @RootsCollected
#Class 0

Question
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed May 02, 2012 9:02 pm   
 
Quote:

@RootsCollected = (1.'a bag bearing the insignia of the Council of Seven' + 2.'a bag bearing the insignia of the Council of Seven')


This error should be obvious.
_________________
EDIT: I didn't like my old signature
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