Enemies only give regular gold amount at all levels.

Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
441
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,923
Reaction score
533
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,658
Reaction score
563
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,522
Reaction score
14,253
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
441
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,923
Reaction score
533
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,522
Reaction score
14,253
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
441
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,522
Reaction score
14,253
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
441
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,658
Reaction score
563
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,713
Reaction score
4,672
First Language
English
Primarily Uses
RMMZ

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 Profile Posts

Haired slime? Trying some different styles of art. Maybe I can make some resources with this new kind of painting.......
i love my game very much
Uh, I'm probably overthinking this, but I think that some of my music sounds kinda...bad?
The melodies are just sort of awkward, and don't flow.
I'm really not sure what to do. Why am I even worrying about this? I don't even have a battle system yet!
And the Lord said, let there be lighting effects! And there were lighting effects! And it was good...ish? Might tweak this some more.
Today was a day of good things! Thank you fate! I pray to the darkness that those that read this will enjoy a good day as well! Power to the gam mak.

Forum statistics

Threads
105,723
Messages
1,015,909
Members
137,401
Latest member
Rubbun
Top