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

[Trigger] Random arena

Status
Not open for further replies.
Level 9
Joined
Jun 20, 2008
Messages
476
The starter trigger
  • Round start triggerer
    • Events
      • Time - Elapsed game time is 16.00 seconds
    • Conditions
    • Actions
      • Trigger - Turn on Round start <gen>
And the trigger that defines what area is chosen and it moves the fly bombers there.

  • Round start
    • Events
    • Conditions
      • round_active_checker Equal to 0
    • Actions
      • Game - Display to (All players) the text: Next round will beg...
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer A) Equal to 1
            • Then - Actions
              • Unit - Move Fly Bomber 0017 <gen> instantly to (Center of Region 004 <gen>)
              • Unit - Move Fly Bomber 0020 <gen> instantly to (Center of Region 005 <gen>)
              • Unit - Move Fly Bomber 0021 <gen> instantly to (Center of Region 008 <gen>)
              • Unit - Move Fly Bomber 0018 <gen> instantly to (Center of Region 007 <gen>)
              • Unit - Move Fly Bomber 0019 <gen> instantly to (Center of Region 006 <gen>)
            • Else - Actions
              • Game - Display to (All players) the text: test
It wouldn't move the bombers to the region

+rep for who helps
 
Use "Trigger - Run Round start <gen> (checking conditions)", not Trigger - Turn on Trigger.

By the way, why are you using IntegerA loop? To make a chance?
It should be:
  • If (All conditions are true) then do (Actions) else do (Actions)
    • If - Conditions
      • (Random integer number between 1 and 2) Equal to 1
    • Then - Actions
      • //Actions here
    • Else - Actions
 
Status
Not open for further replies.
Top