collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: + [ Recover HP/MP/States when Level Up ] +  (Gelesen 1388 mal)

woratana

  • Gast
+ [ Recover HP/MP/States when Level Up ] +
« am: Juni 11, 2008, 10:05:30 »
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

Spoiler for Hiden:
#===============================================================
# ? [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:
Zitat
- 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?

+ [ Recover HP/MP/States when Level Up ] +

Offline Ceta

  • Irgendwie da, irgendwie auch nicht
  • Eventmeister
  • ***
  • Beiträge: 365
  • ehemals Elements
+ [ Recover HP/MP/States when Level Up ] +
« Antwort #1 am: Juni 11, 2008, 12:05:03 »
Good work as usual woratana! ;)

I'll include this in my project. :)
Zomg ele.. xD
Spoiler for Hiden:
Elements [09|Jun 07:16 ]:   Dauernd hab ich diese "xD" oder so in den Charasets-Namen xD
Domin0e [09|Jun 07:16 ]:   Zomg ele.. xD
Fi [09|Jun 07:16 ]:   bedenklich
[spo

Re: + [ Recover HP/MP/States when Level Up ] +

StormBrinGER

  • Gast
Re: + [ Recover HP/MP/States when Level Up ] +
« Antwort #2 am: Juli 08, 2008, 12:03:03 »
mmmhhh....

I got a syntax error message  :-\

Re: + [ Recover HP/MP/States when Level Up ] +

Offline Silvanus

  • Der längste regestrierte User hier xD
  • VX-Großmeister
  • *****
  • Beiträge: 984
  • Makerer im Ruhezustand
Re: + [ Recover HP/MP/States when Level Up ] +
« Antwort #3 am: Juli 08, 2008, 12:16:07 »
Wie er schon sagte

Zitat
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?

 


 Bild des Monats

rooftop party

Views: 3581
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal