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.
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.
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.
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.
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.
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
thanks you all for the responses.
None.