• 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.

[Solved] Will it be a problem?

Status
Not open for further replies.
Level 12
Joined
Aug 12, 2008
Messages
350
Just a simple question I would like to ask here. I using the same point which is temp_point for both triggers as shown below. Will it be a problem? Or will it cause a bug or etc.?

  • Dying Effects
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Not equal to Mystic Mage
    • Actions
      • Set temp_point = (Position of (Dying unit))
      • Special Effect - Create a special effect at temp_point using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation (udg_temp_point)
  • Spawning
    • Events
      • Time - Every 6.00 seconds of game time
    • Conditions
    • Actions
      • Set temp_point = (Position of Mystic_Mage)
      • Set temp_point2 = (temp_point offset by (Random real number between 300.00 and 500.00) towards (Random angle) degrees)
      • Unit - Create 1 DemonSpawn[DemonLevel] for Neutral Hostile at temp_point2 facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Mystic_Mage
      • Custom script: call RemoveLocation (udg_temp_point2)
      • Custom script: call RemoveLocation (udg_temp_point)
 
Level 12
Joined
Aug 12, 2008
Messages
350
Well, I'm still in a weak stage in these kind of thing :p I focus on creating spell while the other parts haven't get it thoroughly. By the way, what do you mean by non-repeating triggers like my example? It runs every 6 seconds and every time a unit dies, I thought it's a repeating trigger as the trigger runs again and again when the event happens?
 
Status
Not open for further replies.
Top