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

[Trigger] Mine Spell Problem

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
For some reason when I try to use the spell a 2nd time the mines just appear in the center of my Mine Field region can anyone explain why?
  • Actions
    • Set TempRegion = Mine Field <gen>
    • Set MineTempPoint2 = (Position of (Triggering unit))
    • Region - Center TempRegion on MineTempPoint2
    • Set MinePoint1_Copy = (Random point in TempRegion)
    • Set MinePoint1_Copy_2 = (Random point in TempRegion)
    • Set MinePoint1_Copy_3 = (Random point in TempRegion)
    • Set MinePoint1_Copy_4 = (Random point in TempRegion)
    • Set MinePoint1_Copy_5 = (Random point in TempRegion)
    • Set MinePoint1_Copy_6 = (Random point in TempRegion)
    • Set MinePoint1_Copy_7 = (Random point in TempRegion)
    • Set MinePoint1_Copy_8 = (Random point in TempRegion)
    • Set MinePoint1_Copy_9 = (Random point in TempRegion)
    • Set MinePoint1_Copy_10 = (Random point in TempRegion)
    • Set MinePoint1_Copy_11 = (Random point in TempRegion)
    • Set MinePoint1_Copy_12 = (Random point in TempRegion)
    • Set MinePoint1_Copy_13 = (Random point in TempRegion)
    • Set MinePoint1_Copy_14 = (Random point in TempRegion)
    • Set MinePoint1_Copy_15 = (Random point in TempRegion)
    • Set MinePoint1_Copy_16 = (Random point in TempRegion)
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_10 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_11 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_12 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_13 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_14 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_15 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_16 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_2 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_3 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_4 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_5 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_6 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_7 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_8 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy_9 facing Default building facing degrees
    • Unit - Create 1 Mine for (Owner of (Triggering unit)) at MinePoint1_Copy facing Default building facing degrees
    • Custom script: call RemoveLocation (udg_MineTempPoint2)
    • Custom script: call RemoveRect(udg_TempRegion) //Region
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_2)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_3)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_4)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_5)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_6)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_7)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_8)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_9)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_10)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_11)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_12)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_13)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_14)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_15)
    • Custom script: call RemoveLocation (udg_MinePoint1_Copy_16)
 
Status
Not open for further replies.
Top