Is it possible to give disabled bunkers away to another player? Bcuz if so, can sum1 plz point out what is wrong with my trigger >.< (I really feel slow 4 asking this lol, but i cant figure out why this wont work)
BG First:
ok there are 8 preplaced bunkers for player 1 (a computer), and 4 ghosts near each bunker... At the beginning of the game, the ghosts execute the AI script "enter closest bunker at location" and that works fine...
I ultimately want to cloak all 8 bunkers after the units get loaded into them.
cloaking trigger:
----CONDITIONS
*Elapsed time is at least 10 game seconds
----ACTIONS
*Center location 'X' on Bunker at Anywhere owned by Player 1
*Disable Doodad State for Bunker at 'X' for Player1
*Give all Bunker owned by Player1 at 'X' to Foes
*[the above 3 actions, repeated 6 more times]
*Center location 'X' on Bunker at Anywhere owned by Player 1
*Disable Doodad State for Bunker at 'X' for Player1
*Give all Bunker owned by Foes at Anywhere to Player1
ok, that trigger... only cloaks 1 bunker, the first 1 (the bottom left most bunker... u know, cuz thats the one SC sees first)
and ive tried a bunch of crap... well not a bunch... but i have tried sum stuff, and this is getting weird... it should work >.< so can ne 1 tell me why only the first bunker iz getting cloaked? is it bcuz i have to give "all [any unit]" at 'X' because u cant just give the bunker, but the units inside also? *goes 2 try that*
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
The disable doodad state action only works for 1 bunker at a time and always the leftmost.
You will have to give the bunker after disabling it, then disable the next. It will target the next bunker because the player you specified doesn't own the 1st bunker anymore.
You will have to repeat that as many times as bunkers there are.
And try to avoid giving to Foes. I can't predict what will happen. Use a specific player instead.
He has it set up properly, it's just his give action that seems to be messing up, do like Nude said and try switching out Foes for something else.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
His solution doesn't work because he is giving ALL bunkers instead of 1 at a time (even if foes would work).
And btw. yes, the units inside the bunkers change owner too.
Yeah, but he's only giving the ones at the location he has centered on them, so unless his location size is too big, it shouldn't be a problem.
None.
yea, the location is small... only on 1 bunker at a time...
and changing it from "foes" to a certain player work'd perfectly... thx guys
None.
I'm rusty on my triggers no doubt.
I don't think you would need the location at all. I think if you just give one bunker away each time then they will be selected in the same priority that the bunkers are being disabled.
Like they said before giving to 'foes' is a no-no But the other way should be fine. At that point all the bunkers except one are given to the computer and then all given back to the player. My question is if the bunkers are pre-placed why is it you have them owned by the human player in the first place?
(does the load bunker AI not work for computers? I forget)
None.
Well, it seems he needs them to be owned by the player, then he uses that to transfer them over to another player, then gives them all back, which wouldn't work without starting with another player.
None.
yea i could probably do the whole thing just using the anywhere location but i did the centered location thing just in case i want to change it a little later... since i already have the location, itd be easy
and yea, the player specific trigger worked and falk is right... they need to be preplaced for that player so they can all be given away after being disabled, then given back
None.