Author Topic: Recover HP/MP/States when Level Up  (Read 2173 times)

0 Members and 1 Guest are viewing this topic.
worale
*
Rep: +9/-0
Offline Offline
Level 63 (36%)
Recover HP/MP/States when Level Up
« on: June 11, 2008, 03:11:45 AM »

  • Recover HP/MP/States when Level Up
    Version 1.0
    by Woratana
    Release Date: 10/06/2008


    Introduction
    Here is a little snippet I scripted after lost one VX game. :P
    I just think that it should be easier (for player) if actors' status are recover when they level up. :D

    Enjoy~  :lol:


    Screenshots
    -No screenshot-


    Script
    Place it above main

    Code: [Select]
    #===============================================================
    # ? [VX] ? Recover HP/MP/States when Level Up ? ?
    #--------------------------------------------------------------
    # ? by Woratana [woratana@hotmail.com]
    # ? Thaiware RPG Maker Community
    # ? Released on: 10/06/2008
    # ? Version: 1.0
    #--------------------------------------------------------------
    # ? How to use:
    # Put this script above main, you can setup script below
    #=================================================================

    class Game_Actor < Game_Battler
     
      #==================================
      # * SCRIPT SETUP PART
      #----------------------------------
      RECOVER_HP = true # Recover HP when level up? (true/false)
      RECOVER_MP = true # Recover MP when level up?
      REMOVE_STATES = true # Cure all states when level up?
      #==================================
     
      alias wora_fullhpmp_gamact_lvup level_up
      def level_up
        wora_fullhpmp_gamact_lvup
        @hp = maxhp if RECOVER_HP
        @mp = maxmp if RECOVER_MP
        if REMOVE_STATES
          @states.clone.each {|i| remove_state(i) }
        end
      end
    end


    Instruction
    Place the script above main.
    You can setup script in setup part if you don't want to recover all HP/MP/states when level up.


    Author's Notes
    Free for use in your work if credit is included.


    Bug Report?
    Please give me these informations:
    Quote
    - What is it says in error window?
    - When is it get error? (Right after run game, when you choose something, etc.)
    - Do you have any other scripts running in your game that may crash with this script?
    Shiriko1989 Female
    ***
    Rep: +3/-0
    Offline Offline
    Level 60 (98%)
    ... X0X...
    Re: Recover HP/MP/States when Level Up
    « Reply #1 on: June 11, 2008, 08:16:18 AM »

  • COOL!!! Is just What I want!!! Err... How to setup...?
    worale
    *
    Rep: +9/-0
    Offline Offline
    Level 63 (36%)
    Re: Recover HP/MP/States when Level Up
    « Reply #2 on: June 11, 2008, 10:32:08 AM »

  • Code: [Select]
      RECOVER_HP = true # Recover HP when level up? (true/false)
      RECOVER_MP = true # Recover MP when level up?
      REMOVE_STATES = true # Cure all states when level up?
    Change true to false if you don't want to recover some of these. :D
    modern algebra Male
    *
    Rep: +336/-113
    Offline Offline
    Level 79 (55%)
    Re: Recover HP/MP/States when Level Up
    « Reply #3 on: June 11, 2008, 12:46:54 PM »

  • This should be useful for a lot of people. Nice job worale.


    ahref Male
    *
    Resident Cloud
    Rep: +54/-54
    Offline Offline
    Level 72 (57%)
    BOOP
    Re: Recover HP/MP/States when Level Up
    « Reply #4 on: June 12, 2008, 01:24:29 PM »

  • i love how your scripts are vital features that a maker might want yet there so tiny. Kinda makes me wonder why enterbrain didnt write them :D.

    good job
    AfterDark
    *
    Rep: +0/-0
    Offline Offline
    Level 60 (37%)
    Re: Recover HP/MP/States when Level Up
    « Reply #5 on: July 08, 2008, 05:24:00 AM »

  • Thanks alot this is useful for me, and i bet it is for alot of other people
    narcodis Male
    **
    Rep: +1/-2
    Offline Offline
    Level 60 (24%)
    Re: Recover HP/MP/States when Level Up
    « Reply #6 on: July 29, 2008, 02:21:12 AM »

  • Righteous Script!! so simple, but so great.
    yes!
     

    hi

    RMRK.net Theme Super Ultra Mega Beta

    Follow RMRK on Twitter Ask RMRK Questions on Formspring Get RMRK Updates via Windows Live

    Page created in 0.129 seconds with 19 queries.