Multi-Portal and Regions

psychophat

New Member
Reaction score
0
Help please I need to know how to make this:

1. Base Portal goes to > Region1
- units can teleport back to base at anytime
- when Region1 mission is complete > teleport all players back to Base

2. If Region1 mission is complete Base Portal goes to > Region2
- units can teleport back to base at anytime
- when Region2 mission is complete > teleport all players back to Base

And so on...

I've manage to learn from the tutorials how to move from A to B and vice-versa, but this is a bit complicated for me.
 

GooS

Azrael
Reaction score
154
You need a variable for which missions have been completed.

integer Mission = 0

When the players finish mission 1 set the variable to 1

Code:
Unit enters region Base

if <mission> equals to 0
Instantly move entering unit to center of region1

if <mission> equals to 1
Instantly move entering unit to center of region2

if you want them to be moved back to base when finished, lets say kill <that guy>.

Code:
<that guy> dies

Pick all units within region <where they are>
      loop
           Move picked unit isntantly to Base.
 

psychophat

New Member
Reaction score
0
This is what I have right now:

Code:
e: Unit - A unit enters TeleArea 000 <gen>
c: 
a: Trigger - Turn off Teleport2 <gen>
Unit - Move (Entering unit) instantly to TempPoint [(Player number of(Owner of (Triggering unit)))]
Wait 1.00 seconds
Trigger - Turn on Teleport2 <gen>
Custom script:  call RemoveLocation(udg_TempPoint[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])

Should I insert a condition for Mission1, do you know a sample I can look at?
 

Razed

New Member
Reaction score
44
Go to the variable editor and create an 'Integer-type' variable with any name you like (example: MissionCount).

Then when the map begins (0.00 elapsed time) -- Set MissionCount = 1
When you've completed Mission one -- Set MissionCount = 2
When Mission two is completed -- Set MissionCount = 3

Then on to the trigger:
Code:
Events - A unit enters (TeleArea 000 <gen>)
Conditions - ((Entering unit) is an ally of (Player 1) equal to True)
Actions - If (MissionCount equal to 1) then do (Move (Entering unit) to (LEVEL 1 <gen>)) else do (Do nothing)
          If (MissionCount equal to 2) then do (Move (Entering unit) to (LEVEL 2 <gen>)) else do (Do nothing)
          If (MissionCount equal to 3) then do (Move (Entering unit) to (LEVEL 3 <gen>)) else do (Do nothing)

Just to make it clearer.. "MissionCount equal to x" can be found under 'Integer Comparison' and If/Then/Else is an action that is found at the top of the Action List (same counts for 'Set Variable'.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top