HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

wtf is this

09-16-2003, 01:53 AM#1
Crimsongg137
if (KillsFoLumba = 10)
Set KillsFoLumba[player number of (owner of unit(killing unit))] = 0;
Add 1 lumber to (owner of unit(killing unit))

can some 1 put in better words cuz im lost at
if (KillsFoLumba = 10)
09-16-2003, 01:59 AM#2
Draco
It is an integer variable. From the sounds of it, there is another trigger that adds 1 to the integer for each kill that the entity obtains. After 10, it resets the integer to 0 and gives the player 1 lumber. :D
09-16-2003, 02:22 AM#3
Das Jank
Ok I read your post below and figured I would post this here about your lumber per 10 kills problem. Here are 2 triggers. With one integer variable (kills).

-----------------------------------------------------------------

Events
Unit - A unit Dies
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Actions
Set Kills = (Kills + 1)

-------------------------------------------------------------------

Events
Unit - A unit Dies
Conditions
Kills Greater than or equal to 10
Actions
Player - Add 1 to Player 1 (Red) Current lumber
Set Kills = (Kills - 10)