- Joined
- Jun 20, 2017
- Messages
- 380
The problem is that it will be randomly selected! I'm not sure how to do this
I have a shop that you can buy unit from it and there are several areas where you can select and get the units.
Let's say, I have a channel ability that you can select some locations(circle of power not regions), so when you buy a unit from the store that unit will be in the selected location.
I have a shop that you can buy unit from it and there are several areas where you can select and get the units.
Let's say, I have a channel ability that you can select some locations(circle of power not regions), so when you buy a unit from the store that unit will be in the selected location.
-
Selecting closest locations
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to (==) Choose Summon Location
-
-
Actions
-
Set Points_Unit[1] = (Position of Shop 3 0027 <gen>)
-
Set Points_Unit[2] = (Position of Dark Portal Units 0118 <gen>)
-
Set Points_Unit[3] = (Position of Dark Portal Units 0119 <gen>)
-
Set Points_Unit[4] = (Position of Dark Portal Units 0118 <gen>)
-
Set Points_Unit[5] = (Position of Dark Portal Units 0118 <gen>)
-
Set PlayerGroup = (Player group((Owner of (Casting unit))))
-
Cinematic - Ping minimap for PlayerGroup at Points_Unit[(Random integer number between 1 and 5)] for 3.00 seconds, using a Simple ping of color (100.00%, 100.00%, 0.00%)
-
Custom script: call DestroyForce(udg_PlayerGroup)
-
Custom script: call RemoveLocation(udg_Points_Unit[1])
-
Custom script: call RemoveLocation(udg_Points_Unit[2])
-
Custom script: call RemoveLocation(udg_Points_Unit[3])
-
Custom script: call RemoveLocation(udg_Points_Unit[4])
-
Custom script: call RemoveLocation(udg_Points_Unit[5])
-
-
-
Selecting closest locations2
-
Events
-
Unit - A unit Sells a unit
-
-
Conditions
-
(Unit-type of (Selling unit)) Equal to (==) Shop 3
-
-
Actions
-
Set Points_Unit[1] = (Position of Shop 3 0027 <gen>)
-
Set Points_Unit[2] = (Position of Dark Portal Units 0118 <gen>)
-
Set Points_Unit[3] = (Position of Dark Portal Units 0119 <gen>)
-
Set Points_Unit[4] = (Position of Dark Portal Units 0118 <gen>)
-
Set Points_Unit[5] = (Position of Dark Portal Units 0118 <gen>)
-
Unit - Move (Sold unit) instantly to Points_Unit[(Random integer number between 1 and 5)]
-
Custom script: call RemoveLocation(udg_Points_Unit[1])
-
Custom script: call RemoveLocation(udg_Points_Unit[2])
-
Custom script: call RemoveLocation(udg_Points_Unit[3])
-
Custom script: call RemoveLocation(udg_Points_Unit[4])
-
Custom script: call RemoveLocation(udg_Points_Unit[5])
-
-