Basically, a Dialog Box comes up at the start of the Game with two buttons (Currently) to select a Play Mode. Those buttons are currently set to Sudden Death or 100% x 2 Unit Health. That's still under implementation but I'm not having any trouble with that at the moment. When the Player clicks on the button to Vote for, it brings them to this list of Triggers. So the previous Dialog is hidden and while the rest of the Players are deciding on their Votes, you choose the Builder you want for your Defense. (Everyone else does the same, the Game doesn't start until the Timer reaches "0".) Most of that is working as it should be, with a couple of bugs I need to iron out still.
I played this fun game on Battle.net called Squadron Defense which basically starts you off with the basic builders, but unlocks advanced builders as you meet their specific pre-requisites... And your progress carries over to the next Game. I'm trying to do something similar, but I need to know how to do this. I know how to put the buttons into the Triggers, but how do I make it check if the pre-requisites have been met? Basically, if the pre-requisites have been met, the button would be shown as 'Available', while if they haven't been met, those buttons would be grayed out. I'm not really sure how this whole 'Save your progress' thing works.
Actually... Now that I think about it I might be able to achieve this with an If-Then-Else... Anyone's input would still be greatly appreciated though.
I need to ask someone out there to take a look at this Map I'm trying to build on the Map Editor and see what I'm trying to do with the Bank. I have the Bank set up entirely the way I'd like for it to work but it doesn't seem to do the job. Basically, I'm trying to put it together at the moment so that when I kill the 10 Probes with my Omegalisk, it unlocks two of the Builders at the bottom. (Yes, I know there's bugs in that area at the moment), but it's not even saving the Kills, and as such, it's not unlocking the Advanced Builders.
I'm not even sure where to began at taking screenshots of my Triggers... Everything is a mess right now, that's why I'm posting the Map on the Forums. Can someone take a look at this and see why the Bank isn't working or storing the values?===== DefenseTest =====
I've got the Bank File partially working and I see what's going on... I'm trying to use a Variable called Saved Kills, which is initially "0" (Integer), and then there's an Action Command in my Save Kills Trigger which basically looks like this:
Save Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) == 9
(Controller of player (Killing player)) == User
Actions
Bank - Open bank "xdefensemap" for player (Killing player)
Bank - Store integer ((Killing unit) kills (Current)) as "Kills" of section "Player" in bank (Last opened bank)
Bank - Save bank (Last opened bank)
Variable - Modify Saved Kills: + 1
Except there's nothing in the Actions that states it needs to set the Saved Kills Variable. I'm basically trying to set the Bank up so that whenever Player 1 Kills Unit, a Kill Point is added to the Bank File. When the Bank File has enough of those 'Points', a certain feature becomes unlocked. What Conditions or Actions do I need to add to do that..?
I currently have a Triggerset that looks like this... I'll explain what this Trigger does underneath the list of Triggers:
http://i43.tinypic.com/4jkmzo.jpg
Basically, a Dialog Box comes up at the start of the Game with two buttons (Currently) to select a Play Mode. Those buttons are currently set to Sudden Death or 100% x 2 Unit Health. That's still under implementation but I'm not having any trouble with that at the moment. When the Player clicks on the button to Vote for, it brings them to this list of Triggers. So the previous Dialog is hidden and while the rest of the Players are deciding on their Votes, you choose the Builder you want for your Defense. (Everyone else does the same, the Game doesn't start until the Timer reaches "0".) Most of that is working as it should be, with a couple of bugs I need to iron out still.
I played this fun game on Battle.net called Squadron Defense which basically starts you off with the basic builders, but unlocks advanced builders as you meet their specific pre-requisites... And your progress carries over to the next Game. I'm trying to do something similar, but I need to know how to do this. I know how to put the buttons into the Triggers, but how do I make it check if the pre-requisites have been met? Basically, if the pre-requisites have been met, the button would be shown as 'Available', while if they haven't been met, those buttons would be grayed out. I'm not really sure how this whole 'Save your progress' thing works.
The answer is: Banks.
To help people understand how to use banks correctly in games, check out my attachment in that post:
http://www.sc2mapster.com/forums/development/triggers/25873-bank-basic-help/?post=5
Also, check out the bank facts which seem to be true atm. It also contains to a tutorial with banks:
http://www.sc2mapster.com/forums/resources/tutorials/28875-trigger-bank-facts/
Actually... Now that I think about it I might be able to achieve this with an If-Then-Else... Anyone's input would still be greatly appreciated though.
@Mesden: Go
I need to ask someone out there to take a look at this Map I'm trying to build on the Map Editor and see what I'm trying to do with the Bank. I have the Bank set up entirely the way I'd like for it to work but it doesn't seem to do the job. Basically, I'm trying to put it together at the moment so that when I kill the 10 Probes with my Omegalisk, it unlocks two of the Builders at the bottom. (Yes, I know there's bugs in that area at the moment), but it's not even saving the Kills, and as such, it's not unlocking the Advanced Builders.
I'm not even sure where to began at taking screenshots of my Triggers... Everything is a mess right now, that's why I'm posting the Map on the Forums. Can someone take a look at this and see why the Bank isn't working or storing the values?===== DefenseTest =====
@Mesden: Go
I've got the Bank File partially working and I see what's going on... I'm trying to use a Variable called Saved Kills, which is initially "0" (Integer), and then there's an Action Command in my Save Kills Trigger which basically looks like this:
Save Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) == 9
(Controller of player (Killing player)) == User
Actions
Bank - Open bank "xdefensemap" for player (Killing player)
Bank - Store integer ((Killing unit) kills (Current)) as "Kills" of section "Player" in bank (Last opened bank)
Bank - Save bank (Last opened bank)
Variable - Modify Saved Kills: + 1
Except there's nothing in the Actions that states it needs to set the Saved Kills Variable. I'm basically trying to set the Bank up so that whenever Player 1 Kills Unit, a Kill Point is added to the Bank File. When the Bank File has enough of those 'Points', a certain feature becomes unlocked. What Conditions or Actions do I need to add to do that..?
@Mesden: Go
Anyone?