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

[Solved] Will it be a problem?

Status
Not open for further replies.
Level 12
Joined
Aug 12, 2008
Messages
349
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
349
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