The title pretty much sum it up.
I want to give my actor a companion pet, BUT, in my game the actor doesn't get exp from monsters,
He levels with the story.
And i want the pet to level with exp Only so the player could power her up at anytime.
My thought was to make events enemies with exp gaining when win, But it really bothers me that i can't use triggered encounter enemies.
Any suggestions? Ideas? or a simple way to accomplish what i want
If you would like, you could use my system of levelling up - though if you are just levelling your main character with the Increase level command in the event scripting, you only need to use the pet variables.
First set up two variables. the first one, call PCEXP, the second, PETEXP. set these to 0.
next, create two more variables, PCLEVEL, and PETLEVEL. Set these to whatever amount you want.
I personally like to use an npc event for the next part, but im sure you could set it up to run after every battle as well.
Make the event so that if PCEXP is equal to PCLEVEL, the character gains a level. same with the pet.
At this point IF a level has been gained, set PCEXP/PETEXP to 0 again, and add PCLEVEL/PETLEVEL to itself, so that the next level gained requires more experience.
Also set an event to occur after every encounter that increases the PCEXP/PETEXP variables by whatever amount you want the monsters to be worth. I believe this can be done through the eventing in the Troops tab.
Well, I hope that helps a little, it's just a method I really enjoy using in my game.
module BattleManager #-------------------------------------------------------------------------- # * EXP Acquisition and Level Up Display #-------------------------------------------------------------------------- def self.gain_exp $game_party.all_members.each do |actor| next unless actor.id == 1 # Use your pet's actor id here from the database actor.gain_exp($game_troop.exp_total) end wait_for_message endend
If your pet is the only actor that will ever get exp from battles, that def should work, can just paste it into the script editor below materials and above main. If you plan one haven't more earn exp at some point then you could change it to something like this:
actors_for_exp = [1, 4, 6] #that would be actor 1, 4, and 6 in the database
module BattleManager #-------------------------------------------------------------------------- # * EXP Acquisition and Level Up Display #-------------------------------------------------------------------------- def self.gain_exp actors_for_exp = [1, 4, 6] $game_party.all_members.each do |actor| next unless actors_for_exp.include?(actor.id) actor.gain_exp($game_troop.exp_total) end wait_for_message endend
You can still give exp through the event commands to whoever you want, this will only effect battle exp
Wow thanks you're a life saver, And i was just about to give up on it
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.