[Spell Request] Ice Block

Avaleirra

Is back. Probably.
Reaction score
128
Here, I made the spell, but I haven't tested it (It might not work at all).

Trigger:
  • Ice Block Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Block
    • Actions
      • Unit - Add Sphere (Vengeance - Level 1) to (Triggering unit)


Trigger:
  • Ice Block Cancel
    • Events
      • Unit - A unit Stops casting an ability
      • Unit - A unit Finishes casting an ability
      • Unit - A unit Dies
    • Conditions
      • (Level of Sphere (Vengeance - Level 1) for (Triggering unit)) Equal to 1
    • Actions
      • Unit - Add Sphere (Vengeance - Level 1) to (Triggering unit)
      • Unit - Remove Sphere (Vengeance - Level 1) from (Triggering unit)


Trigger:
  • Hero Purchase
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Sold unit)) Equal to Ice Caster Hero
    • Actions
      • Trigger - Add to Damage Reflect <gen> the event (Unit - (Sold unit) Takes damage)


Trigger:
  • Damage Reflect
    • Events
    • Conditions
      • (Level of Sphere (Vengeance - Level 1) for (Triggering unit)) Equal to 1
    • Actions
      • Set tmpReal = ((0.50 + (0.50 x (Real((Level of Ice Block for (Triggering unit)))))) x (Damage taken))
      • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Damage source)) Greater than tmpReal
        • Then - Actions
          • Unit - Set life of (Damage source) to ((Life of (Damage source)) - tmpReal)
        • Else - Actions
          • Unit - Set life of (Damage source) to 1.00

Sorry, I have another question :p. Do I have to set the duration of this ability in the OE? And I also want the caster to be invulnerable for the 1.5 second duration, so where should I add the invulnerable part?
 

Avaleirra

Is back. Probably.
Reaction score
128
Bump


I realized that the caster could stay in this "immune" form forever... How can I make it only last 1.5 seconds?
 

jomik

New Member
Reaction score
17
Well, if it didn't have to be MUI, you could just make a trigger that has a 1 shot time expiring after 1.5 seconds, then remove all effects that the spell gives? :)
 

FireBladesX

Eating my wings!
Reaction score
123
Trigger:
  • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))


This basically makes your hero invulnerable.

You just type in 1.5 in the object editor field. It's not in "Duration", it's in "Follow Through Time" for the Channel ability.

Also, you have to do a check if its physical/magical... hrmf. I suggest reading this link to flare's damage detection guide to get a better idea of the damage detection trigger.
 
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