- Joined
- Jun 2, 2009
- Messages
- 1,233
My map have a triggers like this
Now i want to implement it just like my first trigger but i am not good at custom scripts.
How can i shrink this triggers (this is for player 8) for all players jus like the first trigger?
-
TimerKacmaLord
-
Events
-
Time - BotLorddanKacma[2] expires
-
Time - BotLorddanKacma[3] expires
-
Time - BotLorddanKacma[4] expires
-
Time - BotLorddanKacma[5] expires
-
Time - BotLorddanKacma[6] expires
-
Time - BotLorddanKacma[8] expires
-
Time - BotLorddanKacma[9] expires
-
Time - BotLorddanKacma[10] expires
-
Time - BotLorddanKacma[11] expires
-
Time - BotLorddanKacma[12] expires
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Custom script: if (GetExpiredTimer() == udg_BotLorddanKacma[bj_forLoopAIndex]) then
-
Set zBool_AILorddanKacmaInteger = (Integer A)
-
Custom script: exitwhen true
-
Custom script: endif
-
-
-
Set zBool_AIKaciyorLorddan[zBool_AILorddanKacmaInteger] = False
-
-
-
DevilHerodanKacP8
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
((Attacking unit) is in DevilHerolariPlayer) Equal to True
-
(Attacked unit) Equal to zU_AIHero[8]
-
zBool_AIFallBackHERO[8] Equal to False
-
((Attacked unit) is in zUG_RegenReaper) Equal to False
-
-
Actions
-
Set xINT_TEMP[8] = (Level of (Attacking unit))
-
Set xINT_TEMP2[8] = (Level of (Attacked unit))
-
Set xINT_TEMP3[8] = (xINT_TEMP[8] - xINT_TEMP2[8])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
xINT_TEMP3[8] Greater than or equal to 3
-
-
Then - Actions
-
Set zBool_AIFallBackHERO[8] = True
-
Set TempPoint = ((Position of (Attacked unit)) offset by 800.00 towards ((Angle from (Position of (Attacking unit)) to (Center of PreviousTarget[8])) - 0.00) degrees)
-
Unit - Order (Attacked unit) to Move To TempPoint
-
Game - Display to PG_Debug for 1.00 seconds the text: (Name of the current trigger)
-
Custom script: call RemoveLocation (udg_TempPoint)
-
Countdown Timer - Start BotHerodanKacma[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in 4.00 seconds
-
Wait 4.00 seconds
-
Set zBool_AIFallBackHERO[8] = False
-
Set TempGroup = (Units within 800.00 of (Position of (Attacked unit)) matching (((Matching unit) is in zUG_CreepsReaper) Equal to True))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in TempGroup) Greater than or equal to 1
-
-
Then - Actions
-
Game - Display to PG_Debug for 1.00 seconds the text: (Name of the current trigger)
-
Unit - Order zU_AIHero[(Player number of (Owner of (Attacked unit)))] to Attack-Move To (Center of NextTarget[8])
-
Custom script: call DestroyGroup (udg_TempGroup)
-
-
Else - Actions
-
Custom script: call DestroyGroup (udg_TempGroup)
-
-
-
-
-
-
Else - Actions
-
-
-
Now i want to implement it just like my first trigger but i am not good at custom scripts.
How can i shrink this triggers (this is for player 8) for all players jus like the first trigger?