Staredit Network

Staredit Network -> UMS Assistance -> HELP-triggers
Report, edit, etc...Posted by Staredit.Net Essence on 2005-04-08 at 22:30:11
I'm modifying a broken test of survival zerg map, but I don't understand how to get the neutral hatcheries to give their larvae to the players. I tried give larvae, I tried give units, and I even tried kill all men at location, to kill the larvae and allow more to be produced!

How can I transfer ownership of the larvae, and then transfer back when they are done?
Report, edit, etc...Posted by Heimdal on 2005-04-08 at 22:41:19
If none of those things worked, I'd suggest double-checking the conditions and players that are executing the trigger. Try putting another action in the trigger so that you can check if the trigger is actually firing.
Report, edit, etc...Posted by slayer766 on 2005-04-08 at 22:41:41
QUOTE(cjkumd @ Apr 8 2005, 09:30 PM)
I'm modifying a broken test of survival zerg map, but I don't understand how to get the neutral hatcheries to give their larvae to the players. I tried give larvae, I tried give units, and I even tried kill all men at location, to kill the larvae and allow more to be produced!

How can I transfer ownership of the larvae, and then transfer back when they are done?
[right][snapback]183428[/snapback][/right]


Well since it's a *Neutral* hatchery that you say it is, any neutral unit is owned by P12. Just simply have the trigger set up like this:


Trigger
Description:
Neutral Larvae Trigger
Conditions:
¤ Human Players
¤ Current Player Brings At Least 1 Men To Location "Wherever the hatchery is"
Actions:
¤ Give All Any Unit Owned By Player12 At Location "Wherever the hatchery is" To Current Player
¤ Preserve Trigger


That right there will give the Neutral units to the current player who comes near the hatchery.
Now to give the units back:


Trigger
Description:
Give Units Back
Conditions:
¤ Human Players
¤ Current Player Brings Exactly 0 Men To Location "Wherever the hatchery is"
Actions:
¤ Give All Buildings Owned By Current Player At Location "Wherever the hatchery is" To Player12
¤ Preserve Trigger


There that should work. biggrin.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2005-04-09 at 01:10:03
slayer766: you would have to use "all players" bring exactly 0 men to location for the second trigger. Otherwise you will have multi player problems.

Also why does everyone assume neutral always means player 12?
Report, edit, etc...Posted by chuiu on 2005-04-09 at 14:47:49
It's the universal neutral player. I'm sure they are aware that they can set other, computer players, to neutral but it's better just to use 12 in case you have to add another player/computer in later. And I can't really see a case (though I'm sure there is one) where multiple neutral players would be needed.
Report, edit, etc...Posted by Heimdal on 2005-04-09 at 14:51:46
Iterating over buildings using a burrowed unit technique (to enable protoss ones, for example) for 8 human players should be done with 2 neutral players so that the human players never get a chance to unburrow an invincible zergling.
Report, edit, etc...Posted by chuiu on 2005-04-09 at 14:57:50
Burrow can be disabled and/or you can swap ownership between players as 1 trigger while doing it to prevent that.
Report, edit, etc...Posted by Heimdal on 2005-04-09 at 15:25:26
Swapping owners of buildings will un-enable all other buildings that you've already enabled. I just re-tested the burrowing thing...I don't know why my previous tests gave me different results, but you're right.
Report, edit, etc...Posted by chuiu on 2005-04-09 at 15:39:37
I mean swapping burrowed units. Swapping them with players unselects them also. (of course you know that)
Report, edit, etc...Posted by Chronophobia on 2005-04-09 at 16:22:57
QUOTE((U)Bolt_Head @ Apr 8 2005, 11:10 PM)
slayer766: you would have to use "all players" bring exactly 0 men to location for the second trigger.  Otherwise you will have multi player problems.

Also why does everyone assume neutral always means player 12?
[right][snapback]183541[/snapback][/right]


I don't know either, since you can chose who is neutral and not in Player Settings. My assumption is that P12 is used for Critters
Report, edit, etc...Posted by concienne on 2005-04-09 at 19:22:20
Also cjkumd, Make sure the location is big enough to cover the larva at the hatchery, so that u give ALL units to whatever player at that location, not JUST the hatchery..
Next Page (1)