• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

the less hp you have the more mp regen and mov speed you gain

Status
Not open for further replies.
Level 3
Joined
Mar 6, 2011
Messages
26
Is it possible? I want a passive ability that gives you mp regen and mov speed depending on how much hp% you lost.

For Example:
At 100% hp you have +60% mp regen and +10% mov speed.
At 75% hp you have +90% mp regen and +15% mov speed.
At 50% hp you have +120% mp regen and +20% mov speed.
At 25% hp you have +150% mp regen and +25% mov speed.

And please, if you post the triggers can you make them in a way that the ability can be leveled?

Thanks in advance!
 
Level 7
Joined
May 18, 2010
Messages
264
EDITED
  • Level the spell
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to (==) Unholy Aura
    • Actions
      • Set HeroYoureheroBallzOfFlameUnit = (Triggering unit)
      • Unit Group - Add (Triggering unit) to HeroYoureHeroBallzOfFlameGroup
      • Trigger - Turn on Youre trigger <gen>
      • Unit - Add Endurance Aura to HeroYoureheroBallzOfFlameUnit
      • Unit - Add Brilliance Aura to HeroYoureheroBallzOfFlameUnit
  • Youre trigger
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (HeroYoureheroBallzOfFlameUnit is in HeroYoureHeroBallzOfFlameGroup) Equal to (==) True
        • Then - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Percentage life of HeroYoureheroBallzOfFlameUnit) Less than or equal to (<=) 100.00
            • Then - Actions
              • Unit - Set level of Brilliance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) x 1)
              • Unit - Set level of Endurance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) x 1)
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Percentage life of HeroYoureheroBallzOfFlameUnit) Less than or equal to (<=) 75.00
                  • Then - Actions
                    • Unit - Set level of Brilliance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) + 10)
                    • Unit - Set level of Endurance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) + 10)
                      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Percentage life of HeroYoureheroBallzOfFlameUnit) Less than or equal to (<=) 50.00
                        • Then - Actions
                          • Unit - Set level of Endurance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) + 20)
                          • Unit - Set level of Brilliance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) + 20)
                            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • If - Conditions
                                • (Percentage life of HeroYoureheroBallzOfFlameUnit) Less than or equal to (<=) 25.00
                              • Then - Actions
                                • Unit - Set level of Brilliance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) + 30)
                                • Unit - Set level of Endurance Aura for HeroYoureheroBallzOfFlameUnit to ((Level of Ballz of flame for HeroYoureheroBallzOfFlameUnit) + 30)
                              • Else - Actions
                        • Else - Actions
                  • Else - Actions
            • Else - Actions
        • Else - Actions
          • Trigger - Turn off (This trigger)
Now for the spells just use ADD ability
be shure to hide them behind the exzisting ability so they dont notice...
endurance aura FOR movment speed Briliance aura for Mana regen :) and remove Buff... so there is no buff at Buff Bar... and thats it
EDITED

what do u mean with
And please, if you post the triggers can you make them in a way that the ability can be leveled?
Edit: 1972 i got it what u meant... second...
 
Last edited:
Level 7
Joined
May 18, 2010
Messages
264
Make EX:34Lvls of Briliance here and Level 1 2 3 4- 11 12 13 14 - 21 22 23 24 Lvls to the 60 90 120 150 - 90 120 150 180 - 120 150 180 210 Ur numbers play with them :)

Hope u understand the math here that im using...
if ur spells got 10 lvls just ADD more of evrithing
on spells it goes (1 2 3 4) for lvl1 spell (11 12 13 14) for lvl 2 (21 22 23 24) for lvl 3etc
u do the numbers that u need
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
1. Abilities with lots of levels increase load time.
2. A system could be created to add % mana and % movement that is universally usable instead of a high level ability unique to this spell.
3.
(HeroYoureheroBallzOfFlameUnit is in HeroYoureHeroBallzOfFlameGroup) Equal to (==) True
You are meant to be checking if the group is empty.
4. Your flow control layout results in redundant ability level sets (as it falls into another cateogry of health).
5. You test 1 more condition than nescescary. If it is not less than or equal to 25%, 50% or 75% it must logically be less than or equal to 100% so there is no need to test if it is less than 100%. Further more testing if life is less than or equal to 100% is the same as true (unless you can get lifesteal to exceeded maximum health like siphon mana can but in that case the ability should still work).
6. You could cache multiple values (such as the level of the hero ability used).
7. The current ability layout supports mathematical computation of the resulting level (could be done directly with out branches by subtracting 100 by current percentage and dividing by 25% and multiplying by 10).
8. Brillience and Unholy aura have buffs. Look for passives if possible. Also they need to be hidden spell booked. The buffs will also read stupid levels at times.
 
Status
Not open for further replies.
Top