• 🏆 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!

Divine shield

Status
Not open for further replies.
Level 7
Joined
Mar 6, 2014
Messages
203
How to create this spell.

How spell work: the caster create an impenetratable shield surrond the target unit. Target unit will become invulnerable for some seconds, half on targeted structure. Ex. 5seconds on unit, 2.5 second on structure
 
Level 7
Joined
Mar 6, 2014
Messages
203
heres the trigger

  • Divine SHield
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Divine Shield
    • Actions
      • Set DS_Int = (DS_Int + 1)
      • Set DS_Caster[DS_Int] = (Triggering unit)
      • Set DS_Target[DS_Int] = (Target unit of ability being cast)
      • Unit - Make DS_Target[DS_Int] Invulnerable
      • Special Effect - Create a special effect attached to the origin of DS_Target[DS_Int] using Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl
      • Set DS_SFX[DS_Int] = (Last created special effect)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DS_Target[DS_Int] is A structure) Equal to True
        • Then - Actions
          • Wait (6.00 + ((Real((Level of Divine Shield for DS_Caster[DS_Int]))) / 2.00)) seconds
          • Set DS_Int2 = (DS_Int2 + 1)
          • Unit - Make DS_Target[DS_Int2] Vulnerable
          • Special Effect - Destroy DS_SFX[DS_Int2]
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DS_Int2 Equal to DS_Int
            • Then - Actions
              • Set DS_Int = 0
              • Set DS_Int2 = 0
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DS_Target[DS_Int] is A Hero) Equal to True
        • Then - Actions
          • Wait (6.00 + (Real((Level of Divine Shield for DS_Caster[DS_Int])))) seconds
          • Set DS_Int2 = (DS_Int2 + 1)
          • Unit - Make DS_Target[DS_Int2] Vulnerable
          • Special Effect - Destroy DS_SFX[DS_Int2]
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DS_Int2 Equal to DS_Int
            • Then - Actions
              • Set DS_Int = 0
              • Set DS_Int2 = 0
            • Else - Actions
        • Else - Actions
i can cast the spell 1st on unit then next on structure. the divine shield on unit is only 4 seconds while in structure is 8 seconds. and when i cast again in The spell 1st on structure then next on unit. the duration is 4 seconds in structure while 8 seconds in units @_@
 
Status
Not open for further replies.
Top