HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Pro Triggerers help with this

09-24-2004, 12:04 PM#1
Arkidas
You might know about the "Heros of Might and Magic" games, I want to have growth system that is every week there in my map.(Its an AoS map)

So I want to have it so:
------------------------------------------------
Every 400 seconds of the game

Then spawn more units that usually to the side that is winning, and decrease the spawns at the other side(There are 2 sides fighting in my map) I think I know how to decrease and increase spawns, I just make extra triggers that will turn on on 400 sec period and turn off the offical triggers then.

Do you know what I mean? the only thing I think I am stuck with is how to detect wich side is winning/losing, I have multiboard in my map that shows hero kills, could I somehow use that to detect it? Well I dont know but please help :\
09-24-2004, 12:53 PM#2
DarkMage
a growth system that is every week? So.. you want somthing to grow every week?

Explain please. I dont play "heros of might and magic". But i might beable to help.
09-24-2004, 01:17 PM#3
Arkidas
No,no it is every 400seconds in my map but in heroes it every week, read my post better
09-24-2004, 01:22 PM#4
ObsidianTitan
you cant detect the values on a multiboard, they just show the value.

Why dont you just create a variable to store the kills? (if you already dont have one) Then just use
if (side1kills) is greater than (side2kills) then
run side 1 bonus actions
else
if (side1kills) is less than (side2kills) then
run side 2 bonus actions
else
run neutral actions
else
do nothing
09-24-2004, 06:49 PM#5
Arkidas
variable as as integer then? I will try this
EDIT: Damn, I just cant find this out, can someone do that trigger that sets the kills to a variable?
09-24-2004, 11:43 PM#6
ObsidianTitan
use the event unit dies

condition
killing unit belongs to player 1
or
killing unit belongs to player 2(and so on)

actions
set team1 kills equal to team 1 kills + 1