Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
507
Reaction score
13
First Language
english
Primarily Uses
RMVXA
Script: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/enemy-levels/
I am using yanfly enemy levels and am noticing a bit of an issue. When I do the math for one of my bosses, the gold and exp don't show up what they are supposed to.
1620523522901.png
When I do a battle test with him at level 25 the amount of gold I get is supposed to look like this:
2,000 x (1.00+(25) x 0.15) + (10 x (25-1))
Which is supposed to equal: 9,740
But when I go into a battle test the amount comes out as this:
1620523896971.png
1620523931489.png

Any help is appreciated.
 

Attachments

  • Scripts.zip
    539.3 KB · Views: 1

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,528
Reaction score
2,641
First Language
English
Primarily Uses
RMMZ
The reason for this is that the overwrites for exp and gold got the param IDs the wrong way round, so exp uses the rate for gold and vice versa.

Change the 8s in lines 493 and 494 to 9s, and the 9s in lines 505 and 506 to 8s, and it should work properly.

You could also fix it by switching :gold and :exp around in the DEFAULT_GROWTH hashmap starting on line 140 to make :exp ID 8 and :gold ID 9 if that's easier.
 
Last edited:

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
507
Reaction score
13
First Language
english
Primarily Uses
RMVXA
The reason for this is that the overwrites for exp and gold got the param IDs the wrong way round, so exp uses the rate for gold and vice versa.

Change the 8s in lines 493 and 494 to 9s, and the 9s in lines 505 and 506 to 8s, and it should work properly.

You could also fix it by switching :gold and :exp around in the DEFAULT_GROWTH hashmap starting on line 140 to make :exp ID 8 and :gold ID 9 if that's easier.
Thanks the 8 and 9 on those lines change worked.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,552
Reaction score
14,856
First Language
English
Primarily Uses
RMMV

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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

MV/MZ dev: "I'll build an APK to run on Android mobile devices!"

Microsoft: "Here is the great news. Now you can play android apps on Windows 11!"
Work-in-progress dwarf character. Got him mostly there but he needs some earrings or hair jewellery.
TestChara-14.gif
I cant not for the life of me figure out where this bomb item comes from.
Ami
this is Remade of my MZ Character,after acquire the free RPG Maker MZ
This One Plugin Adds Subfolder Support for Every Other Plugin | RPG Maker News #80

Forum statistics

Threads
112,547
Messages
1,069,099
Members
146,238
Latest member
Mihoya88
Top