Specific Variables question -1 reply

Please wait...

Flaepru

Hentai plx

50 XP

22nd January 2006

0 Uploads

31 Posts

0 Threads

#1 14 years ago

Im trying to make a variable system on my map where for every 1 kill someone gets the attack of all there archers goes up by 2. Does anyone know how i can do that?




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#2 14 years ago

huh?

do you mean something like somebody kills an enemy that somebody gets '+2 attack'?




Flaepru

Hentai plx

50 XP

22nd January 2006

0 Uploads

31 Posts

0 Threads

#3 14 years ago

No ill make it simpler. At every 100 kils player (X) gets Player (X)'s archers' attack will go up by +7.




EmOo18

Slightly cooler than a n00b

50 XP

24th October 2004

0 Uploads

37 Posts

0 Threads

#4 14 years ago

variables: killcount (this is an integer array set at 0 default)

event: a unit dies conditions: none yet actions: set killcount(player number of owner of killing unit) killcount(player number of owner of killing unit + 1) If, than, else (multiple functions) Condition: killcount(player number of owner of killing unit) equal to or greater than 100 then (action): set killcount(player number of owner of killing unit) to 0 (1st option) pick all units of type archer owned by owner of killing unit and [Advanced - For (Picked unit) Increase damage by 7] OR (2nd option)Player - Set the current research level of ArcherDamageUpgrade to ((Current research level of ArcherDamageUpgrade for (Owner of (Killing unit))) + 1) for (Owner of (Killing unit))

the advanced trigger (1st option) to set units damage is ONLY in WEU which you will need to download.

if you dont have WEU you can set up an upgrade that has lots of levels and just auto fill to give 7 damage each level.and use (2nd option)




Flaepru

Hentai plx

50 XP

22nd January 2006

0 Uploads

31 Posts

0 Threads

#5 14 years ago

wow... thanks emo thats exactly what i was looking for. thanks so much for hte help.