Exp Gain by Level

Discussion in 'RGSSx Script Support' started by IneptAttoney_08, May 22, 2019.

  1. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    60
    Likes Received:
    9
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    I use Tsukihime's script, which is Level Difference EXP, but this script does not work for the Action Battle System. maybe it has something to do with Battle Manager. I don't know the truth, but maybe that's where the problem is. can someone help me to be able to access this script in the Action Battle System (Falcao Pearl ABS Liquid V.3)?
     
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    11,755
    Likes Received:
    11,785
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    Moved to Script Support


    Do you have all the required scripts installed? The EXP difference script requires you have Core - Enemy Levels and Actor Victory EXP installed. Also since ABS overwrite much of the default engine have you put all of these scripts below the ABS?
     
    #2
  3. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    60
    Likes Received:
    9
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    Sure,.. I was download and install all of requirments script and put the Level Difference EXP Script below the ABS Script,..
     
    #3
  4. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    11,755
    Likes Received:
    11,785
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    My guess is then the ABS has overwritten completely how EXP is computed, so the Level Difference script is no longer calling functions that exist anymore, hence why it is not working. And to clarify, what does happen when the scripts are installed? Does it run, but you get the same as if you didn't install them?
     
    #4
    IneptAttoney_08 likes this.
  5. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    60
    Likes Received:
    9
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    I installed and input the formula into the enemy Note Tag. but the EXP I get is just like basic EXP on the database

    this is the formula:
    <diff level exp>
    if diff > 5
    exp - (diff * 5)
    else
    exp * 10
    </ diff level exp>
     
    #5
  6. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    11,755
    Likes Received:
    11,785
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    Notetags must be exactly as displayed (same order and same capitalization), they have level diff in the example, you got diff level. Try changing to that and see what happens.
     
    #6
  7. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    60
    Likes Received:
    9
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    Now the script is eror like this
    [​IMG]
     

    Attached Files:

    #7
  8. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,581
    Likes Received:
    344
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    I got an error with your code. Using Himes code and changing it to look like yours makes it work
    Code:
    <enemy level: 8>
    <level diff exp>
       if diff > 5
         exp - (diff * 5)
       else
         exp * 10
       end
    </level diff exp>
     
    #8
  9. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    60
    Likes Received:
    9
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    i was try this code,
    and i wasn't eror anymore, but the experience I get is just like base EXP, and when I try Battle test on the same monster, the result is I get the same EXP as the Formula, maybe this script doesn't work on ABS
     
    #9
  10. vFoggy

    vFoggy Veteran Veteran

    Messages:
    54
    Likes Received:
    17
    Code:
    # Compatibility script for Level Difference Exp by Hime and Falcao Pearl ABS.
    # Makes the ABS script use the exp calculated from Level Difference Exp script.
    # ---------------------
    # By vFoggy
    
    class Game_Event < Game_Character
      def kill_enemy
        @secollapse = nil
        @killed = true
        @priority_type = 0 if @deadposee
        gain_exp
        gain_gold
       
        $game_player.followers.each do |follower|
          next if follower.actor.nil?
          etext = 'Exp '  + follower.actor.gained_exp.to_s if @enemy.exp > 0
          follower.pop_damage("#{etext}") if etext
        end
       
        g_exp = $game_player.actor.gained_exp
        etext = 'Exp '  + g_exp.to_s if g_exp > 0
        gtext = 'Gold ' + @enemy.gold.to_s if @enemy.gold > 0
        $game_player.pop_damage("#{etext} #{gtext}") if etext || gtext
       
        make_drop_items
        run_assigned_commands
      end
     
     
      def gain_exp
        $game_party.all_members.each do |actor|
          actor.gained_exp = actor.exp_from_enemy(@enemy)
          actor.gain_exp(actor.gained_exp)
        end
      end
    end
    
    class Game_Actor < Game_Battler
      def gained_exp=(exp)
        @gained_exp = exp
      end
    end
    Insert it below both scripts. I made it so that the Exp messages pops over every member in the party (because they probably will not be at the same level, so they will all gain different exp points). If you want to display only over the player comment the lines below from the above script:
    Code:
        $game_player.followers.each do |follower|
          next if follower.actor.nil?
          etext = 'Exp '  + follower.actor.gained_exp.to_s if @enemy.exp > 0
          follower.pop_damage("#{etext}") if etext
        end
    
    Also, the Level Difference Exp requires the Core – Enemy Levels and Actor Victory Exp, that's why you are getting that error.
     
    #10
  11. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    60
    Likes Received:
    9
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    Very BIG thanks!
    Finally i can use this script. It's really work!
     
    Last edited: Jun 6, 2019
    #11

Share This Page