Hey there..!!
I wasted alot of time and thoughts in how to realize my kills to cash system...
In fact i though it will be easy, cauze i dont need different amount of cash for different units... All i wanted is to give a player 25 Minerals for every 5th Kill..
Sure there would be a hardcoded method of just do it like if palyer killed 5 units then add 25 minerals and then if palyer killed 10 units add... etc... but since i calculated the amout of my units with kills, that would mean i have to do this kind of trigger 100 times ... cauze in my map u can kill alot of dudeds!!
and to eb honest im to lazy to add nearly the same trigegr 100 times...
so i thought about a workaround on a system i saw in maze defense..
it works like this:
trigegr 1:
if players kills counter is minimum 1 , then add 1 xespin gase and substract 1 from payers kills counter! Repeat trigger
trigegr 2:
if player collect 5 vespin gas, then add 25 kinerals and set back vespin gas to 0!
Repeat Trigger....
i tested it and it works fine.. i added it under hyper triggers to make it work faster and in fact i like this method alltough its a bit slow...
BUT no i have one problem... once i killed a unit the counter does not stop .. i mean the system with the 2 trigegrs does not stop... but it should...
1st force attacking = 60 units.. if this payler kilsl them all, he has to get 300 minerals ... but once the 1st force attacked , the counter does not stop giving money alltuough no more units get killed...!
any ideas, help PLZ ?!
Thnx!
