Rescue and Timer Issues

Cfw_Master

New Member
Reaction score
1
Two more questions:

1: How can I make it so that there are 8 rescuable units? Each unit should be rescuable by each player so that there is one unit per player. However, before the player gets to the area, the rescuable unit should not be able to be seen.

2: I'm having some issues with creating a timer. The timer and title works perfectly, but when the timer reaches 0, the trigger i connected it to doesn't work. Instead, the timer just stays at zero.

Code:
Timer
    Events
        Time - Elapsed game time is 2.00 seconds
    Conditions
    Actions
        Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 3600.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Gauntlet Collapse
        Countdown Timer - Show (Last created timer window)
        Set Timer = (Last started timer)
        Trigger - Turn on Defeat <gen>

Code:
Defeat
    Events
        Time - Timer expires
    Conditions
    Actions
        Unit - Pause all units
        Wait 10.00 seconds
        Game - Defeat Player 1 (Red) with the message: Defeat!
        Game - Defeat Player 2 (Blue) with the message: Defeat!
        Game - Defeat Player 3 (Teal) with the message: Defeat!
        Game - Defeat Player 4 (Purple) with the message: Defeat!
        Game - Defeat Player 5 (Yellow) with the message: Defeat!
        Game - Defeat Player 6 (Orange) with the message: Defeat!
        Game - Defeat Player 7 (Green) with the message: Defeat!
        Game - Defeat Player 8 (Pink) with the message: Defeat!

Thanks for your help and +rep as always :D
 

Shadow14l

New Member
Reaction score
11
Trigger:
  • Timer
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 3600.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Gauntlet Collapse
      • Countdown Timer - Show (Last created timer window)
      • Set Timer = (Last started timer)
      • Trigger - Turn on Defeat &lt;gen&gt;


Trigger:
  • Defeat
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • Unit - Pause all units
      • Wait 10.00 seconds
      • Game - Defeat Player 1 (Red) with the message: Defeat!
      • Game - Defeat Player 2 (Blue) with the message: Defeat!
      • Game - Defeat Player 3 (Teal) with the message: Defeat!
      • Game - Defeat Player 4 (Purple) with the message: Defeat!
      • Game - Defeat Player 5 (Yellow) with the message: Defeat!
      • Game - Defeat Player 6 (Orange) with the message: Defeat!
      • Game - Defeat Player 7 (Green) with the message: Defeat!
      • Game - Defeat Player 8 (Pink) with the message: Defeat!


For the first action, instead of Last Started Timer, choose the name of the Timer variable you made, which is "Timer". Remove "Set Timer = (Last started timer)" too.

For the second trigger, make a condition where the expiring timer is the timer "Timer".
 

Cfw_Master

New Member
Reaction score
1
EDIT: Okay it seems to work now.

Ty for the help. (+rep)

Back to problem #1: How can I make it so that there are 8 rescuable units? Each unit should be rescuable by each player so that there is one unit per player. However, before the player gets to the area, the rescuable unit should not be able to be seen.
 

Cfw_Master

New Member
Reaction score
1
So does anyone know the answer to question #1? If its unclear, ill rephrase it now.

What I want is to have eight units, lined up on the map. I do not want there to be vision of the units until they are rescued by their corresponding players. When a player walks near the units, one of the units go under his control. However, he cannot rescue the other seven units. Each of the other seven players can rescue one of the units lined up.

Does that make sense?

Anyways, any help is greatly appreciated. I'm retiring for the day right now so i'll do the +rep and comments and stuff tomorrow. Thanks in advance :)
 

istar

New Member
Reaction score
31
a simple unit enters region/into range event would do
set the rescueable as neutral passive or something, with no shared vision
set them in a unitgroup
when event triggers
if boolean[player]=false then
pick a unit in unitgroup and convert ownership to owner of triggering unit
set boolean[playerno.]=true
else
-
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top