• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Item Trigger

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,108
  • Eoric Staff
    • Events
      • Game - damageEventTrigger becomes Equal to 1.00
    • Conditions
      • damageType Equal to 0
      • (source is A Hero) Equal to True
      • (source is an illusion) Equal to False
      • (source has an item of type |cFFFFFF00Eoric Staff) Equal to True
    • Actions
      • Set TempPoint = (Position of target)
      • Set EoricStaff_UnitGroup = (Units within 350.00 of TempPoint matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of source)) Equal to True)))
      • Unit Group - Pick every unit in EoricStaff_UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause source to damage (Picked unit), dealing 4000.00 damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_EoricStaff_UnitGroup)
I was having a conversation with looking_for_help (pm) about this trigger and he said this action:
  • Unit - Cause source to damage (Picked unit), dealing 4000.00 damage of attack type Spells and damage type Normal
could make infinite trigger looping. He gave me a custom script (I dont have it anymore) for damaging so it doesn't reactivates the trigger.

Could this infinite looping cause crash?
 
like this?
  • Eoric Staff
    • Events
      • Game - damageEventTrigger becomes Equal to 1.00
    • Conditions
      • damageType Equal to 0
      • (source is A Hero) Equal to True
      • (source is an illusion) Equal to False
      • (source has an item of type |cFFFFFF00Eoric Staff) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TempPoint = (Position of target)
      • Set EoricStaff_UnitGroup = (Units within 350.00 of TempPoint matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of source)) Equal to True)))
      • Unit Group - Pick every unit in EoricStaff_UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause source to damage (Picked unit), dealing 4000.00 damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_EoricStaff_UnitGroup)
      • Trigger - Turn on (This trigger)
 
Status
Not open for further replies.
Back
Top