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-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[2026-7-23. : 1:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
[2026-7-23. : 1:39 am]
Oh_Man -- i appreciate SCBW's ability to just let us upload and play WAVs so much compared to nightmare that is total war warhammer 3
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
Please log in to shout.


Members Online: Excalibur