| |
UltimaForum
|
 |
Wsparcie [VX] - Healowanie po zdobytym levelu.
Floor - Sro 22 Cze, 2011 13:01 Temat postu: Healowanie po zdobytym levelu. Witam! Czy istnieje taki skrypt, który po awansie na następny poziom odnawia hp? Jeżeli istniej to proszę o podanie go. Dam pomógł/pomogła.
Rubicante - Sro 22 Cze, 2011 13:15
Dziwne, nie moge znalesc a byl na tej stronce
Ale mam w swojej grze, zaraz ci wkleje.
| Kod: | #===============================================================
# ● [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 |
Robisz nowy skrypt nad main o byle jakiej nazwie i wklejasz to
Floor - Sro 22 Cze, 2011 13:23
| Cytat: | Robisz nowy skrypt nad main o byle jakiej nazwie i wklejasz to |
To akurat wiem! Ale dzięki! Masz pomógł ;)
|
|