Code:
Trigger
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A structure) Equal to True
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Control Point (10)
(Unit-type of (Triggering unit)) Equal to Control Point (15)
(Unit-type of (Triggering unit)) Equal to Control Point (20)
(Unit-type of (Triggering unit)) Equal to Control Point (30)
(Unit-type of (Triggering unit)) Equal to Control Point (35)
(Unit-type of (Triggering unit)) Equal to Control Point (40)
(Unit-type of (Triggering unit)) Equal to Control Point (50)
Actions
Unit - Set life of (Triggering unit) to 100.00%
Unit - Change ownership of (Triggering unit) to (Owner of (Killing unit)) and Change color
Code:
Trigger2
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (10))
Player - Add ((Number of units in TempGroup) x 10) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (15))
Player - Add ((Number of units in TempGroup) x 15) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (20))
Player - Add ((Number of units in TempGroup) x 20) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (30))
Player - Add ((Number of units in TempGroup) x 30) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (35))
Player - Add ((Number of units in TempGroup) x 35) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (40))
Player - Add ((Number of units in TempGroup) x 40) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
Set TempGroup = (Units owned by (Player((Integer A))) of type Control Point (50))
Player - Add ((Number of units in TempGroup) x 50) to Player 1 (Red) Current gold
Custom script: call DestroyGroup(udg_TempGroup)
The 'is a structure' check isn't neccessary, but I included it for the sake of efficiency.|||Thanks Man u where so much help
I have done EVERYTHING here for the control points (Not the income) and it doesn't work! is it because of the building I have... do I need to make some type of unit for this?
ReplyDelete