Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Save/Load System with Matrix1Util Commands

Author
Message
Seppuku Arts
Moderator
19
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 9th Aug 2012 14:41
To use this code, you'll need this very awesome plugin.
Matrix1Util

The idea of the below code would be if the user wanted to make use of some kind of scripting. So you might store a number of optional character classes you read from the main program. However, the code can be used for any kind of 'save/load' operation. It's pretty simple.




As it's so simple, here's another piece of code. This will allow you to parse a string and pick out a specific character. Or in this case, use it 2 acquire 2 parts of a command, which you might use in a Text Adventure or even a Monkey Island like game.

This is just one way you might apply the above



Of course, this will only handle strings. What you could do, if you wanted to go for the scripting route and use number, is have a second variable to read. So you might have:
command = datafile string$(1)
commandValue = datafile float(1)



Login to post a reply

Server time is: 2024-04-25 18:43:38
Your offset time is: 2024-04-25 18:43:38