System Income System

vypur85

Hibernate
Reaction score
803
Code:
Incomeadd
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Player - Add Income[(Integer A)] to (Picked player) Current gold
                Player - Add IncomeLumber[(Integer A)] to (Picked player) Current lumber

I'm sure the above does't work.


Edit (for post below):
> look like a fool lol

Nonsense :p. I've made a fool of myself plenty of times here. :)
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Code:
Incomeadd
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Player - Add Income[(Integer A)] to (Picked player) Current gold
                Player - Add IncomeLumber[(Integer A)] to (Picked player) Current lumber

I'm sure the above does't work.


Owch I didn't notice the picked player part, you made me look like a fool lol, I got to +rep you for that :)
 

Fluffball

Well-Known Member
Reaction score
35
Kk, I think i fixed the bugs, if i find any more from proof reading, I will fix them.

I also added the Point Value Trigger, if people want it.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Code:
Incomeadd
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Player - Add Income[(Integer A)] to ([COLOR="Red"]Picked player[/COLOR]) Current gold
                Player - Add IncomeLumber[(Integer A)] to ([COLOR="red"]Picked player[/COLOR]) Current lumber

You need to change the red areas as vypur85 pointed out, this trigger wont work cause your useing picked player instead of integer a. So you need something like this


Code:
Incomeadd
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Player - Add Income[(Integer A)] to player Number [(Integer a)] Current gold
                Player - Add IncomeLumber[(Integer A)] to player Number [(Integer a)] Current lumber
 

Fluffball

Well-Known Member
Reaction score
35
Sorry, I think i changed it in the Map, but forgot to update the code. Thanks for pointing it out.

EDIT: Fixed
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Ok A few things, Firstly when makeing a demo map always delete the melee initiation trigger, 2nd if you have special codes that required make a text message saying what they are and what they do. Lastly the map you have posted is not an income system, it is a atribute + system.
 

dannyboydude

Ultra Cool Member
Reaction score
33
If you need to de something to activate the trigger tell the person playing
e.g. : you need to type -income to see your income
You get income every 20 seconds

Special infomation like that
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top