MOG Battle Result - Learned Skills Tweak

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

Thread Status:
Not open for further replies.
  1. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    403
    Likes Received:
    142
    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,780
    Likes Received:
    387
    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.
    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: Dec 13, 2019 at 6:07 AM
    #2
    Vis_Mage likes this.
  3. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    403
    Likes Received:
    142
    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,780
    Likes Received:
    387
    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:
    403
    Likes Received:
    142
    Location:
    Ridge Island
    First Language:
    English
    Primarily Uses:
    RMVXA
    Awesome, seems to be working great!

    Thank you very much! :kaothx:
     
    #5
  6. Rpg Gear

    Rpg Gear Rpg Gear Member

    Messages:
    6
    Likes Received:
    0
    Location:
    Svizzera
    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?
     
    #6
  7. Kes

    Kes Global Moderators Global Mod

    Messages:
    21,118
    Likes Received:
    10,722
    First Language:
    English
    Primarily Uses:
    RMVXA
    @Rpg Gear

    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.

     
    #7
    Rpg Gear likes this.
Thread Status:
Not open for further replies.

Share This Page