[Trigger] War stomp abilitie (chieftain)

Status
Not open for further replies.
Level 2
Joined
Feb 21, 2014
Messages
18
Hello

Im having troubles with making ability which will hit everyone around the caster. The problem is - spell hit some units in front of hero not around him (some things from trigger are in polish, sorry for this, i've got original polish warcraft). If you have some troubles with getting understand TRIGGER then post it

  • Wydarzenia
    • Jednostka - A unit starts an ability
  • Warunki
    • (Ability being cast) = War Stomp
  • Akcje
    • -------- ------------------------------------------------------------------------------------------------- --------
    • -------- Getting the Spell constants --------
    • -------- ------------------------------------------------------------------------------------------------- --------
    • Set WarStomp_Caster = (Triggering unit)
    • Set WarStomp_Location = (Target point of ability being cast)
    • Set WarStomp_Owner = (Owner of WarStomp_Caster)
    • Set WarStomp_Ability_Level = (Level of (Ability being cast) for WarStomp_Caster)
    • -------- ------------------------------------------------------------------------------------------------- --------
    • -------- Setting the Spell values --------
    • -------- ------------------------------------------------------------------------------------------------- --------
    • Set WarStomp_STR = (Strength‚a of WarStomp_Caster (give bonuses))
    • Set WarStomp_DMG_Multiplayer = (2.00 x (Real((Level of War Stomp for WarStomp_Caster))))
    • Set WarStomp_DMG = ((Real(WarStomp_STR)) x WarStomp_DMG_Multiplayer)
    • Set WarStomp_Dummy_Ability = War Stomp
    • Set WarStomp_AOE = 200.00
    • Set WarStomp_DMG_Group = (Units within WarStomp_AOE of WarStomp_Location matching ((((Matching unit) is Budynek) equals NIE) and ((((Matching unit) is alive) equals TAK) and (((Owner of (Matching unit)) is an enemy of WarStomp_Owner) equals TAK))))
    • -------- ------------------------------------------------------------------------------------------------- --------
    • Units group - Pick every unit in WarStomp_DMG_Group and do (Actions)
      • loop - Akcje
        • -------- ------------------------------------------------------------------------------------------------- --------
        • -------- Damaging the units --------
        • -------- ------------------------------------------------------------------------------------------------- --------
        • Jednostka - Cause WarStomp_Caster to damage (Picked unit), dealing WarStomp_DMG damage of attack type spell and damage type unknown
        • -------- ------------------------------------------------------------------------------------------------- --------
    • -------- Creating and setting floating text --------
    • -------- ------------------------------------------------------------------------------------------------- --------
    • Tekst - Create floating text that reads ((String((Integer(WarStomp_DMG)))) + !) above WarStomp_Caster with Z offset 0.00, using font size 10.00, color (0.00%, 40.00%, 100.00%), and 0.00% transparency
    • Tekst - Change (Last created floating text): turn off permanence
    • Tekst - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
    • Tekst - Change the fading age of (Last created floating text) to 3.00 seconds
    • Tekst - Change the lifespan of (Last created floating text) to 5.00 seconds
    • -------- ------------------------------------------------------------------------------------------------- --------
    • -------- Clearing Leaks --------
    • -------- ------------------------------------------------------------------------------------------------- --------
    • Custom script: call RemoveLocation(udg_WarStomp_Location)
 
Last edited:
Level 2
Joined
Feb 21, 2014
Messages
18
Thanks guys, works amazing. Ive changed mine line to this one "Set WarStomp_Location = Position of WarStomp_Caster"
 
Status
Not open for further replies.
Top