• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How do i remove an action

Status
Not open for further replies.
Level 9
Joined
Jun 20, 2008
Messages
476
  • game mode
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Dialog - Clear modedialog
      • Dialog - Change the title of modedialog to What game mode?
      • Dialog - Create a dialog button for modedialog labelled player vs player
      • Set button1 = (Last created dialog Button)
      • Dialog - Create a dialog button for modedialog labelled player vs creep
      • Set button2 = (Last created dialog Button)
      • Dialog - Show modedialog for Player 1 (Red)
  • creep button
    • Events
      • Dialog - A dialog button is clicked for modedialog
    • Conditions
      • (Clicked dialog button) Equal to button2
    • Actions
      • Game - Display to (All players) the text: creeps will spawn i...
      • Wait 50.00 seconds
      • Trigger - Add to creep spawn <gen> the event (Time - Every 10.00 seconds of game time)
  • creep spawn
    • Events
    • Conditions
    • Actions
      • Unit - Create 2 small triobite for Neutral Hostile at (Center of teleport to place choose <gen>) facing Default building facing (270.0) degrees
      • Unit - Order (Last created unit) to Patrol To (Center of Rect 002 <gen>)
      • Wait 1.00 seconds
      • Unit - Create 2 small triobite for Neutral Hostile at (Center of teleport to place choose <gen>) facing Default building facing (270.0) degrees
      • Unit - Order (Last created unit) to Patrol To (Center of Rect 001 <gen>)
      • Wait 25.00 seconds
      • Trigger - Add to creep spawn Copy <gen> the event (Time - Elapsed game time is 80.00 seconds)
      • Trigger - Destroy (This trigger)
  • creep spawn Copy
    • Events
    • Conditions
    • Actions
      • Trigger - Add to (This trigger) the event (Time - Every 10.00 seconds of game time)
      • Unit - Create 2 midle triobite for Neutral Hostile at (Center of teleport to place choose <gen>) facing Default building facing (270.0) degrees
      • Unit - Order (Last created unit) to Patrol To (Center of Rect 002 <gen>)
      • Wait 1.00 seconds
      • Unit - Create 2 midle triobite for Neutral Hostile at (Center of teleport to place choose <gen>) facing Default building facing (270.0) degrees
      • Unit - Order (Last created unit) to Patrol To (Center of Rect 001 <gen>)

In the last trigger the action

  • Trigger - Add to (This trigger) the event (Time - Every 10.00 seconds of game time)
How do i remove it ingame with an line after it ?
 
Your triggers are quite wrong.
  • game mode
    • Events
    • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of modedialog to What game mode?
      • Dialog - Create a dialog button for modedialog labelled player vs player
      • Set button1 = (Last created dialog Button)
      • Dialog - Create a dialog button for modedialog labelled player vs creep
      • Set button2 = (Last created dialog Button)
      • Dialog - Show modedialog for Player 1 (Red)
  • creep button
  • Events
    • Dialog - A dialog button is clicked for modedialog
  • Conditions
    • (Clicked dialog button) Equal to button2
  • Actions
    • Game - Display to (All players) the text: creeps will spawn i...
    • Countdown Timer - Start Timer1 as a one-shot timer that will expire in 50.00 seconds
  • Trigger1
  • Events
    • Time - Timer1 expires
  • Conditions
  • Actions
    • Trigger - Turn on creep spawn <gen>
  • creep spawn
  • Events
    • Time - Every 10.00 seconds of game time
  • Conditions
  • Actions
    • Set Point[1] = (Center of (teleport to place choose <gen>)
    • Set Point[2] = (Center of (Rect 002 <gen>))
    • Set Point[3] = (Center of (Rect 001 <gen>))
    • Unit - Create 2 small triobite for Neutral Hostile at (Point[1]) facing Default building facing degrees
    • Unit - Order (Last created unit) to Patrol To (Point[2])
    • Wait 1.00 seconds
    • Unit - Create 2 small triobite for Neutral Hostile at (Point[1]) facing Default building facing (270.0) degrees
    • Unit - Order (Last created unit) to Patrol To (Point[3])
    • Set Integer1 = ((Integer1) + 1)
    • If (Conditions) are true then do (Actions) else do (Actions)
      • If - Conditions
        • Integer1 Equal to 2
      • Then - Actions
        • Trigger - Turn off (This trigger)
    • Custom script: call RemoveLocation (udg_Point[1])
    • Custom script: call RemoveLocation (udg_Point[2])
    • Custom script: call RemoveLocation (udg_Point[3])
  • creep spawn Copy
  • Events
    • Time - Elapsed time is 80.00 seconds
  • Conditions
  • Actions
    • Trigger - Turn on Trigger2 <gen>
  • Trigger2
  • Events
    • Time - Every 10.00 seconds of game-time
  • Conditions
  • Actions
    • Set Point[1] = (Center of (teleport to place choose <gen>))
    • Set Point[2] = (Center of (Rect 002 <gen>))
    • Set Point[3] = (Center of (Rect 001 <gen>))
    • Unit - Create 2 midle triobite for Neutral Hostile at (Point[1]) facing Default building facing (270.0) degrees
    • Unit - Order (Last created unit) to Patrol To (Point[2])
    • Wait 1.00 seconds
    • Unit - Create 2 midle triobite for Neutral Hostile at (Point[1]) facing Default building facing (270.0) degrees
    • Unit - Order (Last created unit) to Patrol To (Point[3])
    • Set Integer2 = ((Integer2) + 1)
    • If (Conditions) are true then do (Actions) else do (Actions)
      • If - Conditions
        • Integer2 Equal to (X) //Place to "X" the value you want. Remember: Integer2 is a variable of type "Integer", which increases by 1 every 10.00 seconds, so, if you want the trigger to turn off at 22 seconds, you will need to place "2" in the position of the "X" value.
      • Then - Actions
        • Trigger - Turn off (This trigger)
    • Custom script: call RemoveLocation (udg_Point[1])
    • Custom script: call RemoveLocation (udg_Point[2])
    • Custom script: call RemoveLocation (udg_Point[3])
"creep spawn" trigger & "Trigger2" are "NOT initially enabled" triggers.
 
Status
Not open for further replies.
Top