PDA

View Full Version : Random Spawning Locations


SuiCidAl-KiSmEt
12-23-2004, 11:42 PM
I'm making a sniping map, can someone list some triggers that help me with this map? Heres what I wanna do. If a Ghost Dies, I want it to have another spawning location, instead of the same place all over again. Can anyone help?

Hawthorne
12-24-2004, 4:36 AM
Well if you want to move the location as the "story" of the map goes on you'll have to use "move location" or you could create a protoss invincible observer and center the location on it.Another option is that you use switches in the process with the coordination of locations,or you could make it a random location spawn by using the time that has passed in the game,like 300 seconds have passed move "Spawn location" to "Random 1" ... you get the idea.
Everyone of these options is a good one but some are more advanced and reliaable on than others,you decide which one :)

peace_machine
12-24-2004, 4:42 AM
If you want to use a few default spawn locations (easiest option)

e.g if your respawn trigger was as follows (don't copy this because it probably wont work for what you want, just an example):

Conditions:
-Current player commands atmost 0 ghost
Actions:
-Create 1 ghost at location 1 for current player
-Preserve trigger

That would spawn the player at a default location
This would spawn the player at a random location, the number or spawn points depends on the number of swiches you use.

Conditions:
-Always
Actions:
-Randomise swich 1
-Randomise swich 2
-preserve trigger

Conditions:
-Current player commands atmost 0 ghost
-Swich 1 is set
-Swich 2 is set
Actions:
-Create 1 ghost for current player at location x
-preserve trigger

Condition:
-Player commands atmost 0 ghost
-swich 1 is cleard
-swich 2 is set
Actions:
-Create 1 ghost at location y for player
-preserve trigger

SuiCidAl-KiSmEt
12-24-2004, 5:21 PM
yo thanks, they both sound great.

Err, I made a mistake, in StarCraft X-tra Editor Specal mode, when I was moving a trigger all the way down, it said the hotekey for moving it down was alt+D, and that was the same one for Deleting the triggers, so I ended up creaing all my triggers again.

Hawthorne
12-25-2004, 6:02 AM
If you need a map with all of the triggers you might need PM me I've got a couple of 'em and believe me they really help ;)

X-Master2
12-25-2004, 2:18 PM
well one thing you could probably do is have the protoss observer like above. Then have a spawning location follow it around the map, I guess.....just gotta watch to see if the location goes to enemy base or not....

Spartan-II
12-26-2004, 11:45 PM
Dont forget to use the junkyard Dog AI script on the observer so it is random ;P