|
werewolf Newbie
Joined: 04 Jun 2007 Posts: 1
|
Posted: Tue Jun 05, 2007 2:07 pm
help |
hi I've been using this trig in zmud for party status short
#gag
#var perc %eval( (%2*100)/%3)
#echo {%1 | %2/%3 | %format( "&5.0f", %eval( %3-%2))} DOWN -%format( "&3.0n", @perc)%
#if (@perc < 85) {#cw 14}
#if (@perc < 40) {#cw 12}
#if (@perc > 85) {#cw 2}
since I switched to zmud it doesn't work, help? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Tue Jun 05, 2007 2:56 pm |
Can you post the actual trigger pattern and some sample text that it matches?
A couple quick reccomendations though. Check to see if the perc variable has the correct value. I believe it was fixed, but a while back there were some problems with autotyping (i.e. CMUD correctly determining whether a variable is a string, integer etc).
Also if you won't be using the perc variable outside of this trigger use a local variable instead. It's faster. |
|
_________________ Asati di tempari! |
|
|
|
|
|