- Joined
- Aug 20, 2014
- Messages
- 263
I need a system that detect the number of untis in multiple cargos. Then after 5 seconds increase gold of the owner player in 5 g for each unit in each cargo individualy.
Example
pawn1 enter on pigfarm1
elapsed time 5 sec.
owner of the pawn get 5g.
another pawn enter 2 seconds after the las payment on pigfarm1.
elapsed time 3 sec.
owner of the pawn1 get 5g
elapsed time 2 sec.
owner of the pawn2 get 5g...
pawn3 enter 1 second after on pigfarm2
elapsed time 2 sec.
owner get payment of pawn1 in pigfarm1 (5g)
elapsed time 2 sec.
owner get payment of pawn2 in pigfarm1 (5g)
elapsed time 1 sec.
owner get payment of pawn3 in pigfarm2 (5g)
Pigfarm 2 is destroyed or pawn3 left the cargo.
no money for owner...
I know the wisp gold mine work in a system like this or something, however I can't use it's ability because it crash my game when I give the ability to my pig farm. Any ideas?
Example
pawn1 enter on pigfarm1
elapsed time 5 sec.
owner of the pawn get 5g.
another pawn enter 2 seconds after the las payment on pigfarm1.
elapsed time 3 sec.
owner of the pawn1 get 5g
elapsed time 2 sec.
owner of the pawn2 get 5g...
pawn3 enter 1 second after on pigfarm2
elapsed time 2 sec.
owner get payment of pawn1 in pigfarm1 (5g)
elapsed time 2 sec.
owner get payment of pawn2 in pigfarm1 (5g)
elapsed time 1 sec.
owner get payment of pawn3 in pigfarm2 (5g)
Pigfarm 2 is destroyed or pawn3 left the cargo.
no money for owner...
I know the wisp gold mine work in a system like this or something, however I can't use it's ability because it crash my game when I give the ability to my pig farm. Any ideas?