RPG game (Questions)

Non-platform specific questions.

RPG game (Questions)

Postby micolord » Tue Nov 08, 2011 12:45 pm

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 :)
I suck so bad.
micolord
 
Posts: 21
Joined: Sun Nov 06, 2011 7:29 am
Location: Philippines
Score: 0 Give a positive score

Re: RPG game (Questions)

Postby Hblade » Tue Nov 08, 2011 2:53 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: RPG game (Questions)

Postby micolord » Wed Nov 09, 2011 5:08 am

Okay thanks :3
I suck so bad.
micolord
 
Posts: 21
Joined: Sun Nov 06, 2011 7:29 am
Location: Philippines
Score: 0 Give a positive score

Re: RPG game (Questions)

Postby Hblade » Wed Nov 09, 2011 2:02 pm

np :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: RPG game (Questions)

Postby RippeR7420 » Wed Nov 09, 2011 4:04 pm

+1 Hblade! :)
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: RPG game (Questions)

Postby Hblade » Wed Nov 09, 2011 4:04 pm

thanks :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest