Spell Inner Vitality

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
GUI/JASS? - GUI
MUI - No
Leakless? - Yes
Lagless? - Yes

Inner Vitality


Description:
Magically unlocks the potential regenerative power within a target unit, healing its life force based upon its dominant attribute. If the target's health is below 40% it will heal faster. Lasts 16 seconds.
Level 1 - 5(15)% of dominant attribute + 2 hp regen per second
Level 2 - 10(30)% of dominant attribute + 4 hp regen per second
Level 3 - 15(45)% of dominant attribute + 6 hp regen per second
Level 4 - 20(60)% of dominant attribute + 8 hp regen per second

Note: I slightly edited the ability to regen on the attribute, which has more points than the others, not on the main. Map design was not made by me. It is a free Spell Template from TheHiveWorkshop for anyone to use.

Screenshots:
innervitality1wd2.jpg

innervitality2ef9.jpg


Code:
Inner Vitality
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Inner Vitality 
    Actions
        Set Target = (Target unit of ability being cast)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Strength of Target (Include bonuses)) Greater than or equal to (Agility of Target (Include bonuses))
                (Strength of Target (Include bonuses)) Greater than or equal to (Intelligence of Target (Include bonuses))
            Then - Actions
                Set Attribute = (Real((Strength of (Target unit of ability being cast) (Include bonuses))))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Agility of Target (Include bonuses)) Greater than or equal to (Strength of Target (Include bonuses))
                (Agility of Target (Include bonuses)) Greater than or equal to (Intelligence of Target (Include bonuses))
            Then - Actions
                Set Attribute = (Real((Agility of (Target unit of ability being cast) (Include bonuses))))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Intelligence of Target (Include bonuses)) Greater than or equal to (Strength of Target (Include bonuses))
                (Intelligence of Target (Include bonuses)) Greater than or equal to (Agility of Target (Include bonuses))
            Then - Actions
                Set Attribute = (Real((Intelligence of (Target unit of ability being cast) (Include bonuses))))
            Else - Actions
        Set Level = (Real((Level of Inner Vitality  for (Triggering unit))))
        Trigger - Turn on Inner Vitality HpS <gen>
        Wait 16.00 seconds
        Trigger - Turn off Inner Vitality HpS <gen>

Code:
Inner Vitality HpS
    Events
        Time - Every 0.99 seconds of game time
    Conditions
        (Target is alive) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Percentage life of Target) Greater than or equal to 40.00
            Then - Actions
                Unit - Set life of Target to ((Life of Target) + ((Attribute x (Level x 0.05)) + (Level x 2.00)))
            Else - Actions
                Unit - Set life of Target to ((Life of Target) + ((Attribute x (Level x 0.15)) + (Level x 2.00)))




EDIT: Ok, I found that the buff doesn't attach an effect. I'll try to fix it and upload the map again.
EDIT2: Updated. Hope I fixed the buff now...
EDIT3: Updated again. Fixed trigger thanks to Daxtreme.
EDIT4: Fixed again...
EDIT5: Another fix, removing a few bugs and one trigger. Changed to heal not based on Strength, but on the dominant attribute, because most of the times it is the main (except Naix in DotA).
 

Attachments

  • [DotA Spell]Inner Vitality v1.04.w3x
    71.2 KB · Views: 1,021

Jazradel

Helping people do more by doing less.
Reaction score
102
OMG A HERO OF MINE ENDED UP IN DOTA
I could not feel anymore awesome at this point.

I attached the original test map if you care. Looking at your spell now.
 

Attachments

  • Huskar_v1.1.w3x
    80.3 KB · Views: 741
K

Kyonu

Guest
I wouldn't really consider something of yours ending up in "DotA", where everyone just attacks once, and runs all the way back to mommy to heal, something to be proud of. ;)

Warcraft III needs more variety!
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Ok, now I'm starting editing the spell to heal from main attribute not from str. I'll also put 1-2 screenshots
EDIT: Come to think of it... I don't know how to do it :( ... Anyway I'll put the screenshots.
EDIT2: Added screenshots
 

waaaks!

Zinctified
Reaction score
255
yeah the new dota hero, i love that guy, and i know all of his strat without reading the guide for him :)
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
yeah the new dota hero, i love that guy, and i know all of his strat without reading the guide for him :)

Yeah he's really nice, but a little imba I think. Anyway will someone check if it leaks, or if there is an easier way to make my triggers, 'cuz I think I messed them...
 

waaaks!

Zinctified
Reaction score
255
can u post ur trigger below the spell, so that some ppl including me dont waste time on downloading, and this isnt my pc, meaning i cant open maps

and also for the image, next time, please cut some of ur image or resize ur image so that, some messages can be read faster, while large image, you need to scroll it to the left and right, and the importance of image is only for the spell u used, meaning cut off some of the image, until the spell is left...
 

emjlr3

Change can be a good thing
Reaction score
395
OMG A HERO OF MINE ENDED UP IN DOTA
I could not feel anymore awesome at this point.

I attached the original test map if you care. Looking at your spell now.

too bad u get no credit for it, go go time well spent ftw
 

elmstfreddie

The Finglonger
Reaction score
203
Wow if anything I made ended up in DotA I'd take those guys to court.

Anyways, so this is a remake of a DotA spell..?
Why?
Just make your own :nuts:
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
I saw a few DotA spells here so I decided to make one more... And it isn't exactly the same as in DotA.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Code:
Inner Vitality
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Inner Vitality 
    Actions
        Set Target = (Target unit of ability being cast)
        Set Strength = (Real((Strength of (Target unit of ability being cast) (Include bonuses))))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Inner Vitality  for (Casting unit)) Equal to 1
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Percentage life of Target) Greater than or equal to 40.00
                    Then - Actions
                        Trigger - Turn on Inner Vitality Level 1 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 1 <gen>
                    Else - Actions
                        Trigger - Turn on Inner Vitality Level 1 Less than 40 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 1 Less than 40 <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Inner Vitality  for (Casting unit)) Equal to 2
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Percentage life of Target) Greater than or equal to 40.00
                    Then - Actions
                        Trigger - Turn on Inner Vitality Level 2 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 2 <gen>
                    Else - Actions
                        Trigger - Turn on Inner Vitality Level 2 Less than 40 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 2 Less than 40 <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Inner Vitality  for (Casting unit)) Equal to 3
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Percentage life of Target) Greater than or equal to 40.00
                    Then - Actions
                        Trigger - Turn on Inner Vitality Level 3 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 3 <gen>
                    Else - Actions
                        Trigger - Turn on Inner Vitality Level 3 Less than 40 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 3 Less than 40 <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Inner Vitality  for (Casting unit)) Equal to 4
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Percentage life of Target) Greater than or equal to 40.00
                    Then - Actions
                        Trigger - Turn on Inner Vitality Level 4 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 4 <gen>
                    Else - Actions
                        Trigger - Turn on Inner Vitality Level 4 Less than 40 <gen>
                        Wait 16.00 seconds
                        Trigger - Turn off Inner Vitality Level 4 Less than 40 <gen>
            Else - Actions

Spells submission rules said:
-Make your spells levelable
Please make the effect of your spell depend on its level, regardless of how high this might be. Here is an example of a spell that damages the target for 10 damage at level 1, 25 damage at level 2, 40 damage at level 3 etc.
Code:
DamageTarget
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to DamageTarget
    Actions
        Set level = (Real((Level of (Ability being cast) for (Triggering unit))))
        Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing [B]((10.00 x level) + (5.00 x (level - 1.00)))[/B] damage of attack type Spells and damage type Normal

More importantly, you made a new trigger for each circumstance. Don't!

Your spell must use formulas.
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
But the healing is done every 1 second. I can't think of another way ..
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Can someone tell me do I have to update my spell so it can be approved? And when is a spell approved?
 

emjlr3

Change can be a good thing
Reaction score
395
did u fix it to be easily implemented and customized?

is there install instructions?
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
did u fix it to be easily implemented and customized?

is there install instructions?

No, it's not that easy to copy (I think). It uses 9 triggers (I still want someone to tell me if there is an easier way!). Will add instructions.
 

Sim

Forum Administrator
Staff member
Reaction score
534
There is an easier way, I already told you! :p Use formulas.

For example...

Instead of

Unit - Set life of Target to ((Life of Target) + ((Strength x 0.05) + 2.00))

at level 1 and

Unit - Set life of Target to ((Life of Target) + ((Strength x 0.10) + 4.00))

at level 2, you could do:

Code:
Set level = (Level of Inner Vitality for Caster)
Unit - Set life of Target to ((Life of Target) + ((Strength x (level x 0.05) + (level x 2.00))

And since the unit can also be healed better when its life is below 40%, you may then use an if/then/else statement and change the values.
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
There is an easier way, I already told you! :p Use formulas.

For example...

Instead of

Unit - Set life of Target to ((Life of Target) + ((Strength x 0.05) + 2.00))

at level 1 and

Unit - Set life of Target to ((Life of Target) + ((Strength x 0.10) + 4.00))

at level 2, you could do:

Code:
Set level = (Level of Inner Vitality for Caster)
Unit - Set life of Target to ((Life of Target) + ((Strength x (level x 0.05) + (level x 2.00))

And since the unit can also be healed better when its life is below 40%, you may then use an if/then/else statement and change the values.

Ah, now I get it :D I'll fix it asap
EDIT: Uh, problem. Don't know how to use Level in Unit - Set life. Level is an Integer variable, right? I'll need help in that part
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top