Help - Search - Members - Calendar
Full Version: Variable problems
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
manudude03
Hi, I downloaded RPG Maker XP earlier today and I've come into a slightly odd problem when creating 2 money based systems. Both systems have rather large events so I'll post the events in parts (start at first):

The first of these is levelling up party members by essentially buying the levels. I wanted to make it so you need (level^2)*100 gold. I managed to get this working for my first 2 characters, but when it comes to the other 2, it takes the gold but doesn't raise the level of that character,

http://i293.photobucket.com/albums/mm49/ma...de02/level1.png
http://i293.photobucket.com/albums/mm49/ma...de02/level2.png
http://i293.photobucket.com/albums/mm49/ma...de02/level3.png

The other system is a hospital, similar to that of the Disgaea games. The formula I'm wanting to use is (MaxHP-CurrentHP)/3 + (MaxSP-CurrentSP)*2. To test this, I made a trap in the map to take off 60 HP and 10 SP (ie. will cost 40 gold to heal 1 character). Again, it works for the first 2 characters. But when it comes to the other 2, it says I need 0 gold, and then doesn't even heal them.

http://i293.photobucket.com/albums/mm49/ma...2/hospital1.png
http://i293.photobucket.com/albums/mm49/ma...2/hospital2.png
http://i293.photobucket.com/albums/mm49/ma...2/hospital3.png
http://i293.photobucket.com/albums/mm49/ma...2/hospital4.png

A couple of notes when checking those events:
Actor 1/2/3/4 is Aluxes, Basil, Gloria and Hilda respectively.
Variable [0005] is set to my current amount of gold. Variable [0001]-[0004] is for calculating the cost for levelling each character.
Variable [0006]/[0007] is for recovery cost for Aluxes, similarly 0008/0009 for Basil etc.

I am tempted to simply drop the latter 2 characters seeing as these events are working properly.... I would really prefer to have 4 characters though.

Link to test demo: http://www.mediafire.com/?9qwjrat6vf9v1tl
Knot
Are you sure there's nothing else interfering with the events? You might have to upload a demo if you want someone to really solve the problem, it seems pretty strange.
manudude03
QUOTE (Knot @ Sep 6 2011, 09:01 AM) *
Are you sure there's nothing else interfering with the events? You might have to upload a demo if you want someone to really solve the problem, it seems pretty strange.


I've uploaded a very small demo. Edited OP (I know there's a mistake when naming 4th party member, wanted to get the demo up ASAP, silly mistake smile.gif

edit: name change fixed, just need to sort out levels and hospital smile.gif

Reedit: I think I just found the problem!. Forgot to set my initial party to members 1-4 (instead of the default 1,2,7,8) oops smile.gif latest test was a success anyway.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.