Hey Guys,
I'm developing a Map similar to the style of Maps such as Greece. Risk, and so forth and I'm having a bit of trouble trying to have an income system based on the number of acquired buildings. I've seen pseudo-code such as this obtained from How do you make buildings that generate money? - Warcraft III: The Frozen Throne Message Board for PC - GameFAQs
*Code*
Farms
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Player - Add ((Number of living Farm units owned by Player 1 (Red)) x 3) to Player 1 (Red) Current gold
Player - Add ((Number of living Farm units owned by Player 2 (Blue)) x 3) to Player 2 (Blue) Current gold
Player - Add ((Number of living Farm units owned by Player 3 (Teal)) x 3) to Player 3 (Teal) Current gold
Player - Add ((Number of living Farm units owned by Player 4 (Purple)) x 3) to Player 4 (Purple) Current gold
Player - Add ((Number of living Farm units owned by Player 5 (Yellow)) x 3) to Player 5 (Yellow) Current gold
Player - Add ((Number of living Farm units owned by Player 6 (Orange)) x 3) to Player 6 (Orange) Current gold
Player - Add ((Number of living Farm units owned by Player 7 (Green)) x 3) to Player 7 (Green) Current gold
Player - Add ((Number of living Farm units owned by Player 8 (Pink)) x 3) to Player 8 (Pink) Current gold
Player - Add ((Number of living Farm units owned by Player 9 (Gray)) x 3) to Player 9 (Gray) Current gold
Player - Add ((Number of living Farm units owned by Player 10 (Light Blue)) x 3) to Player 10 (Light Blue) Current gold
Player - Add ((Number of living Farm units owned by Player 11 (Dark Green)) x 3) to Player 11 (Dark Green) Current gold
Player - Add ((Number of living Farm units owned by Player 12 (Brown)) x 3) to Player 12 (Brown) Current gold
*Code*
But the problem with this is that I'm literally unaware of what I should be clicking as I go through the triggers to obtain this kind of result, this is perfect and is exactly what I'm looking for, but the farthest I can get right now is this:
GenerateIncomeExample
Events: Time - Every 60.00 Seconds of the Game
Conditions: N/A
Actions: Add((Number of living City units owned by Player 1 (Red)) to Player 1 (Red) Current Gold
So how can I have it multiply the amount of living cities (the number generated by that reference) by an integer, such as 3, 10 and so forth? Like literally what am I clicking as I go through to edit it? Thank you all so much for the help to come. As always, it is greatly appreciated.
Cordially,
Adorm
I'm developing a Map similar to the style of Maps such as Greece. Risk, and so forth and I'm having a bit of trouble trying to have an income system based on the number of acquired buildings. I've seen pseudo-code such as this obtained from How do you make buildings that generate money? - Warcraft III: The Frozen Throne Message Board for PC - GameFAQs
*Code*
Farms
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Player - Add ((Number of living Farm units owned by Player 1 (Red)) x 3) to Player 1 (Red) Current gold
Player - Add ((Number of living Farm units owned by Player 2 (Blue)) x 3) to Player 2 (Blue) Current gold
Player - Add ((Number of living Farm units owned by Player 3 (Teal)) x 3) to Player 3 (Teal) Current gold
Player - Add ((Number of living Farm units owned by Player 4 (Purple)) x 3) to Player 4 (Purple) Current gold
Player - Add ((Number of living Farm units owned by Player 5 (Yellow)) x 3) to Player 5 (Yellow) Current gold
Player - Add ((Number of living Farm units owned by Player 6 (Orange)) x 3) to Player 6 (Orange) Current gold
Player - Add ((Number of living Farm units owned by Player 7 (Green)) x 3) to Player 7 (Green) Current gold
Player - Add ((Number of living Farm units owned by Player 8 (Pink)) x 3) to Player 8 (Pink) Current gold
Player - Add ((Number of living Farm units owned by Player 9 (Gray)) x 3) to Player 9 (Gray) Current gold
Player - Add ((Number of living Farm units owned by Player 10 (Light Blue)) x 3) to Player 10 (Light Blue) Current gold
Player - Add ((Number of living Farm units owned by Player 11 (Dark Green)) x 3) to Player 11 (Dark Green) Current gold
Player - Add ((Number of living Farm units owned by Player 12 (Brown)) x 3) to Player 12 (Brown) Current gold
*Code*
But the problem with this is that I'm literally unaware of what I should be clicking as I go through the triggers to obtain this kind of result, this is perfect and is exactly what I'm looking for, but the farthest I can get right now is this:
GenerateIncomeExample
Events: Time - Every 60.00 Seconds of the Game
Conditions: N/A
Actions: Add((Number of living City units owned by Player 1 (Red)) to Player 1 (Red) Current Gold
So how can I have it multiply the amount of living cities (the number generated by that reference) by an integer, such as 3, 10 and so forth? Like literally what am I clicking as I go through to edit it? Thank you all so much for the help to come. As always, it is greatly appreciated.
Cordially,
Adorm