| [VXA]Change Class With New Skills | |
|
|
Pengirim | Message |
---|
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: [VXA]Change Class With New Skills 2012-10-26, 14:54 | |
| Change Class With New Skills Versi: 1.1 Tipe: Addon PengenalanMencoba membuat sesuatu ini >> https://rmid.forumotion.net/t6991p10-ask-transform-saat-battle#108298Biasanya, jika anda mengganti class, skill yang lama akan tetap ada, nah dengan script ini skill yang lama akan terbuang digantikan oleh skill yang baru sesuai dengan class. Script ini khusus untuk battle. Kompatibel untuk battle system default vxace. Fitur
- Ganti skill saat berganti class
- Otomatis ganti ke class awal saat selesai battle
- Bisa milih langsung learn meskipun level belum cukup atau tidak
Screenshotsgak perlu Demogak perlu, tinggal copas aja Scripts - Code:
-
#------------------------------------------------------------------------------- # Change Class With New Skill # Author : larkuzo # Versi : 1.0 # Fungsi : Ketika mengganti class, skill yang lama akan digantikan oleh # skill yang baru yang sesuai dengan class #------------------------------------------------------------------------------- module BattleManager def self.battle_start @class_array = [] for i in 1..$game_party.max_battle_members @class_array[i] = $game_actors[i].class_id end $game_system.battle_count += 1 $game_party.on_battle_start $game_troop.on_battle_start $game_troop.enemy_names.each do |name| $game_message.add(sprintf(Vocab::Emerge, name)) end if @preemptive $game_message.add(sprintf(Vocab::Preemptive, $game_party.name)) elsif @surprise $game_message.add(sprintf(Vocab::Surprise, $game_party.name)) end wait_for_message end #----------------------------------------------------------------------- # Battle Berakhir #----------------------------------------------------------------------- def self.battle_end(result) @phase = nil for o in 1..$game_party.max_battle_members $game_actors[o].change_class(@class_array[o]) end @event_proc.call(result) if @event_proc $game_party.on_battle_end $game_troop.on_battle_end SceneManager.exit if $BTEST end end
class Game_Actor < Game_Battler def change_class(class_id, keep_exp = true) # Forget all skills self.class.learnings.each do |learning| forget_skill(learning.skill_id) end @exp[class_id] = exp if keep_exp @class_id = class_id change_exp(@exp[@class_id] || 0, false) # Learn all skills self.class.learnings.each do |learning| if learning.note =~ /<dl>/ learn_skill(learning.skill_id) if learning.level <= @level else learn_skill(learning.skill_id) end end refresh end end
Cara pakai : Tinggal copas aja ke script editor tambahkan <dl> di note skill yang ada di class supaya tidak akan di learn jika level belum cukup Credits
Terakhir diubah oleh larkuzo tanggal 2012-10-27, 09:34, total 1 kali diubah (Reason for editing : UPDATE!!!) | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 07:46 | |
| waduh thankz banget bang lakurzo, ntar deh ane coba semoga sesuai dengan yang diinginkan.. :p
EDIT: ini cara pake gimna? | |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 09:35 | |
| @radis tinggal copas ke script editor @another UPDATE!! CHECK FIRST POST!!! | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 10:03 | |
| bingung, meskipun tinggal copas...
apa gaka da masuk2in ke NoteTags?
klo bisa coba demonya deh kk.. biar lebih jelas... atau SS cara penggunaannya... | |
|
| |
Deenos Advance
Posts : 487 Thanked : 7 Engine : RMVX Ace Skill : Skilled Type : Databaser
Trophies
Awards: | Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 10:51 | |
| ini bisa jadi perantara ganti sprite dan class good | |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 11:11 | |
| @radis Kalo buat kebutuhan kamu sebenarnya ini tinggal copas gak usah setting-setting lagi dan gak usah main notetag plug and play! | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 12:41 | |
| trus cara ganti classnya pas battle gimana? sumpah masih bingung.... | |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 12:48 | |
| Lewat skill, dari skill panggil common event, common event berisi ganti class | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA]Change Class With New Skills 2012-10-27, 13:02 | |
| nah klo ada penjelasannya gitu kan enak... -_- huufttt dari tadi kek.. hehehehe.. EDIT:working mangstab.... tapi yang belum dicoba, pas udah class nya udah berganti trus mencet transform lagi kagak bisa balik ke awal ya?? (belom coba sih) | |
|
| |
Sponsored content
| Subyek: Re: [VXA]Change Class With New Skills | |
| |
|
| |
| [VXA]Change Class With New Skills | |
|