• 🏆 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!

[Trigger] Income System

Status
Not open for further replies.
Level 4
Joined
Jan 27, 2020
Messages
51
income system that increases the income whenever units are sent to the enemy.
 
Level 23
Joined
Apr 3, 2018
Messages
460
You need an integer array keeping income for every player.
A trigger that detects buying the sent units, that will increase the array value for the buying player.
And another trigger, that will give gold to each player equal to the value in the array every x seconds.
 
Level 4
Joined
Jan 27, 2020
Messages
51
You need an integer array keeping income for every player.
A trigger that detects buying the sent units, that will increase the array value for the buying player.
And another trigger, that will give gold to each player equal to the value in the array every x seconds.

Can you teach me im just a beginner
 
Status
Not open for further replies.
Top