HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some trigger help

10-18-2004, 01:22 PM#1
Slugge
Ok so here are som trigger i need help with :

Player killed 10 units, gets 1 wood
Player Types command, all units move to region

Some other stuff :

Making a farm town hall, so the annoying countdown wont appear....
or any other method to make the countdown go away...
10-18-2004, 01:27 PM#2
logik
use an array of integers, add 1 to it for every kill and if the integer is equal to 10 then add 1 wood and set the variable to 0
10-18-2004, 01:34 PM#3
Slugge
that didnt tell me much, it would help with codes...
10-18-2004, 03:38 PM#4
Miningjrk
Create an array of integers, then

Event
Unit Dies

Conditions
Owner of (dying unit) = Player 10 Brown

Actions
Set (the array[1]) = (the array[1]) + 1
If/Then/Else
(array) = 10
Then
Player - Add 10 to player 1's current wood

You can do a bunch of if/then/elses to determine which part of the array to use (im assuming you want this for several players) and who to give the wood as. Hopefully you get the idea here.

Hope it helps.

-Miningjrk
10-18-2004, 03:49 PM#5
Slugge
Ah, thanx alot... finally some good help

but one thing... the array thingy... i dont really get that... can you make the trigger for me so i can try and use it myself...

if you could make the trigger then upload it here and ill import it into my map.... so i can see what u do
10-18-2004, 05:58 PM#6
Slugge
Still need help with : Player types command as exact match and the units will walk to middle