(Request) Passive Tanking Ability

Haxxors

New Member
Reaction score
1
I'm trying to create a tanking ability and i'm encountering some problems :p.

I'm trying to create a passive spell that gives a % chance for a unit to be healed for a certain amount whenever it is hit.

I'd like to to scale with strength if at all possible.

So something like, Rank 1 of the spell - 10% chance to be healed for 50+(Level of Strength) when hit.

Just a point in the right direction on what kind of things I need to be modifying.

Thank You :D
 

blooman

New Member
Reaction score
16
Trigger:
  • ghhg
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Real((Level of The Skill of the pythagorean theorem for (Attacked unit)))) Equal to (==) 1.00
      • (Unit-type of (Attacked unit)) Equal to (==) Footman
      • (Random integer number between 1 and 10) Equal to (==) 1
    • Actions
      • Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + ((Real((Strength of (Attacked unit) (Exclude bonuses)))) + 50.00))

I think itll work
If it doesn't work well im sorry im a noob with gui too
 

Haxxors

New Member
Reaction score
1
His problem is he wants to be spoon fed the trigger. Then he'll ask for a "demo map" to copy it from.

We don't do things for you, we help you. Try it your self.

It's kind of weird that someone so rude as you is posting on a site called "Thehelper"

My problem is I've already tried the trigger and I dont know how to get it to work on my own.

And no, I will not need a demo map. I know enough to be able to find things once I know what direction I need to go in

You shouldnt jump to such asinine conclusions about someone just because they are asking for assistance.

I don't want someone to do the trigger for me, I want someone to show me the kinds of things I need to manipulate in the trigger so I can learn how to do it and eventually be able to help others with my knowledge of GUI.

This is what I have.


Code:
Regenerating Armor
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Regenerating Armor 
        (Level of Regenerating Armor  for (Triggering unit)) Equal to 1
    Actions
        Set RegeneratingArmorCaster = (Triggering unit)
        Set RegeneratingArmorCasterLoc = (Position of RegeneratingArmorCaster)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 5
            Then - Actions
                Special Effect - Create a special effect at RegeneratingArmorCasterLoc using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
                Set Sfx6 = (Last created special effect)
                Special Effect - Destroy Sfx6
                Unit - Set life of UnitVarCaster12 to ((Life of RegeneratingArmorCaster) + 100.00)
            Else - Actions
                Do nothing
        Custom script:   call RemoveLocation (udg_RegeneratingArmorCasterLoc)
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Code:
Regenerating Armor
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Regenerating Armor 
        (Level of Regenerating Armor  for (Triggering unit)) Equal to 1
    Actions
        Set RegeneratingArmorCaster = (Triggering unit)
        Set RegeneratingArmorCasterLoc = (Position of RegeneratingArmorCaster)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 5
            Then - Actions
                Special Effect - Create a special effect at RegeneratingArmorCasterLoc using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
                Set Sfx6 = (Last created special effect)
                Special Effect - Destroy Sfx6
                Unit - Set life of UnitVarCaster12 to ((Life of RegeneratingArmorCaster) + 100.00)
            Else - Actions
                Do nothing
        Custom script:   call RemoveLocation (udg_RegeneratingArmorCasterLoc)

Hmm, yeah, your trigger does need a revamp. Right now it's a bit buggy, and I spy two problems right off the bat.

Code:
Regenerating Armor
    Events
        Unit - A unit [B][COLOR="Red"]is attacked[/COLOR][/B]
    Conditions
        (Level of Regenerating Armor for ([B][COLOR="red"]Attacked unit[/COLOR][/B])) [B][COLOR="Red"]is greater than or equal to[/COLOR][/B] 1
    Actions
        Set RegeneratingArmorCaster = ([B][COLOR="red"]Attacked[/COLOR][/B] unit)
        Set RegeneratingArmorCasterLoc = (Position of RegeneratingArmorCaster)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 5
            Then - Actions
                Special Effect - Create a special effect at RegeneratingArmorCasterLoc using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
                Special Effect - Destroy [B][COLOR="red"](Last created special effect)[/COLOR][/B]
                Unit - Set life of [B][COLOR="red"]RegeneratingArmorCaster[/COLOR][/B] to ((Life of RegeneratingArmorCaster) + 100.00)
            Else - Actions
                Do nothing
        Custom script:   call RemoveLocation (udg_RegeneratingArmorCasterLoc)

Your current trigger was basically giving a 5% chance to gain 100 HP when he learned the level 2 skill. It's advisable to wait a little bit before detecting the level of a spell, because otherwise you get screwed up. If you something to be created when you first learn a spell, include a 0.1 second wait timer before detecting the level number. Otherwise the game will read it's level 0, and you'll never get the opportunity. Also, you can do without the "Do nothing", as it does its job perfectly.



His problem is he wants to be spoon fed the trigger. Then he'll ask for a "demo map" to copy it from.

We don't do things for you, we help you. Try it your self.

There's a reason we have a "code" section. I understand if someone would be wanting an entire AoS map so they could throw their name on it, but one simple trigger isn't going to be that much of a hassle, is it?
 

Lyle.

New Member
Reaction score
32
His problem is he wants to be spoon fed the trigger. Then he'll ask for a "demo map" to copy it from.

We don't do things for you, we help you. Try it your self.

Actually there are plenty of people who are willing to do just that. Don't bother posting if you can't help.


Try using blooman's trigger. Your trigger's event is not going to work.

You need it to trigger when a unit is attacked.
 

Nivius

TH.net Regular
Reaction score
5
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Level of The Taste of Blood (lvl9) for (Triggering unit)) Greater than 0
      • (Random integer number between 1 and 100) Less than or equal to (10 x (Level of The Taste of Blood (lvl9) for (Triggering unit)))
    • Actions
      • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((((Max life of (Triggering unit)) - 100.00) / 25.00) + 50.00))


Basic and simpe... shuld do the trick if all stats are "basic" of ur hero...

change "taste of blood (lvl9)" to ur skill

meaning 25 life each str
have 100 life whit str on 0

now u can play and add all ur effects and alike
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Level of The Taste of Blood (lvl9) for (Triggering unit)) Greater than 0
      • (Random integer number between 1 and 100) Less than or equal to (10 x (Level of The Taste of Blood (lvl9) for (Triggering unit)))
    • Actions
      • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((((Max life of (Triggering unit)) - 100.00) / 25.00) + 50.00))


Basic and simpe... shuld do the trick if all stats are "basic" of ur hero...

change "taste of blood (lvl9)" to ur skill

meaning 25 life each str
have 100 life whit str on 0

now u can play and add all ur effects and alike


All's trigger wrong!!!!!!!!! Use Unit Takes Damage Event pls.
 
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