I've got a problem with an income trigger, it should work like this: Lumber Mill created > add +1 to interger variable, every X sec give added X to player X.
The creation/build works fine, but the remove when a unit of type Lumber Mill dies seems to be bugged.
The problem with the decrease now is.. Everytime I build 5x a lumber mill I get +5 income, 5 get destroyed but I get -6 income... repeats everytime 5 lumber mills are being destroyed.
The creation/build works fine, but the remove when a unit of type Lumber Mill dies seems to be bugged.
The problem with the decrease now is.. Everytime I build 5x a lumber mill I get +5 income, 5 get destroyed but I get -6 income... repeats everytime 5 lumber mills are being destroyed.
-
wood increase
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructed structure)) Equal to Lumber Mill
-
-
Then - Actions
-
Set income_wood[(Player number of (Owner of (Constructed structure)))] = (income_wood[(Player number of (Owner of (Constructed structure)))] + 1)
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Constructed structure)) Equal to Lumber Mill v2
-
-
Then - Actions
-
Set income_wood[(Player number of (Owner of (Constructed structure)))] = (income_wood[(Player number of (Owner of (Constructed structure)))] + 5)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
wood decrease
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
income_wood[(Player number of (Owner of (Dying unit)))] Greater than 0
-
(Unit-type of (Dying unit)) Equal to Lumber Mill
-
-
Then - Actions
-
Set income_wood[(Player number of (Owner of (Dying unit)))] = (income_wood[(Player number of (Owner of (Dying unit)))] - 1)
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
income_wood[(Player number of (Owner of (Dying unit)))] Greater than 0
-
(Unit-type of (Dying unit)) Equal to Lumber Mill
-
-
Then - Actions
-
Set income_wood[(Player number of (Owner of (Dying unit)))] = (income_wood[(Player number of (Owner of (Dying unit)))] - 5)
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
income_wood[(Player number of (Owner of (Dying unit)))] Less than 0
-
-
Then - Actions
-
Set income_wood[(Player number of (Owner of (Dying unit)))] = 0
-
-
-
Else - Actions
-
-