Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.

Share | 
 

 [VXA]Change Class With New Skills

Topik sebelumnya Topik selanjutnya Go down 
[VXA]Change Class With New Skills Empty2012-10-26, 14:54
Post[VXA]Change Class With New Skills
#1
larkuzo 
Advance
Advance
larkuzo

Level 5
Posts : 445
Thanked : 12
Engine : RMXP
Skill : Beginner
Type : Event Designer

[VXA]Change Class With New Skills Vide
Change Class With New Skills
Versi: 1.1
Tipe: Addon


Pengenalan
Mencoba membuat sesuatu ini >> https://rmid.forumotion.net/t6991p10-ask-transform-saat-battle#108298
Biasanya, 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



Screenshots

gak perlu


Demo

gak 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 :P
tambahkan <dl> di note skill yang ada di class supaya tidak akan di learn jika level belum cukup :v


Credits


  • Enterbrain
  • larkuzo


Terakhir diubah oleh larkuzo tanggal 2012-10-27, 09:34, total 1 kali diubah (Reason for editing : UPDATE!!!)
[VXA]Change Class With New Skills Empty2012-10-27, 07:46
PostRe: [VXA]Change Class With New Skills
#2
Radis3D 
Sang Iblis
Radis3D

Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer
Awards:
[VXA]Change Class With New Skills Vide
waduh thankz banget bang lakurzo, ntar deh ane coba semoga sesuai dengan yang diinginkan..
:p

EDIT:

ini cara pake gimna?
[VXA]Change Class With New Skills Empty2012-10-27, 09:35
PostRe: [VXA]Change Class With New Skills
#3
larkuzo 
Advance
Advance
larkuzo

Level 5
Posts : 445
Thanked : 12
Engine : RMXP
Skill : Beginner
Type : Event Designer

[VXA]Change Class With New Skills Vide
@radis
tinggal copas ke script editor :v


@another
UPDATE!!
CHECK FIRST POST!!!
[VXA]Change Class With New Skills Empty2012-10-27, 10:03
PostRe: [VXA]Change Class With New Skills
#4
Radis3D 
Sang Iblis
Radis3D

Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer
Awards:
[VXA]Change Class With New Skills Vide
bingung, meskipun tinggal copas...

apa gaka da masuk2in ke NoteTags?

klo bisa coba demonya deh kk..
biar lebih jelas...
atau SS cara penggunaannya...
[VXA]Change Class With New Skills Empty2012-10-27, 10:51
PostRe: [VXA]Change Class With New Skills
#5
Deenos 
Advance
Advance
Deenos

Level 5
Posts : 487
Thanked : 7
Engine : RMVX Ace
Skill : Skilled
Type : Databaser
Awards:
[VXA]Change Class With New Skills Vide
ini bisa jadi perantara ganti sprite dan class good :v
[VXA]Change Class With New Skills Empty2012-10-27, 11:11
PostRe: [VXA]Change Class With New Skills
#6
larkuzo 
Advance
Advance
larkuzo

Level 5
Posts : 445
Thanked : 12
Engine : RMXP
Skill : Beginner
Type : Event Designer

[VXA]Change Class With New Skills Vide
@radis
Kalo buat kebutuhan kamu sebenarnya ini tinggal copas :v
gak usah setting-setting lagi dan gak usah main notetag :v
plug and play!
[VXA]Change Class With New Skills Empty2012-10-27, 12:41
PostRe: [VXA]Change Class With New Skills
#7
Radis3D 
Sang Iblis
Radis3D

Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer
Awards:
[VXA]Change Class With New Skills Vide
trus cara ganti classnya pas battle gimana?
sumpah masih bingung....
[VXA]Change Class With New Skills Empty2012-10-27, 12:48
PostRe: [VXA]Change Class With New Skills
#8
larkuzo 
Advance
Advance
larkuzo

Level 5
Posts : 445
Thanked : 12
Engine : RMXP
Skill : Beginner
Type : Event Designer

[VXA]Change Class With New Skills Vide
Lewat skill, dari skill panggil common event, common event berisi ganti class
[VXA]Change Class With New Skills Empty2012-10-27, 13:02
PostRe: [VXA]Change Class With New Skills
#9
Radis3D 
Sang Iblis
Radis3D

Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer
Awards:
[VXA]Change Class With New Skills Vide
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)
[VXA]Change Class With New Skills Empty
PostRe: [VXA]Change Class With New Skills
Sponsored content 




[VXA]Change Class With New Skills Vide
 

[VXA]Change Class With New Skills

Topik sebelumnya Topik selanjutnya Kembali Ke Atas 

Similar topics

+
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Scripts & Event Systems :: RMVX Ace Scripts-