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.
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: Roy