Page 1 of 1

STATSUM counter

Posted: Thu Apr 07, 2011 11:25 pm
by Kyrana
I'm having some trouble with this for some reason, it doesnt want to add them and the #SUB is puting 'abilities' at the front of every line of my stat, Like this:

You are a 74 year old female human channeler.
abilities mood is currently: Brave
abilities height is 5 feet, 10 inches, weight 214 pounds, BMI 30, weight carried 0.0 lbs, worn: 23.7 lbs.
Offensive Bonus: 5 Dodge Bonus: 0, Parry Bonus: 27 Total Defense: 27.
abilities abilities are: Str: 15, Int: 16, Wis: 18, Dex: 17, Con: 15
You have died 96 times, 67 times to other players, 29 times to monsters, and killed 41 other worthy players.
abilities armor absorbs 1% damage on average.
You are affected by:

This is the ZMUD script i wrote to do it but there must be somthing wrong..... can someone help please?

Code: Select all

#CLASS {statsum}
#VAR sum {0}
#TRIGGER {Your abilities are: Str: %1, Int: %2, Wis: %3, Dex: %4, Con: %5} {
#MATH sum @sum+ (%1+%2+%3+%4+%5)
}
#TRIGGER {Your abilities are: Str: (%d), Int: (%d), Wis: (%d), Dex: (%d), Con: (%d)} {#SUB {Your abilities are: Str: %1, Int: %2, Wis: %3, Dex: %4, Con: %5, SUM @sum}
}
#CLASS 0

Re: STATSUM counter

Posted: Thu Apr 07, 2011 11:30 pm
by Kyrana
Never mind, i seem to have fixed it.... Theres nothing wrong with the script but for somereason i had other triggers that would substitute Your for abilities and another one that was nullifying my SUM variable :P NO IDEA how they got there but it's working now.