  | 
	
	
	
		kent Beginner
 
  Joined: 03 Apr 2006 Posts: 29
 
  | 
		
		  
			
			   Posted: 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 | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		kent Beginner
 
  Joined: 03 Apr 2006 Posts: 29
 
  | 
		
		  
			
			   Posted: 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 | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		kent Beginner
 
  Joined: 03 Apr 2006 Posts: 29
 
  | 
		
		  
			
			   Posted: 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 | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		Edogg Beginner
 
  Joined: 27 Feb 2011 Posts: 17
 
  | 
		
		  
			
			   Posted: 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 | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		| 
		
		 | 
	
	
		 |