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
Vrasp
Newbie


Joined: 06 Jan 2006
Posts: 3

PostPosted: Sat Mar 14, 2009 1:26 pm   

Math Exponents/Powers
 
Is there any way to do exponents in ZMud? I'm asking because I'm trying to do my exponent as a decimal, eg 2^0.5
Reply with quote
Tech
GURU


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

PostPosted: Sun Mar 15, 2009 6:21 am   
 
Not directly but you can use #MSS to access VB script. Something like this should do the trick.

Code:
#SCRIPT {function test(x,y):test=x^y:end function}
#SHOW %mss("test(2,2)")
_________________
Asati di tempari!
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Mon Mar 16, 2009 1:15 pm   
 
Didn't someone write a number of scripts to handle math in Zmud? I don't much need those but I saw it several years back.
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