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

Basic Timer and Add Units to Transports

Status
Not open for further replies.
Level 6
Joined
Jul 25, 2005
Messages
221
This should be a simple timer for you, non-JASS of course for simplicity's sake.

  • Timer
    • Events
      • Time - Elapsed game time is 0.02 seconds
    • Conditions
    • Actions
      • -------- Start a timer with 1800 seconds which is the equivalent for 30 minutes. --------
      • Countdown Timer - Start variabletype_Timer as a One-shot timer that will expire in 1800.00 seconds
      • -------- ---------------------------------------------------------------------------------------------------------------- --------
      • -------- Create a timer window if you like. --------
      • Countdown Timer - Create a timer window for variabletype_Timer with title Timer Window
      • -------- ---------------------------------------------------------------------------------------------------------------- --------
  • Timer Expires
    • Events
      • Time - variabletype_Timer expires
    • Conditions
    • Actions
      • -------- And here are the actions for when the timer expires, for example a Defeat action. --------
      • Game - Defeat (Random player from (All players)) with the message: Loser! :D
:cute:

As for the units inside a cargo unit, the only way I know how is using a trigger like:

  • Enter Units
    • Events
      • Time - Elapsed game time is 0.03 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Some Unit for Player 1 (Red) at (Position of Cargo Unit <gen>) facing Default building facing degrees
          • Unit Group - Add (Last created unit) to variabletype_Unit_Group
      • Unit Group - Pick every unit in variabletype_Unit_Group and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Board Cargo Unit <gen>
Should do the trick. :wink:
 
Last edited:
  • Like
Reactions: Kam
Level 8
Joined
May 27, 2007
Messages
170
Try placing the ships in the at a shore when you place them in the World Editor, then create and board the units when the game starts like ShadowMan said, then use a quick trigger to move it out to sea. Probably the quickest, easiest way assuming involving the ship in the trigger won't make the units fall out or something, because as far as I know there is no sort of unit which is created with units already in its hold. Just make sure you don't do it near a player's start location so they don't see everyone jumping into a ship then the ship vanishing :p Create a little 'Loading' cinematic if you have to so you can do tomfoolery like this with nobody seeing if necessary, that's what I would do anyway :D
 
Status
Not open for further replies.
Top