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
zxtiggerxz
Beginner


Joined: 21 Jan 2003
Posts: 18

PostPosted: Tue Feb 03, 2004 8:12 pm   

Simplescript
 
I was wondering if there was a way to set up a script so that a string of certain numbers would be added, and then totaled.

EX:

You chop Wooly Mammoth for 20, 360, 228, and 69 damage, missing twice

when that displayed, i want it to total it and display something like this:

say Mammoth: Total Hit

Basically, make the character say the total damage done. Is there a way to do this?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Feb 03, 2004 8:34 pm   
 
#TR {You chop (*) for (*) damage} {#SAY %1: %eval( %replace( %replace( "%2", ", ", " + "), " and ", " "))}
Reply with quote
zxtiggerxz
Beginner


Joined: 21 Jan 2003
Posts: 18

PostPosted: Tue Feb 03, 2004 8:49 pm   
 
Thank you. is there a way to put a pause in that? they get return strikes

You chop Tundra Bear for 31, 216, 135, 112, and 115 damage, missing once.
Tundra Bear: 609
Tundra Bear bit you for 38, 81, and 29 damage, missing thrice.

and when i get another weapon do i just change the "chop" to whatever the other weapon does?
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