EXP and Gold doubling script

TwilightKnight1

Veteran
Veteran
Joined
Apr 6, 2014
Messages
31
Reaction score
2
First Language
English
Primarily Uses
Hello everyone :3 I am looking for a script that can give two stats a new function, in addition to their current ones.

so, the stats I want to have these new features are AGI and LUK

What I want this script to do is pool the AGI and LUK stats of everyone in battle, and use these for a customizable formula in the script to double EXP and Gold respectively.

ex of what I mean:
1) if there's a party of 1 random weirdo, and his LUK is 40, it would give a 4% chance of doubling gold if the formula was LUK/10

2) if there's a party of 10 random weirdos and only 3 are in battle, then it would take the LUK of those 3 weirdos and they have a LUK total of 350, the chance of doubling gold would be 3.5$ if the formula was LUK/100

I also want the script to tell the player if the gold or EXP or both doubled.

I want AGI to do the same, but replace LUK with AGI and Gold with EXP xD

does anyone know of a script that can do this? or make one for me? pleeeease? </3
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
You don't need a script. You can add the LUK or AGI of all party members in the damage formula.


Something like this (syntax is probably wrong, as I don't have Ace with me to check - and I've never used inject before):

Code:
$game_party.members.inject(0) {|luk, mbr| luk + mbr.luk} / 100
 

TwilightKnight1

Veteran
Veteran
Joined
Apr 6, 2014
Messages
31
Reaction score
2
First Language
English
Primarily Uses
You don't need a script. You can add the LUK or AGI of all party members in the damage formula.

Something like this (syntax is probably wrong, as I don't have Ace with me to check - and I've never used inject before):

$game_party.members.inject(0) {|luk, mbr| luk + mbr.luk} / 100
Damage Formula? ._. wat? I'm confused sir
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
If it's simply by doubling gold/exp income. You can set that during actor building under the special ability tab.

But if you want status params to trigger that at the end of each battle, it will either require an edit in either the battle_scene class or battlemanager module.

Or.. there's still a chance of doing it with eventing only, calculate your "formula"(conditional check) to check your %. Then simply add a state with special ability of x2 exp or x2 gold to the lead actor. As far as states goes, you get your message displayed in battle log every turn/when applied. So add those states right before battle ends and you should be able to get it to work the way you want.
 

TwilightKnight1

Veteran
Veteran
Joined
Apr 6, 2014
Messages
31
Reaction score
2
First Language
English
Primarily Uses
If it's simply by doubling gold/exp income. You can set that during actor building under the special ability tab.

But if you want status params to trigger that at the end of each battle, it will either require an edit in either the battle_scene class or battlemanager module.

Or.. there's still a chance of doing it with eventing only, calculate your "formula"(conditional check) to check your %. Then simply add a state with special ability of x2 exp or x2 gold to the lead actor. As far as states goes, you get your message displayed in battle log every turn/when applied. So add those states right before battle ends and you should be able to get it to work the way you want.
my intent with this was for this effect to stack with the double gold party ability. and I'm not a scripter. I can't personally make any edits or scripts x-x
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
It can still be done with eventing alone like i said, but if you insist on doing it with script, i've put together one for you

To use, simply add a notetag to the actor's note box you wish to gain extra gold based on their sum up luck/dex

[1] Add <EXTRAEXP> or <extra exp> in the actor's note tag for extra exp based on luck
[2] Add <EXTRAGOLD> or <extra gold> in the actor's note tag for extra gold based on dex

Since you request a /100 formula the max percent per actor can get is 9.9% so you might take a while to see the result in the battle if you are testing with one actor.

Put this script below Material and ABOVE ALL OTHER CUSTOM SCRIPTS you have. If you have other scripts that overwrite battlemanager's way of displaying exp/gold, there's a high chance of conflict. So move this script below that script when you can't get it to work.

Script: http://forums.rpgmakerweb.com/index.php?/topic/45127-double-goldexp-based-on-lukdex/
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top