HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Gold Mine Entanglement Trigger

07-01-2005, 11:46 AM#1
j1mmmy
I'm working on a trigger which replicates the effects of the Night Elf mines being entangled at the start of the game (I'm using modified mines and other buildings with the entangle ability). It works, but only for one player. I'm using '//' to explain things here (ala comments in coding).

For (Int A) from 1 to 16, do (actions) //To represent players
game text say int A //For debug
Pick 1 random unit from units within 700 of Player Number (Int A)'s start pos
Set temp_unit = picked unit //Temp unit storage
Game text say "found goldmine"//We found a gold mine
Pick every unit in units owned by player number (Int A) of type Tree of Life
order picked unit to instant entangle temp_unit
game text say "entangled"

What happens is the mine for player 1 is entangled, it prints 1 (Int A's value), found goldmine and entangled. It doesn't print 2 or entangle anything else. Somehow it doesn't seem to get out of that loop or go onto number 2 in the for loop. Any thoughts on why this is happening? I really need to fix this problem.