Enemies only give regular gold amount at all levels.

Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
435
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,919
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,574
Reaction score
542
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,444
Reaction score
14,176
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
435
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,919
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,444
Reaction score
14,176
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
435
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,444
Reaction score
14,176
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
435
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,574
Reaction score
542
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,633
Reaction score
4,623
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

Where do i have to play Heisei Pistol Show the same creator that made Re: Kinder Parun
I really get the feeling I should be doing regular YouTube videos whenever I make something cool in my game, instead of waiting for massive changes. But not going to lie... I always feel like it's never quite enough to merit an update, until it's a drastic change. :kaoswt:
Going to submit to this game jam...struggling with the time crunch...
Have to keep compromising...
Just released a new OST for my game and a new place to purchase it!

Ah, things to do when you finish a game.
Ami
Me: It's dark cloudy! I hope it's Rain…
(2-3 Hours Later,Changed To Sunny)
Me: :kaolivid:

Forum statistics

Threads
104,538
Messages
1,007,014
Members
136,033
Latest member
carrydeos50
Top