Main Menu
  • Welcome to The RPG Maker Resource Kit.

In desperate need of an EXP script!

Started by Hatsodoom, June 29, 2009, 04:40:25 AM

0 Members and 1 Guest are viewing this topic.

Hatsodoom

Ok, I have my ToS style party changer and it works fine. The only problem now is, having the passive party members, (The ones not in battle.) getting the same EXP as the active members. Like say the total EXP for everyone is zero. (This is an example.) Then 4 out of the 6 party members gain 50 EXP from a battle. How do I make it so that the other 2 passive members get the same 50 EXP? This is the only problem thats preventing me from going foward. I need to know this now because I will soon add a 5th member. Please I beg of you guys, help me out here. It's going so well. I already have a full hour of game play so far. I can't let it end here.

shaz

wow - this one has been unanswered for a while...

Find Scene_Battle 2 and the function start_phase5, which is where EXP is given out.

Under # EXP gained, there's a loop for i in 0...$game_party.actors.size that gives EXP to your battlers.  We left this as-is, because we have an animation when the characters gain levels, and the new stats also appear on the battle screen.

Underneath that, we added a new bit of code:

for i in 0..7 # or the number of actors you have in total
  actor = $game_actors[i]
  if actor != nil && !actor.cant_get_exp? &&
    # add another condition here to check if the actor is in the party     &&
    # add another condition here to check if the actor is INactive (not a battler)
    actor.exp += exp
  end
end
Always remember you're unique.
Just like everybody else.