I am trying to create a system that basically says for every 5 kills by player X, player X receives 100 minerals. I would like both allied and enemy units to count towards getting the minerals. My thought was to set every unit's XP reward to 1, and then create a trigger to listen for every time a unit gains a level. Upon gaining a level, the trigger resets the level/xp of that unit back to 0.
The problem is that friendly units don't count towards a unit's XP gain. I know I could use more generic trigger "Any Unit Dies" trigger, but there can be heavy fighting between very large armies in my map so I'm trying to avoid "Any Unit Dies" triggers because of lag. Can anybody think of a way to make this work, or an alternate system that would be unlikely to create lag for me?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am trying to create a system that basically says for every 5 kills by player X, player X receives 100 minerals. I would like both allied and enemy units to count towards getting the minerals. My thought was to set every unit's XP reward to 1, and then create a trigger to listen for every time a unit gains a level. Upon gaining a level, the trigger resets the level/xp of that unit back to 0.
The problem is that friendly units don't count towards a unit's XP gain. I know I could use more generic trigger "Any Unit Dies" trigger, but there can be heavy fighting between very large armies in my map so I'm trying to avoid "Any Unit Dies" triggers because of lag. Can anybody think of a way to make this work, or an alternate system that would be unlikely to create lag for me?