xiFackx
Member
- Reaction score
- 1
I've searched and i've searched for a tutorial that actually gets in depth income.
I've played around i found out how to add the players income to the players gold.. even how to use that on a leaderboard.
I've also figured out how to set a income for a creep....
but the thing is.. if i do it the way im doing it ill have to make a trigger for each creep, and each player... any help?
If anyone knows a better way to do this.. please.. help :/
I've played around i found out how to add the players income to the players gold.. even how to use that on a leaderboard.
I've also figured out how to set a income for a creep....
but the thing is.. if i do it the way im doing it ill have to make a trigger for each creep, and each player... any help?
Trigger:
- Income
- Events
- Unit - A unit Sells a unit
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Unit-type of (Sold unit)) Equal to Footman) and ((Owner of (Sold unit)) Equal to Player 1 (Red))
- Then - Actions
- Set redincome = (redincome + 10)
- Else - Actions
- Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to redincome
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Unit-type of (Sold unit)) Equal to Knight) and ((Owner of (Sold unit)) Equal to Player 1 (Red))
- Then - Actions
- Set redincome = (redincome + 20)
- Else - Actions
- Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to redincome
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
If anyone knows a better way to do this.. please.. help :/