| 12-06-2003, 04:50 AM | #1 |
Hi, im having a problem. Im gonna use the demo from the late night lads for saving a hero. My problem is that the level can't go over 35 because of basesize. This is waht i think the code does: -sets alphabaseset= 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -wat the code does for hero level is that it sets your hero level to equal a string. Then that string determines how far down that list it picks then it adds 1. Ex: -my hero is level 22 -That means it would pick 22 characters down alphabaseset +1 which would be L -I can't add more characters cause code screws up, can anyone who has this demo help me out? I need heroes to go to level 100. P.S. My RPG ain't junk, there will be many heroes, 20 skill levels for each skill(already done 9 skills), and lots of items that all save. |
| 12-06-2003, 05:43 AM | #2 |
I've never seen this demo but your theory about how it works certainly sounds logical. However, I would suggest NOT trying to add another, what, 65 characters? to the alphabaseset... No one could find that many characters on their keyboard... I think you should instead try to give heros 2-character slots to store their level. This would allow levels up to - off the top of my head - 1200 or so. |
| 12-06-2003, 06:08 AM | #3 |
Good idea, but the problem is i don't know how to add a bit more to the code and encode that with out messing up the code, hope orb sees this and helps me :) |
| 12-06-2003, 02:39 PM | #4 |
| 12-06-2003, 07:13 PM | #5 |
I seriously need some proffesional help with this one, ive been trying to get a stable save/laod code for months. I make my own, but they just dont have the same level of security as orbs save code demo. |
| 12-06-2003, 11:13 PM | #6 |
bump |
| 12-07-2003, 02:14 AM | #7 | |
Quote:
I can get alot: Code:
ABCDEFGHIJKLMNOPQRSTUVWXYZ`1234567890-=~!@#$%^&*()_+[]\{}|;':",./<>?Anyway, you could just use AA - ZZ for level instead of A-Z. It wouldnt even be hard. You'd just have to make the level use n to x + 1 instead of n to x, then change everything after that so its 1 more then it already is. |
| 12-07-2003, 03:10 AM | #8 |
thx, but i might have to change the way it decodes and loads it too. :( It would be really helpful if Orb could explain..... |
| 12-07-2003, 05:04 AM | #9 |
OK Here's what the save code demo does. 1. It sets up the AlphaBase as you described. 2. In trigger "Save Dialog Button Pressed" it starts with empty string as a SaveCode. Then it steps through the various aspects of the character - 15 of them - and for each of them, encodes the information as an integer between 0 and 35 and appends a substring of the AlphaBase to the SaveCode. After it has the whole SaveCode, it scrambles each character. 3. In trigger "Load Character" it takes an entered code, strips it down to the base 15 characters and does exactly the opposite of the save trigger: unscrambles it, steps through each character, checks it against the AlphaBase until it matches a character, takes the index of that character as an integer, decodes the information and applies it to the Hero. So, all you have to do is, in the Save trigger and the Load trigger, add an extra step between SaveCode character 2 and SaveCode character 3, and change the indices of all the steps after that. I think. :bgrun: |
| 12-07-2003, 05:08 AM | #10 |
Good thinking. Ill try that. |
