| 07-01-2007, 06:33 AM | #1 |
I want to create an ability that raises the maximum hp temporarily. If anyone has played World of Warcraft, it's Commanding Shout. What function would I need to use? |
| 07-01-2007, 06:49 AM | #2 |
This is JASS, and Blade.dk set a system about this... http://www.wc3campaigns.net/showthre...etunitmaxstate |
| 07-01-2007, 07:05 AM | #3 |
unless I'm mistaken about what you just showed me, that isn't showing me what I want to do. Make a buff that will raise your maximum life by X amount, and after 20 seconds, returns back to it's original life. However, when they return to their original life, it is proportional to the life they had with the increase maximum life. example: unit has originally 100 hp. the buff gives 20 hp. the new max would be 120 hp. later the unit is dealt 40 dmg, and now has 80 hp. the unit loses the buff that gave it the bonus 20 hp. and now has 66 hp. (80/120 = 66/100) is this possible? |
| 07-01-2007, 07:11 AM | #4 |
Yeah... you just need to reconfigure the actions and stuff... not every ability which gives a buff is ALWAYS based on buffs. Sometimes they are waits and have triggers to check for dispell and etc... |
| 07-01-2007, 07:52 AM | #5 |
You should save the percent of current life somewhere and see if unit has buff. If it has, save the percent. If unit doesn't have a buff, look for the latest percent of life and "load" it on unit by setting her percent of life to previous one. This will be one consuming spell IMHO, since damage can happen anywhere, anytime and you would have to check on damage, dispel or expiring. |
| 07-01-2007, 08:16 AM | #6 |
As far as I know from what Belphegor explained, there is no need for variables for MUI (MUI = multi instanceablity right?), all you need is custom value of units. Dispel would be one of the hardest things to take in to consideration - you could set all dispell spells to triggers that remove a large list of buffs, but that could lag for AoE spells. |
