Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
werewolf
Newbie


Joined: 04 Jun 2007
Posts: 1

PostPosted: 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?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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