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


Joined: 02 Mar 2005
Posts: 20

PostPosted: Sat Apr 28, 2007 7:16 pm   

Hi. I'm looking to calculate total exp from a nuke...
 
basically what I want to do is subtract original exp from new exp (2304198xp - 967468xp) = 1336730 total exp

so how do I do that in Zmud?


153/153|580/580|138/138 2304198xp >fbomb
You conjure up a large thermonuclear device which promptly explodes!
Your experiment in nuclear physics was too much for the warhorse.
The warhorse is dead! R.I.P.
You receive 946 experience points.
get all.coins corpse
Your blood freezes as you hear the warhorse's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic foot soldier.
The Gothic foot soldier is dead! R.I.P.
You receive 4634 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic foot soldier's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for a Gothic woman.
A Gothic woman is dead! R.I.P.
You receive 946 experience points.
get all.coins corpse
Your blood freezes as you hear a Gothic woman's death cry.
Your experiment in nuclear physics was too much for the warhorse.
The warhorse is dead! R.I.P.
You receive 946 experience points.
get all.coins corpse
Your blood freezes as you hear the warhorse's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic foot soldier.
The Gothic foot soldier is dead! R.I.P.
You receive 4634 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic foot soldier's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic foot soldier.
The Gothic foot soldier is dead! R.I.P.
You receive 4634 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic foot soldier's death cry.
Your experiment in nuclear physics was too much for the Gothic auxiliary.
The Gothic auxiliary is dead! R.I.P.
You receive 2960 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic auxiliary's death cry.
Your experiment in nuclear physics was too much for the Gothic auxiliary.
The Gothic auxiliary is dead! R.I.P.
You receive 2960 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic auxiliary's death cry.
Your experiment in nuclear physics was too much for the packhorse.
The packhorse is dead! R.I.P.
You receive 188 experience points.
get all.coins corpse
Your blood freezes as you hear the packhorse's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic auxiliary.
The Gothic auxiliary is dead! R.I.P.
You receive 2960 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic auxiliary's death cry.
Your experiment in nuclear physics was too much for the Gothic auxiliary.
The Gothic auxiliary is dead! R.I.P.
You receive 2960 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic auxiliary's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic archer.
The Gothic archer is dead! R.I.P.
You receive 9981 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic archer's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic cavalry.
The Gothic cavalry is dead! R.I.P.
You receive 16656 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic cavalry's death cry.
Your experiment in nuclear physics was too much for the Gothic foot soldier.
The Gothic foot soldier is dead! R.I.P.
You receive 4634 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic foot soldier's death cry.
Your experiment in nuclear physics was too much for the Gothic foot soldier.
The Gothic foot soldier is dead! R.I.P.
You receive 4634 experience points.
get all.coins corpse
Your blood freezes as you hear the Gothic foot soldier's death cry.
There is a loud roar, but the shield holds!

153/153|0/580|138/138 967468xp >You recite a scroll of recall which dissolves.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sat Apr 28, 2007 7:48 pm   
 
Try:
Code:

#CLASS {FBomp}
#VAR FB_xp {}
#VAR FB_exploded {false} {true}
#TRIGGER {^%d/%d|%d/%d|%d/%d (%d)xp >} {
  #if (@FB_exploded = "true") {
    #var FB_xp_gain %eval( "%1 - @FB_xp")
    #var FB_exploded false
    #echo Gain:@FB_xp_gain
    } {}
  #var FB_xp %1
  }
#TRIGGER {^You conjure up a large thermonuclear device which promptly explodes!} {#var FB_exploded true}
#CLASS 0


You probably want to remove the line that says #echo Gain:@FB_xp_gain and do use the FB_xp_gain variable to do something useful.
Anyways thats my go at it. Good luck!

p.s. It should be noted that in the text you posted above your experience went down from 2304198 to 967468 which by my math means in this case gain would be -1336730
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
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