kent Beginner
Joined: 03 Apr 2006 Posts: 29
|
Posted: 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)
#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
|
|