MOG Battle Result - Learned Skills Tweak

Status
Not open for further replies.

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Hello! :kaohi:

I was hoping someone could help me a small change to MOG's Battle Result script.

By defult, when you level up and learn skills, it will cycle through all the new skills you've just learned. The issue I'm running into through is that I actually give characters a bunch of skills upon level up, but only access to certain skills, based on their class.

What I'm hoping is to tweak the script to instead of going through all the unlocked skills, to instead just say "New Skills Learned" once (as opposed to giving the message for each individual skill).

I hope this makes sense. By all means, let me know if you have any questions.

Thank you!
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,661
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Should be either line 827 or 922 with 924 commented out.
Not sure which one will stop the skill message.
First change 922 to say "New Skills Learned"
and comment out 924.
If that doesn't work change line 827 to draw_text instead of calling the show_new_skill
 
Last edited:

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Thanks for the quick reply!

I tried out your suggestions. Changing lines 922 and 924 worked great for removing the skill name. The only thing now is that if I learn 10 skills at a level up, it gives me the message 10 times.

I tried the line 827 change, but got a crash.
Code:
MOG_Battle_Result:827:in `create_new_skill_window': undefined local variable or method `draw_text' for #<Battle_Result:0xaec539c>, NameError
Alternatively, if there was a way to have the script skip any skills that have a notetag in the class' level up moves slot, that would work great too.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,661
Reaction score
563
First Language
English
Primarily Uses
RMVXA
got a crash.
Yea the command draw_text was not the whole thing, just the beginning of it. I was leaving that for you to put in.
I'll look more into it.

*EDIT
So put the show_new_skill back at line 827

On line 761 you see this
Code:
      if @new_skills_index == @new_skills.size or
         @new_skills[@new_skills_index] == nil
         @new_skills = nil
      end
You can modify this or add on a new condition if you like.
Code:
      if @new_skills_index == @new_skills.size or
         @new_skills[@new_skills_index] == nil or 
         @new_skills_index >= 1
         @new_skills = nil
      end
or add on after that if statement
Code:
      if @new_skills_index >= 1 
         @new_skills = nil
      end
 
Last edited:

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Awesome, seems to be working great!

Thank you very much! :kaothx:
 

Rpg Gear

Rpg Gear
Member
Joined
Feb 6, 2016
Messages
13
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I also need help!

In the Victory Phase (When the Victory Image is showing) i just want a Fade in/ Fade out effect without the zooming effect. Can someone help me?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@Rpg Gear [mod]Please do not hijack someone else's thread with a question of your own, plus this is a Necropost and you already have a thread with this query. Please read the Forum Rules which you can find here.

As the OP's query was resolved, I am closing this.[/mod]
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

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:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,881
Messages
1,017,227
Members
137,607
Latest member
Maddo
Top