Tax system

Holygiant

Active Member
Reaction score
1
Does anyone know how to do a tax-system type of thing, like Stronghold?

For those of you who don't know exactly what I'm talking about, it's like this:

Every time you send a certain unit, you get two more gold every ten seconds then before.

So, can anyone help me at all with this?

Thanks,
Holygiant
 

lindenkron

You can change this now in User CP
Reaction score
102
Create integer variable.
could be called GoldIncome

Every 15 sec
set property player 1 reds gold to player 1 current gold + GoldIncome[1]

in another tirgger
Unit finishes training
Set GoldIncome[player number of triggering unit] = GoldIncome[player number of triggering unit] + Point Value of triggering unit.

go to object manager and set their point value to the number you want them to increase the gold income by.

This is just free-hand since I'm working on something else at the moment. Hope it helps you :)

-Lindenkron

Edit:
Ha! First! :p
 

Sajberhippie

New Member
Reaction score
30
That should be quite easy. Make an integer variable for the player in question, make a trigger like "whenever unit X enters playable map area, set (Variable) to (Variable+2).
Then have another trigger that does like "Every 10 seconds, add (Variable) gold to certain player".

It shouldn't be harder than that, should it?
 

Never_Quit

New Member
Reaction score
16
you mean like an income counter?

unit is trained
move unit instantly to region a
issue last unit trained to move to region b
set incomeforplayer[player number[owner of unit[unit trained]]] = the variable[index] + real value(unit point value)

next trigger

event every 10 seconds
for each integer A 1-12
add incomeforplayer[(A)] to player(A) current gold
 
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