privateer Novice
Posts : 253 Thanked : 1 Engine : RMXP Skill : Advanced Type : Scripter
| Subyek: [Trans][RMXP] KGC_GuardRecover 2011-12-09, 17:43 | |
| KGC_GuardRecover Last Update : 2007/12/05 Tipe: Battle Add-on PengenalanINGAT!!!!! INI BUKANLAH SCRIPT BUATAN SAYA!!!! Jadi, segala bug + error bukan tanggungan saya!!!! (Tapi, mungkin akan saya fix kalau mampu...)
Awalnya sih saya bingung, kok script KGC hanya yang RMVX yang di-translate. Karena tidak ada yang mengtranslate(sebenarnya ada, tapi sudah broken link + susah dibaca), ya saya translate. Rencananya, akan saya translate juga script RMXP KGC yang lain.
Terkait Last Update, berhubung KGC tidak memakai sistem versi; tapi Last Update (Update Terakhir), ya otomatis saya pakai format Last Update, bukan Versi.
Script ini memungkinkan kalian yang memakai DBS/ACB/ACB2 untuk meng-recover sejumlah HP/SP setiap kali seorang aktor/musuh memakai command "Defend".
Script ini berbahasa "English". Jadi, saya mohon maaf kalo ada yang tidak mengerti script ini. Akan saya pandu di bagian "INSTRUCTION". Fitur
- Recovers Actors/Enemies' HP/SP when guarding
Screenshots- Bandwith Killer!!!:
DemoTidak butuh. Toh, dah saya pandu di bagian Instruction. Scripts- KGC_GuardRecover:
- Code:
-
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #_/ ◆ Guard Recovery - KGC_GuardRecover ◆ #_/ ◇ Last update : 2007/12/05 ◇ #_/---------------------------------------------------------------------------- #_/ Recovers the unit's HP/SP when guarding. #_/ 100% translated and cleaned by private/privateer. #_/ Original script credit goes to KGC. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
#============================================================================== # ★ Configuration ★ #==============================================================================
module KGC module GuardRecover # ◆ Actors' HP (in percentage) that is recovered when guarding HP_RATE_ACTOR = 5 # ◆ Actors' SP (in percentage) that is recovered when guarding SP_RATE_ACTOR = 1
# ◆ Enemies' HP (in percentage) that is recovered when guarding HP_RATE_ENEMY = 0 # ◆ Enemies' SP (in percentage) that is recovered when guarding SP_RATE_ENEMY = 0 end end
#★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
$imported = {} if $imported == nil $imported["GuardRecover"] = true
#============================================================================== # ■ Scene_Battle (part 4) #==============================================================================
class Scene_Battle #-------------------------------------------------------------------------- # ● Create Basic Action Result #-------------------------------------------------------------------------- alias make_basic_action_result_KGC_GuardRecover make_basic_action_result def make_basic_action_result # Perform the original method make_basic_action_result_KGC_GuardRecover
# If battler is defending if @active_battler.current_action.kind == 0 && @active_battler.current_action.basic == 1 # Recovery Calculation if @active_battler.is_a?(Game_Actor) hp_rate = KGC::GuardRecover::HP_RATE_ACTOR sp_rate = KGC::GuardRecover::SP_RATE_ACTOR else hp_rate = KGC::GuardRecover::HP_RATE_ENEMY sp_rate = KGC::GuardRecover::SP_RATE_ENEMY end recover_hp = @active_battler.maxhp * hp_rate / 100 recover_sp = @active_battler.maxsp * sp_rate / 100 if recover_hp > 0 @active_battler.damage = -recover_hp end if recover_sp > 0 if $imported["SPDamage"] @active_battler.sp_damage = -recover_sp else @active_battler.damage = "#{$data_system.words.sp}+ #{recover_sp}" end end @active_battler.hp += recover_hp @active_battler.sp += recover_sp # Display the recovered HP/SP @target_battlers |= [@active_battler] end end end
Instruction
- Masukkan script ini di atas "Main" dan di bawah "Scene_Debug"
- Konfigurasi di bagian Configuration
- HP_RATE_ACTOR : Persentase HP yang akan direcover dari actor yang "Defend"
- SP_RATE_ACTOR : Persentase SP yang akan direcover dari actor yang "Defend"
- HP_RATE_ENEMY : Persentase HP yang akan direcover dari enemy yang "Defend"
- SP_RATE_ENEMY : Persentase SP yang akan direcover dari enemy yang "Defend"
Credits
- KGC untuk original script
- private/privateer untuk meng-translate script ini
Compatibility
- 100% Compatible dengan DBS, ACB, atau/dan ACB2
- Possible clash with exotic CBS, Window_Command, dan script lain yang berhubungan dengan sistem Battle
- Extra Feature with KGC_SPDamage
Terakhir diubah oleh LowlingLife tanggal 2014-02-06, 21:25, total 2 kali diubah (Reason for editing : Compatibility) | |
|
LowlingLife Administrator
Posts : 2000 Thanked : 25 Engine : Multi-Engine User
Trophies
Awards:
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover 2011-12-09, 17:58 | |
| Well, bagus!! Lanjutkan priv!!! OOT : Mungkin kalo ada error + bug, bisa saya fix.. | |
|
Nefusa 7 Senior
Posts : 954 Thanked : 6 Engine : RMXP Skill : Intermediate Type : Scripter
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover 2011-12-09, 19:19 | |
| wuuih... Kayak RMVX Ace ! CMIIW kalau ngedefend HP ama SP nya tambah ! ijin DL scriptnya ya.. | |
|
privateer Novice
Posts : 253 Thanked : 1 Engine : RMXP Skill : Advanced Type : Scripter
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover 2011-12-10, 07:50 | |
| @nufus : gak lah... ini aja direlease jauh sebelum RMVX Ace (2007). | |
|
Aegis Legendary
Posts : 2152 Thanked : 56 Engine : Multi-Engine User Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover 2011-12-10, 08:14 | |
| wow, itu monster sama orangnya kok bisa terbang ? jangan2 kemampuan dari script keren.... | |
|
Nefusa 7 Senior
Posts : 954 Thanked : 6 Engine : RMXP Skill : Intermediate Type : Scripter
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover 2011-12-10, 10:44 | |
| - Quote :
- @nufus : gak lah... ini aja
direlease jauh sebelum RMVX Ace (2007). maksudku itu efek scriptnya sama kayak RMVX Ace.. kan kalo VX Ace itu bila kita defend, hpnya langsung tambah | |
|
privateer Novice
Posts : 253 Thanked : 1 Engine : RMXP Skill : Advanced Type : Scripter
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover 2011-12-11, 10:18 | |
| @om Aegis : Itu cuma efek om, kan Sideview.... (di configure battlebacknya)... @Iya aja deh.... | |
|
Sponsored content
| Subyek: Re: [Trans][RMXP] KGC_GuardRecover | |
| |
|