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: Sun Apr 21, 2013 11:25 pm   

Maleficarum Counter
 
Hello,

I am trying to create a Maleficarum Counter and this is what I have so far:


#VAR TotalRoots {}
#VAR RootsRecieved {}
#VAR CorpseRoot {}
#TRIGGER {You take %1 of a maleficarum root from the corpse} {@RootsRecieved = %replace( "%1", ",");#AD TotalRoots @RootsRecieved}

#TRIGGER {You take %1 from the corpse} {@CorpseRoot = %replace("%1", ",");#math TotalRoots (@TotalRoots+@CorpseRoot)}

{@TotalRoots = %replace("%1", ",");#math TotalRoots (@TotalRoots+@RootsRecieved)}

#ST {Roots gathered: @TotalRoots}

#Class 0

It displays this on my status bar:

Roots gathered: a maleficarum roota maleficarum roota maleficarum root

Question I have is what am i over looking here to fix the display issue
Reply with quote
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Mon Apr 22, 2013 6:28 am   Maleficarum Counter
 
I pasted the page and know that the Class {Maleficarum Counter} is missing
also this is for Materia Magica
sorry for the confussion
Reply with quote
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Thu Apr 25, 2013 8:34 pm   rewrote Maleficarum Counter
 
#class {Maleficarum Counter}
#VAR TotalRoots %d

#TRIGGER {You take (%d) of a maleficarum root from the corpse} {#AD TotalRoots + %d}

#TRIGGER {You take a maleficarum root from the corpse};#AD TotalRoots + 1

#TRIGGER {A gnarled and blackened root is on the ground.};#AD TotalRoots + 1

#ST {Roots gathered: @TotalRoots}

#Class 0

I rewrote the class and it returns odd read out in my status bar.
help please
Reply with quote
Edogg
Beginner


Joined: 27 Feb 2011
Posts: 17

PostPosted: Fri Apr 26, 2013 8:50 pm   
 
#CLASS {Maleficarum Counter}
#VAR rootcounter {}
#VAR TotalRoots {}
#TRIGGER {You take (*) of a maleficarum root} {
#var rootcounter %1
#MATH TotalRoots (@TotalRoots+@rootcounter)
}
#TRIGGER {You take a maleficarum root} {
rootcounter=1
#MATH TotalRoots (@TotalRoots+@rootcounter)
}
#ST {Roots gathered: @TotalRoots}
#CLASS 0
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