| 05-30-2006, 04:55 PM | #1 |
This is possible for most RPGs, and games like Human vs Orc, could anyone give me any idea on how to do this code? |
| 05-30-2006, 05:03 PM | #2 |
How about you look around to find one someone made? its not that hard to find. We cant just "tell" you the triggers since they're rather big and rely on what you want saved. |
| 05-30-2006, 05:05 PM | #3 |
Thanks for your advice, because I've never tried to open any RPG before. As your professional comprehension skills has it, I didn't ask for triggers, I asked for a general idea on how to do this. |
| 05-30-2006, 05:29 PM | #4 |
Well in this case there is no such a thing as a general idea. But well you need to: - Select the data you wish to save (in case of a hero you'd need to be able to get and set things like unit type, level, experience, intelligence, strength, agility, his items and his skills. - Be able to convert that data into a string - Be able to convert a string into that data. We would call those operations encoding and decoding. Thing is that there are plenty of ways to encode the data. In mine I have an array that holds all the values and binary sizes of the values. Then I convert the values to a chain of binary data. Then I take groups of 6 / 5 or 4 (depending on some charmap) and convert each of the groups to a character depending on the charmap For example: 0000 A 0001 B 0010 C 0011 D ... Then I just show the character that represent the binary chain. And when I decode I take the string and convert it to binary ABCD would be 0000000100100011 then I convert the binary chain to values in the array- And done. Of course that there are much easier methods. But Since I don't know how to make them I can't mention how to do so |
| 05-30-2006, 05:38 PM | #5 | |
Quote:
When you say it like that, it actually makes sense, i never really knew how encryption methods worked before. Seems slightly complicated but i understand |
| 05-30-2006, 06:58 PM | #6 |
I was figuring something like this, was hoping there was an easier way though. |
| 05-30-2006, 08:41 PM | #8 |
It is much much easier to use an array set at init, and then loop throug them, rather than if/then/else, which is time consuming, and makes triggers very long. |
| 05-30-2006, 08:50 PM | #9 |
The problem with your method, wyrmlord, is that because it is so easy to make, it is also very easy to abuse. You can easily steal other players' heroes with that, or find out how to change the values yourself to make your hero ridicously overpowered. |
| 05-30-2006, 09:13 PM | #10 | |
Quote:
Therefore you need to add 2 or 3 security strings(letters). |
| 05-30-2006, 11:43 PM | #11 |
I know Blade, I was just trying to explain basicly how a save/load system works with a simple demonstration. I myself would not use something so simple in my maps, and would advise others not to either. ![]() |
