- Joined
- Dec 13, 2008
- Messages
- 1,049
Hello. I asked for trigger help awhile ago and someone said he would help me. He made the trigger but i was confused on it. I went away for 2 days, got my hip muscle torn, etc, came back and he decided that I wasted his time and wasnt going to help me anymore...
So, what I am asking someone to do is to tell me if these triggers will do what I want them to do. If not, can some1 please modify them for me?
1. I want a trigger where when a building (lumber site, mining site, outpost or base of operations) is at or below 50 health, the player control is transferred to the attacking player.
2. Next, depending on how many gold/lumber sites someone has, you receive x amount of gold per 30 sec. I.E. you have 5 mining sites, 2 lumber sites which means you get 7g per 30 sec.
3. Next, I have buildings called outposts (generalized names) such as crossroads. These buildings normally give 1g per 30 sec unless there is a lumber site or mining site within 1250yds of the outpost.
4. Next, there are buildings called base of operations (generalized names) such as Dalaran. These buildings give 15g per 30 sec no matter what, and also, depending on the building, give attack/armor upgrades. For example, if you capture Dalaran, all of your ranged units have 1/1 upgrade to their attack/armor. If you lose a building, you lose that specific upgrade.
5. Finally, I need a trigger where it tells you how many of each stuff you have, and how much gold income you are receiving from it. I.E. if you have 3 mining sites, 5 lumber sites, 2 outposts, Dalaran and the Icecrown citadel, it will say 'You control 8 income sites, 2 outposts, Dalaran and Icecrown for a total of 40g per 30 sec'
Here are the triggers the guy made for me:
+Rep and credits to whoever solves it
So, what I am asking someone to do is to tell me if these triggers will do what I want them to do. If not, can some1 please modify them for me?
1. I want a trigger where when a building (lumber site, mining site, outpost or base of operations) is at or below 50 health, the player control is transferred to the attacking player.
2. Next, depending on how many gold/lumber sites someone has, you receive x amount of gold per 30 sec. I.E. you have 5 mining sites, 2 lumber sites which means you get 7g per 30 sec.
3. Next, I have buildings called outposts (generalized names) such as crossroads. These buildings normally give 1g per 30 sec unless there is a lumber site or mining site within 1250yds of the outpost.
4. Next, there are buildings called base of operations (generalized names) such as Dalaran. These buildings give 15g per 30 sec no matter what, and also, depending on the building, give attack/armor upgrades. For example, if you capture Dalaran, all of your ranged units have 1/1 upgrade to their attack/armor. If you lose a building, you lose that specific upgrade.
5. Finally, I need a trigger where it tells you how many of each stuff you have, and how much gold income you are receiving from it. I.E. if you have 3 mining sites, 5 lumber sites, 2 outposts, Dalaran and the Icecrown citadel, it will say 'You control 8 income sites, 2 outposts, Dalaran and Icecrown for a total of 40g per 30 sec'
Here are the triggers the guy made for me:
-
Untitled Trigger 001
-
Events
- Map initialization
- Conditions
-
Actions
- Set Out[1] = Crossroads 0221 <gen>
-
Events
-
Untitled Trigger 002
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Life of (Attacked unit)) Less than or equal to 50.00
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Attacked unit)) Equal to Lumber Site (Income)
- (Unit-type of (Attacked unit)) Equal to Mining Site (Income)
-
Conditions
-
Actions
- Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
- Unit - Set life of (Triggering unit) to 500.00
-
Events
-
Untitled Trigger 003
-
Events
- Time - Every 30.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type Lumber Site (Income)) and do (Actions)
-
Loop - Actions
- Player - Add 1 to (Owner of (Picked unit)) Current gold
-
Loop - Actions
-
Unit Group - Pick every unit in (Units of type Lumber Site (Income)) and do (Actions)
-
Events
-
Untitled Trigger 004
-
Events
- Time - Every 30.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type Mining Site (Income)) and do (Actions)
-
Loop - Actions
- Player - Add 1 to (Owner of (Picked unit)) Current gold
-
Loop - Actions
-
Unit Group - Pick every unit in (Units of type Mining Site (Income)) and do (Actions)
-
Events
-
Untitled Trigger 005
-
Events
- Time - Every 30.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units within 1250.00 of (Position of Out[1])) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Picked unit)) Equal to (Owner of Out[1])
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Picked unit)) Equal to Lumber Site (Income)
-
Conditions
-
Then - Actions
- Player - Add 1 to (Owner of (Picked unit)) Current gold
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Mining Site (Income)
-
Then - Actions
- Player - Add 1 to (Owner of (Picked unit)) Current gold
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 1250.00 of (Position of Out[1])) and do (Actions)
-
Events
+Rep and credits to whoever solves it