Hello , will this be MUI?
Its suppose to give gold and lumber for all players each time someone trains a speciall unit.
This is just a test trigger.
Its suppose to give gold and lumber for all players each time someone trains a speciall unit.
This is just a test trigger.
Trigger:
- test trigger
- Events
- Unit - A unit Finishes training a unit
- Conditions
- Actions
- Set goldlumbinteger = (Player number of (Triggering player))
- Set PlayerGoldlumb[goldlumbinteger] = (Triggering player)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Trained unit)) Equal to |cffffcc00L|rumber Harvester (Level 1)
- Then - Actions
- Set LumberInterger[goldlumbinteger] = (LumberInterger[goldlumbinteger] + 1)
- Game - Display to (All players) the text: ((String(LumberInterger[goldlumbinteger])) + Is the Lumber)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Trained unit)) Equal to |cffffcc00G|rold Harvester (Level 1)
- Then - Actions
- Set Goldinterger[goldlumbinteger] = (Goldinterger[goldlumbinteger] + 1)
- Game - Display to (All players) the text: ((String(Goldinterger[goldlumbinteger])) + Is the gold)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Events
Trigger:
- test triggers
- Events
- Time - Every 5.00 seconds of game time
- Conditions
- Actions
- Player - Add Goldinterger[goldlumbinteger] to PlayerGoldlumb[goldlumbinteger] Current gold
- Player - Add LumberInterger[goldlumbinteger] to PlayerGoldlumb[goldlumbinteger] Current lumber
- Game - Display to (All players) the text: (You got + ((String(Goldinterger[goldlumbinteger])) + Gold!))
- Game - Display to (All players) the text: (You got + ((String(LumberInterger[goldlumbinteger])) + Lumber))
- Events