Bonus Percent EXP

JellyJelly

Villager
Member
Joined
May 5, 2014
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Bonus Percent EXP v1.0

By Jelly

 

Introduction

I've been playing a lot of FF14, in it for various reasons you gain EXP that is scaled based on a percent.  I decided to make a simple script that allows you a similar effect.

 

Features

- Scales EXP gained via a settable percent (value stored in a variable that you can set).

- Effect is tied to a switch for convenience.

- Allows for a reduction in EXP.

 

Screenshots

None needed

 

How to Use

The usual paste below Materials and above Main.  Make sure to set proper variables and switches in the configuration module.

 

Demo

None needed.

 

Script

http://pastebin.com/cujBL27i

 

FAQ

None yet.

 

Credit and Thanks

- Only me, JellyJelly, so far.

 

Author's Notes

I haven't written a ton in RGSS3, if I'm doing something stupid please, please let me know   ;)
 
Last edited by a moderator:

JoePro

None Newb
Veteran
Joined
May 29, 2014
Messages
78
Reaction score
17
First Language
English
Primarily Uses
I am not sure if your actual portion of the script actually works, as I was so thrown off by the programming errors. This script is all types of wrong. Your aliasing method is inside the method and is not even called during the method. I think you might be new to ruby as well as rgss3. With that said it was a good attempt and far more useful the my first scripts. However there is already a exp % bonus available to the developer via rpgm as far as I know. You can assign it to almost anything I believe. The only difference i could see would be the switch and the variable.

To correct the script however, you should place this line

alias jelly_change_exp change_exp

Above this line

def change_exp(exp, show)

You would the call it with this

jelly_change_exp(bonus, show)

I don't really see a point though as you are altering it not aliasing it.

This should be your method

def change_exp(exp, show)

if $game_switches[JELLY::BONUS_SWITCH] == true

percent = $game_variables[JELLY::pERCENT_VARIABLE].to_f/100

bonus = exp * percent

end

bonus = 0 unless bonus

jelly_change_exp(bonus + exp, show)

end

As far as the battle message not being correct. That is because you are adding the bonus directly to the exp upon changing it. To fix that you could scrap this and alter the enemies exp directly to include the bonus. Alternatively, you could also find the victory sequence portion of the battle system and correct it there as well. I would then suggest to keep your method you have with the corrections above.

Sorry for the formatting as I am writing this from my phone.
 
Last edited by a moderator:

JellyJelly

Villager
Member
Joined
May 5, 2014
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Thanks for the info.  As noted above I am quite new with RGSS3 so any tips/redirection are most appreciated.  I seem to have misunderstood the explanation of aliasing in the video I watched.  I have removed that aspect for now.

However, I am unable to get your code to work when I go about implementing it.  Mainly when I put the alias you have provided where you have said it throws a undefined method for change_exp.  Putting it under as I have had before allows things to run fine but as you said that is incorrect so I am unsure of how to further that.

As to the battle message issue, I selected change_exp because I wanted this effect to apply to gaining exp via events as well.  Perhaps what you were getting at is adding a bit to handle the post battle stuff which is certainly a possibility.

In FF14, the bonus applies parallel to any other equipment exp bonuses which serves my purpose quite well, with the added nicety of being able to toggle it, as you have noted.

Either way, ty for your info and help, it is much appreciated  :)

Formatting is fine btw  ;)
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,037
Messages
1,018,464
Members
137,821
Latest member
Capterson
Top