RPGMakerID
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Komunitas RPG Maker Indonesia
 
IndeksIndeks  Latest imagesLatest images  PencarianPencarian  PendaftaranPendaftaran  Login  
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.

 

 [VXA]Change Class With New Skills

Go down 
3 posters
PengirimMessage
larkuzo
Advance
Advance
larkuzo


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

[VXA]Change Class With New Skills Empty
PostSubyek: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-26, 14:54

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!!!)
Kembali Ke Atas Go down
http://fsfsource.blogspot.com
Radis3D
Sang Iblis
Radis3D


Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer

Trophies
Awards:
[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-27, 07:46

waduh thankz banget bang lakurzo, ntar deh ane coba semoga sesuai dengan yang diinginkan..
:p

EDIT:

ini cara pake gimna?
Kembali Ke Atas Go down
larkuzo
Advance
Advance
larkuzo


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

[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-27, 09:35

@radis
tinggal copas ke script editor :v


@another
UPDATE!!
CHECK FIRST POST!!!
Kembali Ke Atas Go down
http://fsfsource.blogspot.com
Radis3D
Sang Iblis
Radis3D


Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer

Trophies
Awards:
[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-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...
Kembali Ke Atas Go down
Deenos
Advance
Advance
Deenos


Level 5
Posts : 487
Thanked : 7
Engine : RMVX Ace
Skill : Skilled
Type : Databaser

Trophies
Awards:
[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-27, 10:51

ini bisa jadi perantara ganti sprite dan class good :v
Kembali Ke Atas Go down
http://deempty.blogspot.com
larkuzo
Advance
Advance
larkuzo


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

[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-27, 11:11

@radis
Kalo buat kebutuhan kamu sebenarnya ini tinggal copas :v
gak usah setting-setting lagi dan gak usah main notetag :v
plug and play!
Kembali Ke Atas Go down
http://fsfsource.blogspot.com
Radis3D
Sang Iblis
Radis3D


Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer

Trophies
Awards:
[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-27, 12:41

trus cara ganti classnya pas battle gimana?
sumpah masih bingung....
Kembali Ke Atas Go down
larkuzo
Advance
Advance
larkuzo


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

[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-10-27, 12:48

Lewat skill, dari skill panggil common event, common event berisi ganti class
Kembali Ke Atas Go down
http://fsfsource.blogspot.com
Radis3D
Sang Iblis
Radis3D


Level 5
Posts : 755
Thanked : 3
Engine : RMVX Ace
Skill : Very Beginner
Type : Writer

Trophies
Awards:
[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty2012-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)
Kembali Ke Atas Go down
Sponsored content





[VXA]Change Class With New Skills Empty
PostSubyek: Re: [VXA]Change Class With New Skills   [VXA]Change Class With New Skills Empty

Kembali Ke Atas Go down
 
[VXA]Change Class With New Skills
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» Class change
» Class change tutorial
» [ASK]masalah antara skill dan class change
» TroyZ - Critical Skills Mods
» [ASK] skills tree.

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