It is a system to hold a unit and add an ability for each unit inside the transport like for example phoenix fire then level it up after the first unit is inside
[trigger=1]
Events
Unit - A unit Is loaded into a transport
Conditions
(Unit-type of (Loading unit)) Equal to Footman
Actions
Custom script: local unit udg_u = GetTransportUnit()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
o999[(Custom value of (Triggering unit))] Equal to 0
Then - Actions
Unit - Add Phoenix Fire to u
Set o999[(Custom value of (Triggering unit))] = 1
Wait until (((Triggering unit) is loaded into u) Equal to False), checking every 1.00 seconds
Set o999[(Custom value of (Triggering unit))] = (o999[(Custom value of (Triggering unit))] - 1)
Unit - Remove Phoenix Fire from u
Custom script: set udg_u = null
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
o999[(Custom value of (Triggering unit))] Equal to 1
Then - Actions
Unit - Increase level of Phoenix Fire for u
Set o999[(Custom value of (Triggering unit))] = 2
Wait until (((Triggering unit) is loaded into u) Equal to False), checking every 1.00 seconds
Set o999[(Custom value of (Triggering unit))] = (o999[(Custom value of (Triggering unit))] - 1)
Unit - Decrease level of Phoenix Fire for u
Custom script: set udg_u = null
Else - Actions
[/trigger]
[trigger=2]
Events
Unit - A unit enters (Playable map area)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
indexer09 Greater than 8000
Then - Actions
Set indexer09 = 0
Else - Actions
Set indexer09 = (indexer09 + 1)
Unit - Set the custom value of (Triggering unit) to indexer09
[/trigger]
[trigger=1]
Events
Unit - A unit Is loaded into a transport
Conditions
(Unit-type of (Loading unit)) Equal to Footman
Actions
Custom script: local unit udg_u = GetTransportUnit()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
o999[(Custom value of (Triggering unit))] Equal to 0
Then - Actions
Unit - Add Phoenix Fire to u
Set o999[(Custom value of (Triggering unit))] = 1
Wait until (((Triggering unit) is loaded into u) Equal to False), checking every 1.00 seconds
Set o999[(Custom value of (Triggering unit))] = (o999[(Custom value of (Triggering unit))] - 1)
Unit - Remove Phoenix Fire from u
Custom script: set udg_u = null
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
o999[(Custom value of (Triggering unit))] Equal to 1
Then - Actions
Unit - Increase level of Phoenix Fire for u
Set o999[(Custom value of (Triggering unit))] = 2
Wait until (((Triggering unit) is loaded into u) Equal to False), checking every 1.00 seconds
Set o999[(Custom value of (Triggering unit))] = (o999[(Custom value of (Triggering unit))] - 1)
Unit - Decrease level of Phoenix Fire for u
Custom script: set udg_u = null
Else - Actions
[/trigger]
[trigger=2]
Events
Unit - A unit enters (Playable map area)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
indexer09 Greater than 8000
Then - Actions
Set indexer09 = 0
Else - Actions
Set indexer09 = (indexer09 + 1)
Unit - Set the custom value of (Triggering unit) to indexer09
[/trigger]
Attachments
Last edited: