Is it possible to save date on a map, close it, and open it later with the date there?
I'm trying to think of a game to work on for fun and I'd like to try something like World of Starcraft but if I can't save a character's levels and stuff between plays, I doubt I'd want to
Yes you can, but its not a 3 second job. It involves saving the information to the users CPU in a file. You can do this with triggers. This is called using banks. You can store and recall any value you saved into one of these banks. The issue is that its quite possible for players to delete, modify, or mess with banks with 3rd party programs.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
I'm not worries about people being able to mess with the numbers, I just wanted to know if it's saveable. If people want to cheat their way through a game, that's their choice.
Keys are just name identifiers for a value. Sections are name identifiers for a collection of keys. You really only need one section. Using more than one section is for organization purposes.
"Bank" - The name of the bank, and the name of the file stored as text on the clients computer.
"Section" is just like a title of the bank, see example below
"Key" The name of the variable you want to save (doesn't have to match any name you used in game)
Example:
RPGStatsBank
Section: Character
Key: level
Key: class
key: hair color
1) Note that if you don't mess your bank up, people can quickly edit it and change the stats they want.
2) loading maps over internet (bnet) isnt possible, only localy
3) bank names (sections, keys) have to match exactly when you load / store.
4) we're always happy to help with any question or examples, so let us know.
5) wasnt "world of starcraft" banned as name by Blizz?
thanks, yall are very helpful! And Idk if World of Starcraft was banned, I haven't heard that but I wouldn't be surprised
So for an example. To make a bank for a WoW-like game, i need 1 bank, set up like so?:
Section: Character
-Key: Actor
-Key: Name
-Key: Level
-Key: Strength (and a key for each other stat)
Section: Spells
-Key: (one for each spell)
Section: Quests
-Key: (one for each quest)
etc?
And to define a section or key, when storing values into a bank, do I just say "store integer 2 to bank PlayerBank in section Character and key Level"? If that isn't how you create a new section/key, how is?
I don't want to scatter your dreams, but ones you start building up a fair amount of variables to store; things get hectic and you might want to just start of learning it, experience it, and break it. There is a really excellent - although somewhat outdated, BUT it tells you everything you need to know, on how to make banks work and also across players, and with restarting (syncronizing) .. it's a lot to take in at ones, so I suggest you start by taking this tutorial:
This is by far the best guide I've found on banks; Read everything down til "Bank Files - Multiplayer" and stop there, you don't have to read the rest of the guide, it's technical and outdated. AND ask if you got any questions or PM someone.
Oh and you don't have to actually use a local variable to store the numbers first, you can get them directly from your maps variables by using the bank trigger for that.
For the organisation of it- Yeah probably. Also I believe if you save to a location in the bank that doesnt exist its created for you..Same with the bank. If you save to a non-existent bank one is created. Saving to a non-existent section creates a section in that name, etc.. You dont have to worry about whether you should create a new bank/key/section or just save to it- the editor handles that for you.
But if this an RPG, keep in mind theres a LOT more variables than you would think...You need to tack the quest progress of EVERY QUEST. The positions of any units that are important and moving, skill trees, etc....I don't know how experienced you are with the editor (haven't seen many posts from you before...odd because you have a decent post count), but if this is an RPG and you are new to it I would highly advise you to consider other projects. A lot of serious, very knowledgeable mapmakers start those things and never finish.
I know i'll have a LOT of work to make a game like this, but I'm up for it. I'm doing this just for fun and to learn how to set things up the best ways. I'm a high school sophmore with too much time on my hands and am planning to major in computer science to program for video games, so something like this with lots of trigger work is fun for me :)
Hmmm if you are having fun, I say go for it. But judging by a random guessed statistic, your map at 90% chance will never finish "but i'm up for it!" so was the other 90% as well for the first few days :) .. That being said, then go for it. I am sure you'll learn a couple of things, that's more or less true no matter how long you've used galaxy editor.
Do yourself a favor and start out with a decent plan over the things you want to make, and how things should work, and try to get a skellet, demo or so working before actually going hours into details. And with everything, if you run into questions, feel free to post or pm us, we're always happy to help.
Edit: here's the first answer to your first question, sooner or later. Try searching google or this forum first, your question have most likely already been answered ;)
Is it possible to save date on a map, close it, and open it later with the date there? I'm trying to think of a game to work on for fun and I'd like to try something like World of Starcraft but if I can't save a character's levels and stuff between plays, I doubt I'd want to
Yes you can, but its not a 3 second job. It involves saving the information to the users CPU in a file. You can do this with triggers. This is called using banks. You can store and recall any value you saved into one of these banks. The issue is that its quite possible for players to delete, modify, or mess with banks with 3rd party programs.
I'm not worries about people being able to mess with the numbers, I just wanted to know if it's saveable. If people want to cheat their way through a game, that's their choice.
But tyvm!! Is there a tutorial on how to do this?
http://forums.sc2mapster.com/resources/tutorials/?search=bank
take your pick :D
http://forums.sc2mapster.com/development/map-development/8015-banks-banks-banks-need-someone-to-dumb-this-down-a/#p1 I searched and found that while waiting for a reply. It's much simpler than I thought it'd be (yay!) I only have one more question about it - what is the Key and Section part I keep seeing? I'll look at those you posted
Keys are just name identifiers for a value. Sections are name identifiers for a collection of keys. You really only need one section. Using more than one section is for organization purposes.
@ctccromer: Go
Basicly a bank is just:
"Bank" - The name of the bank, and the name of the file stored as text on the clients computer. "Section" is just like a title of the bank, see example below "Key" The name of the variable you want to save (doesn't have to match any name you used in game)
Example:
RPGStatsBank
Section: Character Key: level Key: class key: hair color
Section: Quests Key: quest1 Key: quest2 Key: quest3
Post edited:
1) Note that if you don't mess your bank up, people can quickly edit it and change the stats they want. 2) loading maps over internet (bnet) isnt possible, only localy 3) bank names (sections, keys) have to match exactly when you load / store. 4) we're always happy to help with any question or examples, so let us know. 5) wasnt "world of starcraft" banned as name by Blizz?
thanks, yall are very helpful! And Idk if World of Starcraft was banned, I haven't heard that but I wouldn't be surprised
So for an example. To make a bank for a WoW-like game, i need 1 bank, set up like so?:
Section: Character
-Key: Actor
-Key: Name
-Key: Level
-Key: Strength (and a key for each other stat)
Section: Spells
-Key: (one for each spell)
Section: Quests
-Key: (one for each quest)
etc?
And to define a section or key, when storing values into a bank, do I just say "store integer 2 to bank PlayerBank in section Character and key Level"? If that isn't how you create a new section/key, how is?
@ctccromer: Go
I don't want to scatter your dreams, but ones you start building up a fair amount of variables to store; things get hectic and you might want to just start of learning it, experience it, and break it. There is a really excellent - although somewhat outdated, BUT it tells you everything you need to know, on how to make banks work and also across players, and with restarting (syncronizing) .. it's a lot to take in at ones, so I suggest you start by taking this tutorial:
http://www.hiveworkshop.com/forums/starcraft-ii-editor-help-zone-647/sc2-bank-files-critics-167005/
This is by far the best guide I've found on banks; Read everything down til "Bank Files - Multiplayer" and stop there, you don't have to read the rest of the guide, it's technical and outdated. AND ask if you got any questions or PM someone.
Oh and you don't have to actually use a local variable to store the numbers first, you can get them directly from your maps variables by using the bank trigger for that.
@ctccromer: Go
For the organisation of it- Yeah probably. Also I believe if you save to a location in the bank that doesnt exist its created for you..Same with the bank. If you save to a non-existent bank one is created. Saving to a non-existent section creates a section in that name, etc.. You dont have to worry about whether you should create a new bank/key/section or just save to it- the editor handles that for you.
But if this an RPG, keep in mind theres a LOT more variables than you would think...You need to tack the quest progress of EVERY QUEST. The positions of any units that are important and moving, skill trees, etc....I don't know how experienced you are with the editor (haven't seen many posts from you before...odd because you have a decent post count), but if this is an RPG and you are new to it I would highly advise you to consider other projects. A lot of serious, very knowledgeable mapmakers start those things and never finish.
Either way, I wish you the best of luck.
bump test :)
I know i'll have a LOT of work to make a game like this, but I'm up for it. I'm doing this just for fun and to learn how to set things up the best ways. I'm a high school sophmore with too much time on my hands and am planning to major in computer science to program for video games, so something like this with lots of trigger work is fun for me :)
@ctccromer: Go
Hmmm if you are having fun, I say go for it. But judging by a random guessed statistic, your map at 90% chance will never finish "but i'm up for it!" so was the other 90% as well for the first few days :) .. That being said, then go for it. I am sure you'll learn a couple of things, that's more or less true no matter how long you've used galaxy editor.
Do yourself a favor and start out with a decent plan over the things you want to make, and how things should work, and try to get a skellet, demo or so working before actually going hours into details. And with everything, if you run into questions, feel free to post or pm us, we're always happy to help.
Edit: here's the first answer to your first question, sooner or later. Try searching google or this forum first, your question have most likely already been answered ;)
http://forums.sc2mapster.com/general/general-chat/19191-displaying-multiple-lines-of-text-on-a-dialog-button/
Is my current issue. I can't get the string values to save when I set new values!