KaosKnight
New Member
- Reaction score
- 0
I created the following triggers. The variable is integer, array 1
Civilian
Event:
Unit-a unit finishes training a unit
Condition:
Unit type of (Trained Unit)) Equal to Troll Citizen
Action:
Set TaxIncome[(player number of (Owner of (Trained Unit)))]=player
number of(owner of (Trained Unit)))+3)
Tax Income
Event:
Time-Every 5.00 second of game time
Action:
Player Group-Pick every player in (All Players) and do action
Loop Actions
Player-Add TaxIncome[(Player number of (Owner of (Trained Unit)))] to
(picked Player) Current gold
1. However, whenever I trained my citizen, the gold increase steady rate of 3 gold for 5 second no matter what, instead of increasing exponentially, depending on number of civilians. For Example, if there were 20 civilians then gold would continue to climb instead of steady rate of three gold for five second. How could I solve this problem?
2. Also, in the middle of the game, I want to trigger a demonic invasion to destroy every player on the map. How Do I trigger that event?
3. In addition, in early part of the game I want to hold the barbarians at bay for three minutes so they can prepare for raiding the villagers. How Do I create trigger based on that?
4. How do you make players ally to each other if they type ally(color)?
5. How do you, when you finished training the king in starting building in center of the map, replace the building with two workers and king?
Civilian
Event:
Unit-a unit finishes training a unit
Condition:
Unit type of (Trained Unit)) Equal to Troll Citizen
Action:
Set TaxIncome[(player number of (Owner of (Trained Unit)))]=player
number of(owner of (Trained Unit)))+3)
Tax Income
Event:
Time-Every 5.00 second of game time
Action:
Player Group-Pick every player in (All Players) and do action
Loop Actions
Player-Add TaxIncome[(Player number of (Owner of (Trained Unit)))] to
(picked Player) Current gold
1. However, whenever I trained my citizen, the gold increase steady rate of 3 gold for 5 second no matter what, instead of increasing exponentially, depending on number of civilians. For Example, if there were 20 civilians then gold would continue to climb instead of steady rate of three gold for five second. How could I solve this problem?
2. Also, in the middle of the game, I want to trigger a demonic invasion to destroy every player on the map. How Do I trigger that event?
3. In addition, in early part of the game I want to hold the barbarians at bay for three minutes so they can prepare for raiding the villagers. How Do I create trigger based on that?
4. How do you make players ally to each other if they type ally(color)?
5. How do you, when you finished training the king in starting building in center of the map, replace the building with two workers and king?