how to make lumber income ?

niceone

New Member
Reaction score
3
lumber income

its like u have 200k income that u get -> 100k income + 1lumber so if somebody knows what to do at mine triggers say it!! please

Code:
Events
    Time - Every 1.00 seconds of game time
Actions
    For each (Integer A) from 1 to 11, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    Income[(Integer A)] Greater than 30
                Then - Actions
                    Set Income[(Integer A)] = (Income[(Integer A)] - 10)
                    Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] + 1)
                Else - Actions
                    Do nothing

can u please help me
 
D

DemonOfNight

Guest
it might not work because you put your for integer b4 if then else, try this:

Code:
Events
Time - Every 1.00 seconds of game time
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Income[(Integer A)] Greater than 30
Then - Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set Income[(Integer A)] = (Income[(Integer A)] - 10)
Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] + 1)
Else - Actions
Do nothing

1-next time, put your trigger in a code, the little # in the post settings
2-tell us what does or doesnt happens when you open the map so we can understand whats the problem with your trigger.
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
it might not work because you put your for integer b4 if then else, try this:

Code:
Events
Time - Every 1.00 seconds of game time
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[B]Income[(Integer A)] Greater than 30[/B]
Then - Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set Income[(Integer A)] = (Income[(Integer A)] - 10)
Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] + 1)
Else - Actions
Do nothing

1-next time, put your trigger in a code, the little # in the post settings
2-tell us what does or doesnt happens when you open the map so we can understand whats the problem with your trigger.
This that you have doesn't work because the bolded line uses Integer A but you don't make a loop until after the bolded line, so it will stop there. Just point out that this not a good fix.
 

niceone

New Member
Reaction score
3
ok i can do make lumber in money -> and money in lumber automatical
but i cant make income (gold) -> income (lumber) because he does take off the gold but he doesnt add the lumber to the income.
-> if its set to 200k u cant get more income then 199999 gold because if u go higher it does 100k off but doesnt add any lumber so it doesnt work=S :banghead: :( :confused:

this is for income to lumber

Code:
Events
    Time - Every 1.00 seconds of game time
Actions
    For each (Integer A) from 1 to 11, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    Income[(Integer A)] Greater than 30
                Then - Actions
                    Set Income[(Integer A)] = (Income[(Integer A)] - 10)
                    Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] + 1)
                Else - Actions
                    Do nothing

and this is for lumber to income

Code:
Events
    Time - Every 1.00 seconds of game time
Actions
    For each (Integer A) from 1 to 11, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    IncomeLumber[(Integer A)] Greater than 0
                    Income[(Integer A)] Less than 30
                Then - Actions
                    Set Income[(Integer A)] = (Income[(Integer A)] + 10)
                    Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] - 1)
                Else - Actions
                    Do nothing


i hope i explained more :cool:

i want to have it like custom hero line wars!! but its bigg ass protected so i cant see the trigger >.>
 

niceone

New Member
Reaction score
3
so if someone can give me an unprotected version so i can see the trigger that would be realy nice :D
 
D

DemonOfNight

Guest
take this map, with easy triggers, its also easy to understsand
 

niceone

New Member
Reaction score
3
i found the problem i forgot to set the income so that it adds lumber and gold

these are the working trigers

Code:
Income
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 11, do (Player - Add Income[(Integer A)] to (Player((Integer A))) Current gold)
        For each (Integer A) from 1 to 11, do (Player - Add IncomeLumber[(Integer A)] to (Player((Integer A))) Current lumber)

Code:
Income to lumber
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Income[(Integer A)] Greater than or equal to 200000
                    Then - Actions
                        Set Income[(Integer A)] = (Income[(Integer A)] - 100000)
                        Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] + 1)
                    Else - Actions
                        Do nothing

Code:
Lumber To Income
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        IncomeLumber[(Integer A)] Greater than 0
                        Income[(Integer A)] Less than 100000
                    Then - Actions
                        Set Income[(Integer A)] = (Income[(Integer A)] + 100000)
                        Set IncomeLumber[(Integer A)] = (IncomeLumber[(Integer A)] - 1)
                    Else - Actions
                        Do nothing

I hoped anyone else has help of this :D

attachment.php
 

Attachments

  • closed.gif
    closed.gif
    1.4 KB · Views: 120
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top