So, a while back when i still had my PC (gave it to my parents to get a Mac) I played a lot of CnC3. Online, there was a map called "Blood Arena" by Wiwiweb. (http://forums.mp-gaming.com/thread-2417.html) The basic idea of the game is you have engineers on the right side, who stand near certain units, which in turn, spawns them at your base in one of the corners of the large square. You use to units to get kills, which ultimately gives you a new engineer on the right side, in a new level. The higher your level, the more "badass" the units are that you can spawn. With your units, there are also control nodes you can hold in order to gain more points other than just killing, so that you can advance up the unit tiers.
My point here, is I want to create a version of Blood Arena for SC2. What i want to know is, is there a way to create triggers that allow you to spawn units by just having your unit stand near them? and how can i create a trigger to allow the player to collect minerals or points by standing in a designated area? If someone could point me to a thread or youtube video, it would be greatly appreciated. I'm rather new to the whole editing scene for SC2.
Yes, it is most certainly possible. You could use an event like "unit enters distance from point/region," and an action "create one (unit depending on which point or region) at (wherever you want the unit to spawn)
One is an array of points/regions which holds all the players' spawn locations ( let's call it PlayerRegions ).
The other one is an integer which holds the player who has this neutral unit captured ( let's call it CurrentPlayer ).
Then you need a trigger to set the CurrentPlayer:
Event:
- Any Unit enters RegionAroundTheNeutralUnit
Action:
- Set CurrentPlayer = (Owner of triggering unit)
Now, in the trigger you spawn the units you can just issue a movement order:
- Issue order (move) to SpawnedUnits targeting PlayerRegions[ CurrentPlayer ]
If you're unfamiliar with arrays I'd read up on them first (they're a very useful tool of triggering).
Will "RegionAroundTheNeutralUnit" apply to all regions in which a neutral unit lies, or do i have to create their own regions, and in essence, create a trigger for each unit that i have, that needs to be spawned?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, a while back when i still had my PC (gave it to my parents to get a Mac) I played a lot of CnC3. Online, there was a map called "Blood Arena" by Wiwiweb. (http://forums.mp-gaming.com/thread-2417.html) The basic idea of the game is you have engineers on the right side, who stand near certain units, which in turn, spawns them at your base in one of the corners of the large square. You use to units to get kills, which ultimately gives you a new engineer on the right side, in a new level. The higher your level, the more "badass" the units are that you can spawn. With your units, there are also control nodes you can hold in order to gain more points other than just killing, so that you can advance up the unit tiers.
My point here, is I want to create a version of Blood Arena for SC2. What i want to know is, is there a way to create triggers that allow you to spawn units by just having your unit stand near them? and how can i create a trigger to allow the player to collect minerals or points by standing in a designated area? If someone could point me to a thread or youtube video, it would be greatly appreciated. I'm rather new to the whole editing scene for SC2.
@Thrasher25: Go
Yes, it is most certainly possible. You could use an event like "unit enters distance from point/region," and an action "create one (unit depending on which point or region) at (wherever you want the unit to spawn)
( coming from here )
Basically you need two global variables:
One is an array of points/regions which holds all the players' spawn locations ( let's call it PlayerRegions ).
The other one is an integer which holds the player who has this neutral unit captured ( let's call it CurrentPlayer ).
Then you need a trigger to set the CurrentPlayer:
Event:
- Any Unit enters RegionAroundTheNeutralUnit
Action:
- Set CurrentPlayer = (Owner of triggering unit)
Now, in the trigger you spawn the units you can just issue a movement order:
- Issue order (move) to SpawnedUnits targeting PlayerRegions[ CurrentPlayer ]
If you're unfamiliar with arrays I'd read up on them first (they're a very useful tool of triggering).
@s3rius: Go
Will "RegionAroundTheNeutralUnit" apply to all regions in which a neutral unit lies, or do i have to create their own regions, and in essence, create a trigger for each unit that i have, that needs to be spawned?