public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
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 XP
  • Original author: kyonides
  • Original date: January 3, 2023
  • Source thread: https://forums.rpgmakerweb.com/threads/armorklass-xp.153717/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS Scripts (RMXP)

Summary

ArmorKlass XP by Kyonides Arkanthes​ Introduction Change your Hero's class by changing his Body Armor!

Archived First Post

ArmorKlass XP

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!

XP Script

Ruby:
# * ArmorKlass XP * #
#   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.
# Create as many Extra Elements as the existing Classes.
# In the ELEMENT_IDS Constant set the Range of Element IDs.

module ArmorKlass
  ELEMENT_IDS = 17..25
  DEFAULT_CLASS_ID = 1
end

class Game_Actor
  alias :kyon_armor_klass_gm_actor_equip :equip
  def set_equip_class(equip_type, eid)
    return if equip_type != 3
    element_ids = ArmorKlass::ELEMENT_IDS
    if eid > 0
      element_set = $data_armors[@armor3_id].guard_element_set
      ary = element_ids.to_a & element_set
      klass_id = ary[0] - element_ids.first + 1
    else
      klass_id = ArmorKlass::DEFAULT_CLASS_ID
    end
    self.class_id = klass_id if @class_id != klass_id
  end

  def equip(equip_type, eid)
    kyon_armor_klass_gm_actor_equip(equip_type, eid)
    set_equip_class(equip_type, eid)
  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 download

License / 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.

#039#rgss#script-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar