Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: ArmorKlass ACE
- Original author: kyonides
- Original date: January 3, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/armorklass-ace.153719/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS3 Scripts (RMVX Ace)
Summary
ArmorKlass ACE by Kyonides Arkanthes Introduction Change your Hero's class by changing his Body Armor!
Archived First Post
ArmorKlass ACE
by Kyonides Arkanthes
by Kyonides Arkanthes
Introduction
Change your Hero's class by changing his Body Armor!
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!
ACE Script
Ruby:
# * ArmorKlass ACE * #
# 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 ArmorKlass
REGEX = /<class id: (\d+)>/i
DEFAULT_CLASS_ID = 1
end
class Game_Actor
alias :kyon_armor_klass_gm_actor_ch_eq :change_equip
alias :kyon_armor_klass_gm_actor_force_ch_eq :force_change_equip
alias :kyon_armor_klass_gm_actor_disc_eq :discard_equip
def set_equip_class(slot_id, item, force=nil)
return if force.nil? and (item.nil? or slot_id != 3)
item.note[ArmorKlass::REGEX] unless force
klass_id = $1 ? $1.to_i : ArmorKlass::DEFAULT_CLASS_ID
change_class(klass_id) if @class_id != klass_id
end
def change_equip(slot_id, item)
kyon_armor_klass_gm_actor_ch_eq(slot_id, item)
set_equip_class(slot_id, item)
end
def force_change_equip(slot_id, item)
kyon_armor_klass_gm_actor_force_ch_eq(slot_id, item)
set_equip_class(slot_id, item)
end
def discard_equip(item)
kyon_armor_klass_gm_actor_disc_eq(item)
set_equip_class(slot_id, item, true) if slot_id == 3
end
end
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.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
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.
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...