ArmorKlass VX
ArmorKlass VXby Kyonides Arkanthes
Introduction
Change your Hero's class by changing his Body Armor!
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Setup Process
[*]You will need to define a Default Class for the Hero.
[*]All body armors should be available for everybody.
VX & ACE
[*]Leave a very specific note in all of the existing body armors!
XP
[*]Set the Range of Valid Element IDs that represent all of the available Classes!
VX Script
Ruby:
# * ArmorKlass VX * ## Scripter : Kyonides Arkanthes# 2023-01-02# Change a Hero's Class by changing his Body Armor!# You will need to define a Default Class for the Hero.# All body armors should be available for everybody.# * Armor Note - N stands for a Class ID.# <class id: N>module ArmorKlassREGEX = /<class id: (\d+)>/iDEFAULT_CLASS_ID = 1endclass Game_Actoralias :kyon_armor_klass_gm_actor_ch_eq :change_equipalias :kyon_armor_klass_gm_actor_disc_eq :discard_equipdef set_equip_class(equip_type, item, force=nil) return if force.nil? and (item.nil? or equip_type != 3) item.note unless force klass_id = $1 ? $1.to_i : ArmorKlass::DEFAULT_CLASS_ID self.class_id = klass_id if @class_id != klass_idenddef change_equip(equip_type, item, test=false) kyon_armor_klass_gm_actor_ch_eq(equip_type, item, test) set_equip_class(equip_type, item) unless testenddef discard_equip(item) kyon_armor_klass_gm_actor_disc_eq(item) return unless item.is_a?(RPG::Armor) and @armor2_id == item.id set_equip_class(2, item, true)endend
Download DEMOS
Terms & Conditions
Free for use anywhere.
Just mention me in your game credits.
I really hope this won't be the only script of mine that you will include in your game project.
本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/armorklass-vx.153718/
页:
[1]