[Help] Move To A Random Region

Shlomi

New Member
Reaction score
1
Hello all

i have 42 heroes that when u enter each region u got an other hero that staning near the region and i need a trigger that will send unit to random region

please bring/create a script for me that will send unit betwwen 1 till 5 regions in a way that is random

and ill change it 42 in my self
 

gameman

It's been a long, long time.
Reaction score
96
Hello all

i have 42 heroes that when u enter each region u got an other hero that staning near the region and i need a trigger that will send unit to random region

please bring/create a script for me that will send unit betwwen 1 till 5 regions in a way that is random

and ill change it 42 in my self
how bought this
EDIT: set ur variable to random and then if your variable equals to 2 it gets moved to region 2 see?
 

nomadian

Member
Reaction score
9
Event:
Unit enters Region 1
Unit enters Region 2
Unit enters Region 3
Unit enters Region 4
Unit enters Region 5

Action:
Set Integer=Math(Random number between 1 and 5)

If Integer= 1 then Issue order to (entering unit) to move to Region X
If Integer=2 then Issue order to (entering unit) to move to Region Y
If Integer=3.
...
 

Shlomi

New Member
Reaction score
1
i have a lot work to do ... :D ill first check if it's will work ^^

what should i do in
Unit enters Region 1
Unit enters Region 2
Unit enters Region 3
Unit enters Region 4
Unit enters Region 5

the number is a diffrent region or variable ?
 

Shlomi

New Member
Reaction score
1
i can change it from

Code:
If Integer= 1 then Issue order to (entering unit) to move to Region X
If Integer=2 then Issue order to (entering unit) to move to Region Y
If Integer=3.
to.....

Code:
If Integer=1 then do unit create at region X
If Integer=2 then do unit create at region Y
If Integer=3.
Can I ?
 

Bjerrum

New Member
Reaction score
12
you would just create a unit in the randomed region and not doing anything to your hero...
and if you are trying to move it instantly use this instead:
Code:
Unit - Move (Triggering unit) instantly to (Center of (Playable map area))
 
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