Question Disable Locations ( BlizzForums SC Map Custom Development ) Updated: 2009-06-04 05:20:52 (5) |
|
Disable Locations
Can you disable locations. For example:
Trigger 1
Condition:
Player 1 brings 1 marine to location 1.
Player 1 brings 1 marine to location 2.
Player 1 brings 1 marine to location 3.
Player 1 brings 1 marine to location 4.
Action:
Create 1 wraith at location A
Create 1 wraith at location B
Create 1 wraith at location C
Create 1 wraith at location D
Trigger 2:
Condition:
Player 1 brings 1 marine to location 2.
Player 1 brings 1 marine to location 3.
Player 1 brings 1 marine to location 4.
Player 1 brings 1 marine to location 5.
Action:
Create 1 wraith at location B
Create 1 wraith at location C
Create 1 wraith at location D
Create 1 wraith at location E
Trigger 3
Condition:
Player 1 brings 1 marine to location 3.
Player 1 brings 1 marine to location 4.
Player 1 brings 1 marine to location 5.
Player 1 brings 1 marine to location 6.
Action:
Create 1 wraith at location C
Create 1 wraith at location D
Create 1 wraith at location E
Create 1 wraith at location F
Trigger 4
Condition:
Player 1 brings 1 marine to location 4.
Player 1 brings 1 marine to location 5.
Player 1 brings 1 marine to location 6.
Player 1 brings 1 marine to location 7.
Action:
Create 1 wraith at location D
Create 1 wraith at location E
Create 1 wraith at location F
Create 1 wraith at location G
Trigger 5
Condition:
Player 1 brings 1 marine to location 5.
Player 1 brings 1 marine to location 6.
Player 1 brings 1 marine to location 7.
Player 1 brings 1 marine to location 8.
Action:
Create 1 wraith at location E
Create 1 wraith at location F
Create 1 wraith at location G
Create 1 wraith at location H
Triggers continue in this pattern..etc.etc.
My problem:
So basically because player 1 will have more than 8 marines, they could stack some areas because when they do trigger 1 it creates wraiths at location A,B,C,D and if they do trigger 2 after, they create units at B,C,D,E. Stacking B C and D. So how do I make it if they do trigger 1, it disables location 1,2,3,4 so that they cannot do trigger 2,3,4.
|
|
| Answers: Disable Locations ( BlizzForums SC Map Custom Development ) |
|
Disable Locations
I am not entirely sure if I understood what you want, but I here's a suggestion:
So basically you only want 1 of all these triggers to work at a time? Then add this condition:
Switch 1 is cleared
to all the triggers, always the same switch. Then add an action:
Set Switch 1
to all triggers.
Basically this only lets you execute one of all these triggers.
I don't see any preserved triggers, so this might already be it. If you actually want to execute those triggers several times, you should add another trigger that clears Switch 1 again. For example if there are no marines on either location. Or just with the condition "Always", depending on what you want to happen.
So much about my suggestion, now about "disabling" locations. You can't really do that, but you can do something similar (which I wouldn't suggest because it is more complex and probably unnecessary.
There is the "Move Location" Action (Or maybe it's called "Center Location", I always mix them up). Basically you move the Locations away on a spot of water or whatever, somewhere your marines can't get to. But you'd also need a location to move to and possibly loactions for moving the old ones back.
By the way, that action centers a location on a unit in another location. If you choose "center location A on X owned by Y at location B"
With X being a unit that is not in location B and will never be, like a overmind or whatever and/or Y being a player that has no units in location B, for example a player that is not in the game,
then Location A will be placed in the center of location B.
spinesheath
|
|
Disable Locations
If you're trying to get them to preserve trigger, you can try this (repeat the triggers for all the locations):
Triggers 1-5:
Condition:
Player 1 brings 1 marine to location 1.
Player 1 brings 1 marine to location 2.
Player 1 brings 1 marine to location 3.
Player 1 brings 1 marine to location 4.
Action:
Set Switch 1
Set Switch 2
Set Switch 3
Set Switch 4
Triggers 6-13:
Condition:
Switch 1 is set
Action:
Create 1 Wraith at Location A
Clear Switch 1
roegi
|
|
Disable Locations
I figured out a way around it, instead of using a wraith I am using a building, so if the player attempts to stack, it will just be unplaceable and its their loss. Thanks for the suggestions though!
missilX
|
|
Disable Locations
But that gives bothersome unplaceable errors ;[
roegi
|
|
Disable Locations
Well thats their fault lol.
missilX
|
|
- Source: - Previous Question: BlizzForums SC Map Custom Development - Next Question: BlizzForums SC Map Custom Development |
|
|