Disclaimer: I am sorry for the abysmal formatting, I am not used to these forums.
1) I'm making a pretty simple cannon defense style map right now. I have a "hero select" area with regions set up, but I don't know how to make, say, the archon region take 3 units to purchase and the marine region take 1 unit to purchase. (using drones as the purchasing unit). Right now I just have the archon trigger set up to work with 1 drone; I don't want to bother setting up the rest until I figure this out. I've been toying with unit groups, figuring it would be related to that, but haven't gotten anywhere with it. I could probably just make everything use minerals (cannons, hero units, upgrades), but I didn't want to make that be a choice (ie: no "do I upgrade my cannon or buy this hero")
2) I want an additional drone for the hero selection above to spawn every x kills. The best I've managed so far is using a 1s timer event with conditions '15 <= kill count <= 16' and action 'Create unit with default facing' - which is obviously not right. ie: It'll start spawning drones every second until the next wave comes and I get more kills. Is there not a simple trigger to spawn a unit every x kills? note: I made a kill count variable, is this tracked by default? Do I even need a new variable?
3) Leaderboards. How would I make a leaderboard to display the player names (1-6 players) and # of lives remaining? I have the lives variable [integer] set to 50, and have it decreasing by 1 for each wave unit that enters the exit region. I tried following a tutorial on youtube for this one, but it was doing it for kills and I couldn't figure out how to do it for anything other than kills.
Please leave out any fluff/visual styling type stuff, I just need to know the most basic methods of accomplishing those 3 points. I'm not completely unfamiliar with starcraft or the editor, but I haven't touched it in a very long time, and I had more experience in brood war, and that was simpler to use IMO.
Thanks in advance for anyone with advice.
Replies [including my own] from the B.Net forums, to avoid redundancies:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Well...I'm a noob at this stuff, but maybe this could help. Imposter is really good at answering these questions, but I like the practice.
1) If you are using triggers:
a) units enter region Archon, conditions units == 3 of player's X units, then create archon
a) units enter region Marine, conditions units == 1 of player's X units, then create marine
You also might want to look at the if/then clause in the actions part of the events
2) Set the trigger execution count condition to fire only once and restart the timer
3) No clue on the Leaderboards.
Check out Sc2Mapster, they have been a big help with my maps. I think there are few TD maps on their Maps sections that you can peel apart for guidance or code snippets.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
Posted by Clover
conditions units == 3
~~~~~~~~~~~~~
03/05/2015 01:34 PM Posted by Clover
conditions units == 1 of player's X units
~~~~~~~~~~~~~
(Me) What is the name of the action for this? Is it under preset, variable, functions, or value? Do I set a condition, and if so, what condition? All that comes up is And, Or, Not, Range, etc. no =.
~~~~~~~~~~~~~
03/05/2015 01:34 PMPosted by Clover
trigger execution count condition
~~~~~~~~~~~~~
(Me) Same thing. Where do I find these things? I know there are options after I choose and/or/whatever, but I don't know what to do for that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Me) Update: Alright, so I'm dumb and realized that "condition units == 3" would be a comparison condition, but I'm still having trouble finding the right actions inside that. I see 'Unit Attatched to Region', which reads:
(Unit Attached to ChooseArchon == Any Unit
But thats still not requiring 3, of course. So, I guess I'm closer in that I'm looking in the comparison condition, but do you know any exact action/function names I should be looking for?
0
Disclaimer: I am sorry for the abysmal formatting, I am not used to these forums.
1) I'm making a pretty simple cannon defense style map right now. I have a "hero select" area with regions set up, but I don't know how to make, say, the archon region take 3 units to purchase and the marine region take 1 unit to purchase. (using drones as the purchasing unit). Right now I just have the archon trigger set up to work with 1 drone; I don't want to bother setting up the rest until I figure this out. I've been toying with unit groups, figuring it would be related to that, but haven't gotten anywhere with it. I could probably just make everything use minerals (cannons, hero units, upgrades), but I didn't want to make that be a choice (ie: no "do I upgrade my cannon or buy this hero")
2) I want an additional drone for the hero selection above to spawn every x kills. The best I've managed so far is using a 1s timer event with conditions '15 <= kill count <= 16' and action 'Create unit with default facing' - which is obviously not right. ie: It'll start spawning drones every second until the next wave comes and I get more kills. Is there not a simple trigger to spawn a unit every x kills? note: I made a kill count variable, is this tracked by default? Do I even need a new variable?
3) Leaderboards. How would I make a leaderboard to display the player names (1-6 players) and # of lives remaining? I have the lives variable [integer] set to 50, and have it decreasing by 1 for each wave unit that enters the exit region. I tried following a tutorial on youtube for this one, but it was doing it for kills and I couldn't figure out how to do it for anything other than kills.
Please leave out any fluff/visual styling type stuff, I just need to know the most basic methods of accomplishing those 3 points. I'm not completely unfamiliar with starcraft or the editor, but I haven't touched it in a very long time, and I had more experience in brood war, and that was simpler to use IMO.
Thanks in advance for anyone with advice.
Replies [including my own] from the B.Net forums, to avoid redundancies:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Well...I'm a noob at this stuff, but maybe this could help. Imposter is really good at answering these questions, but I like the practice.
1) If you are using triggers:
a) units enter region Archon, conditions units == 3 of player's X units, then create archon a) units enter region Marine, conditions units == 1 of player's X units, then create marine
You also might want to look at the if/then clause in the actions part of the events
2) Set the trigger execution count condition to fire only once and restart the timer
3) No clue on the Leaderboards.
Check out Sc2Mapster, they have been a big help with my maps. I think there are few TD maps on their Maps sections that you can peel apart for guidance or code snippets.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
Posted by Clover
conditions units == 3
~~~~~~~~~~~~~
03/05/2015 01:34 PM Posted by Clover
conditions units == 1 of player's X units
~~~~~~~~~~~~~
(Me) What is the name of the action for this? Is it under preset, variable, functions, or value? Do I set a condition, and if so, what condition? All that comes up is And, Or, Not, Range, etc. no =.
~~~~~~~~~~~~~
03/05/2015 01:34 PMPosted by Clover
trigger execution count condition
~~~~~~~~~~~~~
(Me) Same thing. Where do I find these things? I know there are options after I choose and/or/whatever, but I don't know what to do for that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Me) Update: Alright, so I'm dumb and realized that "condition units == 3" would be a comparison condition, but I'm still having trouble finding the right actions inside that. I see 'Unit Attatched to Region', which reads:
(Unit Attached to ChooseArchon == Any Unit
But thats still not requiring 3, of course. So, I guess I'm closer in that I'm looking in the comparison condition, but do you know any exact action/function names I should be looking for?