Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: spawning units anywhere on map
spawning units anywhere on map
This topic is locked. You can no longer write replies here.
Jul 29 2008, 11:10 pm
By: Gold_Member  

Jul 29 2008, 11:10 pm Gold_Member Post #1



Hello, I'm trying to create a system (kinda like in Cat Vs Mouse) where you have 1 scv, and I want it to where if you buy a unit from the "store" it spawns the unit wherever your scv is. How would I go about doing this? triggers would be nice :)



None.

Jul 29 2008, 11:15 pm stickynote Post #2



YOu first need to center a location on your scv. Constantly center this location. Then, when the player buys a unit, simply create it at this location. In the actions list, it is called "Move Location".



None.

Jul 29 2008, 11:26 pm FoxWolf1 Post #3



If you're lazy and want to save locations and triggers, you can use just one location, and rather than constantly centering it on the scv, have the actions of the trigger first center the location on the scv and then spawn the unit. This method makes it a lot easier to simply use "Current Player" triggers for the whole force of players, instead of different triggers with different locations.



None.

Jul 29 2008, 11:29 pm Kaias Post #4



Quote from FoxWolf1
If you're smart and want to save locations and triggers, you can use just one location, and rather than constantly centering it on the scv, have the actions of the trigger first center the location on the scv and then spawn the unit. This method makes it a lot easier to simply use "Current Player" triggers for the whole force of players, instead of different triggers with different locations.
Corrected.



None.

Jul 30 2008, 1:20 am Gold_Member Post #5



so foxwolf, I understand the basic setup of the trigger, but I don't understand how to set up the way that you are describing, wanna trigger it up fo me? :)
thanks for all the quick responses.



None.

Jul 30 2008, 2:31 am LosTZealoT Post #6



Players:
SCV-Owning Force

Condition:
Current Player Brings exactly 1 Buyer to Unit-Being-Bought-Location.
Current Player accumulates Cost ore.

Action:
Preserve Trigger.
Center Location X on SCV owned by Current Player at Anywhere.
Modify resources for Current Player: Subtract Cost ore.
Create 1 Unit-Being-Bought at Location X for Current Player.
Move All Buyer for Current Player at Location Unit-Being-Bought-Location to Store-Location.

Sorry if I missed something, but thats the just of it.

Edit:
I did forget something, the Accumulate Condition!

Post has been edited 1 time(s), last time on Jul 30 2008, 3:58 am by LosTZealoT.



None.

Jul 30 2008, 3:52 am Gold_Member Post #7



Thank you Lost Zealot for the trigger form, its hard enough for me to figure out how to use triggers let alone take a paragraph description and turn that into a trigger :D thanks you all for the responses.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-9-25. : 2:22 pm]
Oh_Man -- https://youtu.be/Lfo4C0xzU04
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
[2026-9-23. : 10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
Please log in to shout.


Members Online: JamaL