• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!

how we can display a number as I function of data.

Status
Not open for further replies.
Level 16
Joined
May 2, 2011
Messages
1,345
Hello guys,

Here is the the case:
I changed the interval of mana siphon to be .10 seconds instead of 1.00 seconds, and thus I changed the mana drained per interval to be 1.50 mana points instead of 15.0

sooo, I am wondering how to display it as a function of what I have, 1.5/.1= 15 mana points per second.

Is that somehow possible? how should we write it?
currently its written as follows
Transfers mana between the Blood Mage and a target. Drains <AHdr,DataB1> mana per second from an enemy, or transfers <AHdr,DataE1> mana per second to an ally.|n|nSiphon Mana can push the Blood Mage's mana over its maximum value, though excess mana drains off rapidly if not used.|nLasts <AHdr,Dur1> seconds.
and it displays as follows
Transfers mana between the Blood Mage and a target. Drains 1.5 mana per second from an enemy, or transfers 3.0 mana per second to an ally.|n|nSiphon Mana can push the Blood Mage's mana over its maximum value, though excess mana drains off rapidly if not used.|nLasts 6 seconds.

I want to change that 1.5 to be 15.0 and that 3.0 to be 30.0
 
Status
Not open for further replies.
Top