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,033

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: 753
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
256
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
256
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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top