polo2005
Wana start playing LoL? http://tinyurl.com/369as27
- Reaction score
- 97
Heya, since i was such a slacker on my math lessons, it seems like i'm to dumb to figure this out
i got 2 diffrent battle areas
each battle area have 8 spawn points
every battle area is set in the same region varible (this is unrelevant to the mathematucal formula i'm searching for)
all spawn point is set to the same varible (for battle area 1, i'm using 1-8 and for battle area 2 9-16)
this is how the trigger part that i'm having trouble with looks like.
"Normal_Battle_are_isBusy" only area 1 is set to false
"Number_Of_Normal_areas" is set to 2 for the number of areas i'm currently using
"Number_Of_spawnpoints_Normal" is set to 8 wich stand for how many spawn points i'm using per area (mentioned at start of the post)
"Number_Of_Units_For_Player" is set to 4, sincei ts 4 units i wish to move
"Unit_inCombat" is preset to my 4 units
"Facing_Angle_normal" is preset to a fixed angle
What i want it to do:
I want it that if loopA = to battle area 1 (1)
i want it to move my Unit_inCombat to spawnpoint 1-4
and if loopA = to battle area 2 (2)
i want it to move my Unit_inCombat to spawnpoint 9-12
Any help would be wellcome, since there is no guarantees that its my formula thati s messing up, can be something i have missed in my trigger.
i got 2 diffrent battle areas
each battle area have 8 spawn points
every battle area is set in the same region varible (this is unrelevant to the mathematucal formula i'm searching for)
all spawn point is set to the same varible (for battle area 1, i'm using 1-8 and for battle area 2 9-16)
Code:
For each (Integer A) from 1 to Number_Of_Normal_areas, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Normal_Battle_are_isBusy[(Integer A)] Equal to False
Then - Actions
For each (Integer B) from 1 to Number_Of_Units_For_Player, do (Actions)
Loop - Actions
Set temp_point[(Integer B)] = [COLOR="#FF0000"](Center of Spawnpoints[(((Number_Of_spawnpoints_Normal x (Integer A)) - (Number_Of_spawnpoints_Normal - (Number_Of_spawnpoints_Normal - 1))) x (Integer B))])[/COLOR]
Unit - Move Unit_inCombat[(Integer B)] instantly to temp_point[(Integer B)], facing Facing_Angle_normal[(((Integer A) x 2) - 1)] degrees
Custom script: call RemoveLocation(udg_temp_point[GetForLoopIndexB()])
Else - Actions
this is how the trigger part that i'm having trouble with looks like.
"Normal_Battle_are_isBusy" only area 1 is set to false
"Number_Of_Normal_areas" is set to 2 for the number of areas i'm currently using
"Number_Of_spawnpoints_Normal" is set to 8 wich stand for how many spawn points i'm using per area (mentioned at start of the post)
"Number_Of_Units_For_Player" is set to 4, sincei ts 4 units i wish to move
"Unit_inCombat" is preset to my 4 units
"Facing_Angle_normal" is preset to a fixed angle
What i want it to do:
I want it that if loopA = to battle area 1 (1)
i want it to move my Unit_inCombat to spawnpoint 1-4
and if loopA = to battle area 2 (2)
i want it to move my Unit_inCombat to spawnpoint 9-12
Any help would be wellcome, since there is no guarantees that its my formula thati s messing up, can be something i have missed in my trigger.