Theo - Wounded State
Versi: 1.0
Tipe: Gameplay
PengenalanSecara logika, kalo karakter jumlah HPnya makin sedikit, harusnya performanya juga berkurang. Misalnya, ATK berkurang berapa persen gitu. Well, tentukan sendiri
Fitur
- Add state jika HP sudah sekian persen (tentukan di konfigurasi)
- Plug and play
ScreenshotsSee by yourself in demo
DemoAmbil disini => https://dl.dropbox.com/u/41797508/VXA/Wounded%20state.exe
ScriptsAmbil disini => http://pastebin.com/raw.php?i=JZSNL2wW
or
- Code:
-
# =============================================================================
# ♫ ~ Wounded state by TheoAllen ~ ♫
# Version : 1.0
# Contact : www.rpgmakerid.com
# =============================================================================
# Requires : N/A
# Rewrites method : N/A
# Alliases method : Game_Battlerbase - refresh
# =============================================================================
# ♫ UPDATES :
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2013.02.22 - Started and finished script
#
# =============================================================================
# ♫ DESCRIPTION :
# This script allow you to automatically add state if the characters or enemy
# in wounded condition. To disable this automatic add state for some enemies or
# characters, just simply put resist state in feature system
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# ♫ INSTRUCTION :
# Put this script below material but above main in script editor. Don't forget
# to save.
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# ♫ HOW TO USE :
# Just edit the configuration below
# =============================================================================
# ♫ TERMS OF USE :
# - Credit me, TheoAllen. If you think it's necessary.
# - You may use this script both commercial and non-commercial
# - Do not edit at this time. I still have to do something in this script.
# - I'll be glad if you give me a free copy of your game if you use this script
# in your commercial project.
# =============================================================================
#
# =============================================================================
# ♫ CONFIGURATIONS ~ ♫
# =============================================================================
module THEOLIZED
WOUNDED_CONDITION = 0.25 # percentage of wounded condition.
WOUNDED_STATE_ID = 0 # state ID
end
# =============================================================================
# ♫ Do not edit unless you know what to do ~ ♫
# =============================================================================
class Game_BattlerBase
#--------------------------------------------------------------------------
# ♫ Aliased refresh
#--------------------------------------------------------------------------
alias theo_wound_refresh refresh
def refresh
theo_wound_refresh
apply_wounded_state
end
#--------------------------------------------------------------------------
# ♫ Check wounded
#--------------------------------------------------------------------------
def wounded?
return hp_rate <= wounded_condition
end
#--------------------------------------------------------------------------
# ♫ Get wounded state id
#--------------------------------------------------------------------------
def wounded_state_id
return THEOLIZED::WOUNDED_STATE_ID
end
#--------------------------------------------------------------------------
# ♫ Get wounded condition
#--------------------------------------------------------------------------
def wounded_condition
value = THEOLIZED::WOUNDED_CONDITION
return 0.25 if value > 1 || value < 0
return value
end
#--------------------------------------------------------------------------
# ♫ Apply wounded state
#--------------------------------------------------------------------------
def apply_wounded_state
return if wounded_state_id <= 0
wounded? ? add_state(wounded_state_id) : remove_state(wounded_state_id)
end
end
# =============================================================================
# ♫ End of Game_BattlerBase class ♫
# =============================================================================
CreditsTulis aja "TheoAllen" kalo mau