Monday, April 16, 2012

How to make Control Points

i want to know how to make control points with income when they are captured jast like Azeroth Wars in Warcraft 3 i'm in the middle of a map and i want to know how so can someone please help me!|||What do the control points in Azeroth Wars do, and how are they captured?|||u attack them and get income like 10, 15, 20, 30, 35, 40 & 50|||Can you be more specific?|||what is there to say u attack them they became yours and u get the income like 10, 20 ,ect all i want to know is how to make them with income after u attack them and ever 60 sec u get gold from all the Control Points u have like u might have a 10, 20, 15, 20 & 50 and u get 115 gold every 60 seconds|||Well, I got most of what I wanted to know from what you just said. You still haven't been completely clear about how the amount of income from each control point is managed, but I'll presume that it's done through individual buildings for each amount. Correct me if I'm wrong. Now, do the control points need to be taken to 0 HP or do they just need to be attacked once?|||they need to be down to 0HP. My bro said to me play azeroth wars and find out!|||Ok, create a unit group variable called TempGroup and use the following triggers:


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

1 comment:

  1. 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