• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Rais Pig Skill

Status
Not open for further replies.
Level 15
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?
 
Status
Not open for further replies.
Top