Yanfly Adjust Limits not working?

● ARCHIVED · READ-ONLY
Started by SnapGuy1337 11 posts View original ↗
  1. According you Yanfly's Adjust Limits script...

    # -----------------------------------------------------------------------------# Actor Notetags - These notetags go in the actors notebox in the database.# -----------------------------------------------------------------------------# <initial level: x># Sets the initial level for the specific actor. Can go above level 99 as long# as the max level is higher than 99. Default initial level limit is 99.# # <max level: x># Sets the max level for the specific actor. Can go above level 99 as long as# the higher limit is defined in the module. Default max level is level 99.Which so I did, and I set them as

    <initial level: 9165>

    <max level: 10000>

    But it doesn't work, my character stays at level 1.

    What has gone wrong and what can I do?

    I changed the LEVEL_MAX value, though. From 99 to 999999

    Code:
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # - Parameter Settings -    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    # Adjust the limits for each of the various stats (for MaxHP, MaxMP, ATK,    # DEF, MAT, and more). Adjust them as you see fit.    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-    LEVEL_MAX = 999999     # Sets max level to x for those with 99 level limit.    MAXHP_MAX = 9999999999 # Sets MaxHP to something higher than 9999.    MAXMP_MAX = 9999999999 # Sets MaxMP to something higher than 9999.    PARAM_MAX = 99999      # Sets stat max for something higher than 999.    EQUIP_FONT = 16        # Changes the default equip window font size.
  2. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    Add a link to the script please, not just snippets (although they're helpful)


    Did you start a new game or continue a saved game?
  3. Okay, sorry for not posting it in the right topic. ^^;

    The link to the script:

    https://github.com/Archeia/YEARepo/blob/master/Core/Adjust_Limits.rb

    And I was pretty sure I started a new game, with the actors' level notetags in their noteboxes.

    EDIT: I've seen some websites where they changed the @ini_level into @initial_level, that didn't work for me though. =/
  4. The @initial_level should work.

    In the Adjust Limit's Script:

    change line 261 from:

    @ini_level = [@ini_level, @max_level].min

    to:

    @initial_level = [@initial_level, @max_level].min

    and line 263 from:

    @ini_level = [[$1.to_i, 1].max, @max_level].min

    to:

    @initial_level = [[$1.to_i, 1].max, @max_level].min

    Hope this solves your problem.
  5. Nope, I changed this already before you even suggested it.
     

    #==============================================================================# ■ RPG::Actor#==============================================================================class RPG::Actor < RPG::BaseItem #-------------------------------------------------------------------------- # common cache: load_notetags_al #-------------------------------------------------------------------------- def load_notetags_al @max_level = YEA::LIMIT::LEVEL_MAX if @max_level == 99 #--- self.note.split(/[\r\n]+/).each { |line| case line #--- when YEA::REGEXP::ACTOR::MAX_LEVEL @max_level = [[$1.to_i, 1].max, YEA::LIMIT::LEVEL_MAX].min @initial_level = [@initial_level, @max_level].min when YEA::REGEXP::ACTOR::INITIAL_LEVEL @initial_level = [[$1.to_i, 1].max, @max_level].min #--- end } # self.note.split #--- end end # RPG::ActorOddly, it wasn't line 261 and 263, it's 293 and 296.
  6. Make sure to save the project too before testing...
  7. Another thing you could try is getting the script from Yanfly's blog (http://yanflychannel.wordpress.com/rmvxa/core-scripts/adjust-limits/) again seeing as you have about 30 extra lines in your script (not sure if you added something or extra comments). Put script into a new project make the changes I suggested above (remember to save) and see if it works there. If it does then put the script into the project you are working on save it and see if it works again. If so then it means something is wrong with the script you currently have, if not then it could be one of your other scripts.
  8. I made sure I saved, the script still doesn't work.

    Re-downloading the script doesn't work either, the extra 30 lines are there by default. =/

    Perhaps it is another script screwing around with this script. o_O
  9. One more question are you changing the comments in the script to this:  <Wrong way (comments start with a # symbol)

    <initial level: 9165>
    <max level: 10000>

    Or are you putting the above into the actor's note box in the database (square box under features)? <Right way

    The script is working perfectly for me (extra lines seem to be just white space and disappears for me when I get it).

    Anyway hope this helps.
  10. oh yeah, that's a possibility...
  11. Ah, that works! Thanks a lot!
    (apologies for the very late reply)