MOG Battle Result - Learned Skills Tweak

Discussion in 'RGSS3 Script Requests' started by Vis_Mage, Mar 21, 2019.

  1. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    364
    Likes Received:
    135
    Location:
    Ridge Island
    First Language:
    English
    Primarily Uses:
    RMVXA
    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!
     
    #1
  2. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,507
    Likes Received:
    321
    Location:
    Canada
    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.
    Fist 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
     
    #2
    Vis_Mage likes this.
  3. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    364
    Likes Received:
    135
    Location:
    Ridge Island
    First Language:
    English
    Primarily Uses:
    RMVXA
    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.
     
    #3
  4. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,507
    Likes Received:
    321
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    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: Mar 22, 2019
    #4
    Vis_Mage likes this.
  5. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    364
    Likes Received:
    135
    Location:
    Ridge Island
    First Language:
    English
    Primarily Uses:
    RMVXA
    Awesome, seems to be working great!

    Thank you very much! :kaothx:
     
    #5

Share This Page