Save-Point
KChangeMember VX - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: KChangeMember VX (/thread-10603.html)



KChangeMember VX - kyonides - 10-22-2024

KChangeMember VX
Version 1.0.1
by Kyonides

Introduction

Had you ever needed to let a new hero inherit an old hero's equipment?
Did you ever want to let a newcomer learn some of a former party member's skills?
Well, now this scriptlet will let you do those things with a few simple script calls!

Please read the comments embedded in the script to learn how to use the script calls.

Warning!

This script does NOT load or read any saved games at any given time!

Instructions

Code:
# Explanation: :level stands for same level while :equip means same equipment.

# * Script Calls * #

# Let another Party Member inherit the old Party member's equipment
# Optionally he or she can learn some of his or her skills as well.
# succeed_member(OldActorID, NewActorID)
# succeed_member(OldActorID, NewActorID, SkillID1, etc.)

# Replace an Active Party Member (with Actor ID) with a stranger
# change_member(OldActorID, NewActorID)

# Replace an Active Party Member (with n Actor ID) with a stranger with
# additional Options: :level or :equip or both of them
# change_member(OldActorID, NewActorID, Options)

# Optional: Set or Change Language of Error Messages
# @language = :eng (Found in Error module)
# KChange::Error.language = :eng or :esp or :deu or :fra

module KChange
  module Member
    LEVEL_SYMBOLS = [:level, :nivel, :niveau]
    EQUIPMENT_SYMBOLS = [:equip, :equipo, :ausruestung]
  end

Examples:

Code:
succeed_member(1, 2)
succeed_member(1, 3, 1, 5)
change_member(1, 2, :level, :equip)


Terms & Conditions

Free for use in non commercial games. Contact me if you are going commercial. Winking
Mention me in your game credits! Grinning
Do not repost it anywhere else! Angry