Enemies only give regular gold amount at all levels.

Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
438
Reaction score
9
First Language
english
Primarily Uses
RMVXA
I am using yanfly enemy level script. https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/enemy-levels/
I am having a problem because of the gold that the enemy drops. For this example I will use my slimes.
1600803317981.png
One slime drops 12 gold at level 1, but when it is at level 5 it is still only dropping 12 gold and not more.
How would I go at fixing this? Thanks for the help. Please note that I tried changing the values in the script and it still didn't change anything.
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,920
Reaction score
529
First Language
English
Primarily Uses
N/A
I don't see anything in the notetags that suggest it should drop extra gold. Are you sure you set up your note tags right?

Edit: where it says in the script 8 => [ :gold, 0.15, 10], try changing 10 to 1 and see what happens
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,579
Reaction score
545
First Language
English
Primarily Uses
RMVXA
What notetags are you using for the slime? It should increase based on the DEFAULT GROWTH paramaters.
Or you can specify with notetags.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,455
Reaction score
14,185
First Language
English
Primarily Uses
RMVXA
You should have a line in the script setup that looks like this:

8 => [ :gold, 0.15, 10],

What did you set those numbers to?
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
438
Reaction score
9
First Language
english
Primarily Uses
RMVXA
You should have a line in the script setup that looks like this:

8 => [ :gold, 0.15, 10],

What did you set those numbers to?
The only numbers I changed was for the exp.
1600811294035.png
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,920
Reaction score
529
First Language
English
Primarily Uses
N/A
Like i said. change that 10 to a 1 on the gold line
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,455
Reaction score
14,185
First Language
English
Primarily Uses
RMVXA
Yeah that will not be the issue, as the amount there is how much it is supposed to add per level if you set up nothing else.

I think the issue is a script compatibility myself. Something else has overwritten the def gold function so this one is not even running at all. That's my theory at least. Though to test it, do this:

Go into the script to the lines:

Code:
 alias game_enemy_gold_elv gold
  def gold
    base = game_enemy_gold_elv
    per = enemy.level_growth[9][1]
    set = enemy.level_growth[9][2]
    total = eval(YEA::ENEMY_LEVEL::STAT_FORMULA)
    return total.to_i
  end
Those show as lines 502 - 509 on the original script.

Between the line that says total and the line that says return add this:

msgbox_p("Hello!")

If it is even running this code you will get an annoying pop-up message after you win a fight that says hello. If you don't even get that, that means the code is not running at all, and something has overwritten it.
[TABLE]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[/TABLE]
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
438
Reaction score
9
First Language
english
Primarily Uses
RMVXA
Yeah that will not be the issue, as the amount there is how much it is supposed to add per level if you set up nothing else.

I think the issue is a script compatibility myself. Something else has overwritten the def gold function so this one is not even running at all. That's my theory at least. Though to test it, do this:

Go into the script to the lines:

Code:
 alias game_enemy_gold_elv gold
  def gold
    base = game_enemy_gold_elv
    per = enemy.level_growth[9][1]
    set = enemy.level_growth[9][2]
    total = eval(YEA::ENEMY_LEVEL::STAT_FORMULA)
    return total.to_i
  end
Those show as lines 502 - 509 on the original script.

Between the line that says total and the line that says return add this:

msgbox_p("Hello!")

If it is even running this code you will get an annoying pop-up message after you win a fight that says hello. If you don't even get that, that means the code is not running at all, and something has overwritten it.
[TABLE]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[/TABLE]
Ok, so I tried the code and nothing came up.
Here is my script list:
 

Attachments

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,455
Reaction score
14,185
First Language
English
Primarily Uses
RMVXA
You posted your entire scripts rvdata, which means someone would have to install it in a project to use that. Any way you can do screenshots of the scripts instead?

Also be sure to delete the msgbox_p code too now unless you want to get annoyed once it starts working.
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
438
Reaction score
9
First Language
english
Primarily Uses
RMVXA
You posted your entire scripts rvdata, which means someone would have to install it in a project to use that. Any way you can do screenshots of the scripts instead?

Also be sure to delete the msgbox_p code too now unless you want to get annoyed once it starts working.
I am uploading my game folder right now, so that way people don't have to put the scripts in their own stuff. I will have it up asap.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,579
Reaction score
545
First Language
English
Primarily Uses
RMVXA
I think the issue is a script compatibility
You hit the nail on the head.
Simply putting his scripts into a test project and searching for def gold shows that Dr. Todd difficulty script is setting gold not aliasing it.

@slickdeath97 move the enemy levels - Yanfly to below Difficulty settings.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,648
Reaction score
4,630
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.

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

Latest Threads

Latest Posts

Latest Profile Posts

Dev stream today, come on by and ask questions about rpg maker!
Fun fact: If your story introduces a variety of different races, the "human race" will automatically become the most corrupt race in general.
Finally finished my late start entry for the jam. Now. I. Sleep.
Just made 3 easy, simple and small MZ plugins today(12 hours straight), and I never thought I could ever do this.
Now I feel myself being very productive, even though I know I'm just utterly flattering myself lol
Mind: "I have cool ideas! Let's make it real!

Body: "You wanna make sumthin? I'm in."

Eyes: "Go to sleep, go to sleep."

*Sleep*

Forum statistics

Threads
104,646
Messages
1,007,812
Members
136,132
Latest member
A87
Top