Rian01 Advance
Posts : 318 Thanked : 0 Engine : RMVX Ace Skill : Beginner
Trophies
Awards: | Subyek: [VX] MP jadi HP saat skill absorb 2012-10-28, 19:27 | |
| HP Menjadi MP saat Absorb Versi: 1.0 Tipe: Battle Add-on PengenalanSkrip ini digunakan agar saat musuh kehabisan MP dan player menggunakan "Mana drain" maka MP damage diubah menjadi HP damage atau skill lain selama menggunakan "damage to mp" Fitur
- Bisa mengatur Multiplier nya
Screenshots Demo Scripts - Code:
-
module AKB Multiplier = 2 # Angka HP setiap 1 MP yang kurang end
class Game_Battler alias make_condition make_obj_damage_value def make_obj_damage_value(user, obj) make_condition(user, obj) damage = obj.base_damage # get base damage if obj.damage_to_mp if damage > self.mp @mp_damage = self.mp @hp_damage = (damage - @mp_damage) * AKB::Multiplier elsif damage <= self.mp @mp_damage = damage end else @hp_damage = damage # damage HP end end def make_obj_absorb_effect(user, obj) if obj.absorb_damage # if absorbing damage @hp_damage = [self.hp, @hp_damage].min # HP damage range
adjustment @mp_damage = [ @mp_damage].min # MP damage range adjustment if @hp_damage > 0 or @mp_damage > 0 # a positive number? @absorbed = true # turn the absorb flag ON end end end end
class Scene_Battle < Scene_Base alias munculkan display_hp_damage def display_hp_damage(target, obj = nil) munculkan(target, obj = nil) if target.hp_damage == 0 # No damage return if obj != nil end end end
Credits | |
|
arls Advance
Posts : 412 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Mapper
Trophies
Awards: | Subyek: Re: [VX] MP jadi HP saat skill absorb 2012-10-28, 20:28 | |
| saya cuma beri respon ya kk,mungkin script ini agak jarang d gunakan walaupun kdang d perlukan. D tunggu ya kk,script lainya | |
|
ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: [VX] MP jadi HP saat skill absorb 2012-10-29, 11:01 | |
| Meski terdenger sedikit sadis juga sih... Dalam perspektif ane, serangan ke MP itu lebih kearah spt skill psikologis atau menambah fatigue. Jadi kalo udah dalam keadaan "empty-mind" < entah bener ato gak istilahnya sadis juga harus kehilangan HP. Tapi ini bikin skill2 neither-physic-nor-magic jadi lebih berkembang. Eniwei, nice script. Apalagi kalo ini vx ntar kalo ane sempet, ane cek dan kalo kompatible bakal ane pake. | |
|
Sponsored content
| Subyek: Re: [VX] MP jadi HP saat skill absorb | |
| |
|