|
kent Beginner
Joined: 03 Apr 2006 Posts: 29
|
Posted: 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? |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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. |
|
|
|
|
|