I'm thinking it has something to do with your bank saving True as TEXT while your condition is asked to check a STRING. Two different things. Also, why words when it can be a bool?
Rollback Post to RevisionRollBack
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
@Vicboy: Had no idea about Booleans and Bank files... I knew how to do some very simple ones in Java, but I didn't notice them in the Bank file section. I'm either blind or I can't notice useful code snippets.
I have very simple knowledge on the Banks, because I watched one tutorial from . Not much else in that section in the editor.
Switched to a Boolean value and actually opened the Bank file.... It works now, thanks for pointing out the error.
(Also: Before my incompetent morning Brain forgets, anyone know of a tutorial on how to Store heroes with Items, Levels, all that. Then load them via Banks? I've got a game like DayZ and it's a crucial part of my Survival mode. I have absolutely no idea how to work banks, other than store kills like in OneTwo's tutorial.)
Well, I've never tried a bank system with units but here's the thing, supposedly you can store units into banks as well. I'm not sure how much of the unit information is restored but I guess you can use it to restore items and heroes easily.
So anyway, if that doesn't work out, turn unit type into string or integer (if you know what I mean) and store it.
By the way, I'm also interested in working on a DayZ-like game, you need help?
Rollback Post to RevisionRollBack
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
I had originally made the project as a storyline zombie game in direct competition with NoTD, but then I saw the DayZ map on SC2 and decided it wasn't the greatest.
Anyways, I'll be uploading my file soon when I get out the Beta Version and I could really use help with Triggers.
(I can do most of the Data abilities and such, but as you've seen: I'm clueless when it comes to Triggers and Scripts.)
I've got very little experience with bank files, so I really need help. This is the code I tried. (I'll edit it for 8 players later.)
Melee Initialization
Events
Game - Map initialization
Local Variables
Conditions
Actions
Bank - Preload and synchronize bank "TheTestBankOfTCG" for player 1
Variable - Set Bank = (Last opened bank)
Bank - Store text "True" as "ModeratorStatus" of section "1" in bank Bank
Ban
Events
Game - Player Any Player types a chat message containing "-ban", matching Exactly
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If (Load key "ModeratorStatus" of section "1" from bank Bank as a String) == "True"
Then
UI - Display "This obviously works..." for (All players) to Chat area
Else
UI - Display "You're not a Moderator." for (All players) to Chat area
I'm thinking it has something to do with your bank saving True as TEXT while your condition is asked to check a STRING. Two different things. Also, why words when it can be a bool?
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
Your missing the open bank action. You can't even set your variable to the last opened bank if you haven't even opened it yet.
I have very simple knowledge on the Banks, because I watched one tutorial from . Not much else in that section in the editor.
Switched to a Boolean value and actually opened the Bank file.... It works now, thanks for pointing out the error.
(Also: Before my incompetent morning Brain forgets, anyone know of a tutorial on how to Store heroes with Items, Levels, all that. Then load them via Banks? I've got a game like DayZ and it's a crucial part of my Survival mode. I have absolutely no idea how to work banks, other than store kills like in OneTwo's tutorial.)
@Alnatair: Go
Well, I've never tried a bank system with units but here's the thing, supposedly you can store units into banks as well. I'm not sure how much of the unit information is restored but I guess you can use it to restore items and heroes easily.
So anyway, if that doesn't work out, turn unit type into string or integer (if you know what I mean) and store it.
By the way, I'm also interested in working on a DayZ-like game, you need help?
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
I've got my project here if you're interested in it: http://www.sc2mapster.com/maps/city-horrors
I just posted an update to the page.
I had originally made the project as a storyline zombie game in direct competition with NoTD, but then I saw the DayZ map on SC2 and decided it wasn't the greatest.
Anyways, I'll be uploading my file soon when I get out the Beta Version and I could really use help with Triggers. (I can do most of the Data abilities and such, but as you've seen: I'm clueless when it comes to Triggers and Scripts.)