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 Apr 05, 2006 5:32 pm   

kill count of goblins
 
#CLASS {killcount}
#VAR GoblinEars {}
#VAR NPC_Killed {}
#TRIGGER {You take a (%d) from the corpse of a (%d)} {
#MATH GoblinEars {@GoblinEars + @GoblinEars}
#MATH NPC_Killed (@NPC_Killed + @NPC_Killed)
}
#STAT {Ears: @GoblinEars. Npc Killed: @NPC_Killed}
#CLASS 0

I am trying to make a counter for how many goblins i kill and the total amount of ears i take from their corpse. As it stands the status bar displays this

Ears: 0 Npc Killed:

I have 11 ears but it is not showing
any ideal what i am doing wrong?
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Apr 05, 2006 7:29 pm   
 
i would say part of the problem is that you arent adding 1 to the counters...

The other part is that you use %d for words.

Another part is that you don't even show when it really is a goblin.

#CLASS {killcount}
#VAR GoblinEars {}
#VAR NPC_Killed {}
#TRIGGER {You take an ear from the corpse of a dead goblin} {
#MATH GoblinEars {@GoblinEars + 1}
#MATH NPC_Killed (@NPC_Killed + 1)
}
#STAT {Ears: @GoblinEars. Npc Killed: @NPC_Killed}
#CLASS 0

without the exact msg can't do much more than show ya that and let you figure it out.
_________________
http://www.Aardwolf.com
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