Page 1 of 1

RPG game (Questions)

PostPosted: Tue Nov 08, 2011 12:45 pm
by micolord
How can I create a saving system? You know like they can save it which they will pick a 5 slot where to save it.

I am having a hard time in this customization system with the character :S Anyone got some time to help me via Teamviewer? I would very much appreciate that :)

Re: RPG game (Questions)

PostPosted: Tue Nov 08, 2011 2:53 pm
by Hblade
micolord wrote:How can I create a saving system? You know like they can save it which they will pick a 5 slot where to save it.

I am having a hard time in this customization system with the character :S Anyone got some time to help me via Teamviewer? I would very much appreciate that :)



Wow thats a real tough one! :P That takes a mega-ton of work and I dunno if I can do that XD

I can teach you how to save, though.

First, create variables, name them:
  • PX
  • PY
  • HP
  • PHP
  • MP
  • PMP
  • ATK
  • SPD
  • MAG
  • LUCK
  • DEF
  • patk
  • pspd
  • pmag
  • pluck
  • pdef

Save Make sure they are all in a save group called "data", but not "HP and MP" make them not have a save group.

Now, when ever you want to save the game, you'd do this:
Code: Select all
saveVars("saveGame.sav", "data");
PX=x;PY=y;
PHP=HP; PMP=MP;
LUCK=pluck; MAG=pmag;
DEF=pdef; SPD=pspd;
ATK=patk;


Now to load the game:
Code: Select all
loadVars("saveGame.sav", "data");
x=PX; y=PY;
HP=PHP; MP=PMP;
pdef=DEF;patk=ATK;
pmag=MAG;pluck=LUCK
pspd=SPD;


That should work :D

Re: RPG game (Questions)

PostPosted: Wed Nov 09, 2011 5:08 am
by micolord
Okay thanks :3

Re: RPG game (Questions)

PostPosted: Wed Nov 09, 2011 2:02 pm
by Hblade
np :D

Re: RPG game (Questions)

PostPosted: Wed Nov 09, 2011 4:04 pm
by RippeR7420
+1 Hblade! :)

Re: RPG game (Questions)

PostPosted: Wed Nov 09, 2011 4:04 pm
by Hblade
thanks :D