Actor Prefixes
Version: 1.0
Author: modern algebra
Date: February 3, 2009
Version History
- <Version 1.0> 02.03.2009 - Original Release
Description
This allows you to set prefixes to your classes that are based on actor level. Perfect if you want your classes to be rank based. For instance, with this script, your warrior can be Squire Philip between levels 1 and 10, Sir Philip between levels 11 and 30, Lord Philip between levels 31 and 60, and King Philip after level 60.
Features
- Allows you to give dynamic prefixes to your actors
- Can set these prefixes unique to classes
- Define exactly at what levels your actors gain a new prefix
- Set as many prefixes per class as you like.
Instructions
Please see inside the script for instructions.
Script
#==============================================================================
# Actor Prefixes (based on class)
# Version: 1.0
# Author: modern algebra (rmrk.net)
# Date: February 3, 2009
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Description:
# This allows you to set prefixes to your classes that are based on actor
# level. Perfect if you want your classes to be rank based. For instance,
# with this script, your warrior can be Squire Philip between levels 1 and
# 10, Sir Philip between levels 11 and 30, Lord Philip between levels 31 and
# 60, and King Philip after level 60.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Instructions:
# Place this script in the Script Editor (F11) in a slot above Main and
# below Materials
#
# For instructions on configuring this script, please see the Editable
# Region starting at line 35.
#==============================================================================
# ** Game_Actor
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - name
#==============================================================================
class Game_Actor
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Name
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modalge_nevious_chr_prefx_nm_83y5n name
def name
prefix = ""
case @class_id
#----------------------------------------------------------------------
# EDITABLE REGION
#``````````````````````````````````````````````````````````````````````
# Instructions:
# Set each class as below:
#
# when <class ID>
# prefix = case @level
# when p1 .. p2 then "<original prefix>"
# when p2 + 1 .. p3 then "<second prefix>"
# when p3 + 1 .. p4 then "<third prefix>"
# ................................
# else "<last prefix>"
# end
#
# where p1, p2, p3, ..., pn are the levels at which the prefix ought
# to change. class ID is the ID of the class, and the prefixes are all
# the prefixes for that level range. If you leave any levels out, then
# there will be no prefix for that level or, if you have set an else
# branch, then it will take that prefix.
#
# EXAMPLES:
#
# when 1 # Class ID = 1 : Paladin
# prefix = case @level
# when 1 .. 10 then "Squire " # Squire between levels 1 and 10
# when 11 .. 30 then "Sir " # Sir between levels 11 and 30
# when 31 .. 60 then "Lord " # Lord between levels 31 and 60
# else "King " # King after level 60
# end
# when 3 # Class ID = 3 : Priest
# prefix = case @level
# when 1 .. 15 then "Br. " # Squire between levels 1 and 15
# when 16 .. 35 then "Fr. " # Sir between levels 16 and 35
# when 36 .. 69 then "Bishop " # Lord between levels 36 and 69
# else "Cardinal " # King after level 70
# end
#----------------------------------------------------------------------
when 1 # Class ID = 1 : Paladin
prefix = case @level
when 1 .. 10 then "Squire " # Squire between levels 1 and 10
when 11 .. 30 then "Sir " # Sir between levels 11 and 30
when 31 .. 60 then "Lord " # Lord between levels 31 and 60
else "King " # King after level 60
end
when 3 # Class ID = 3 : Priest
prefix = case @level
when 1 .. 15 then "Br. " # Brother between levels 1 and 15
when 16 .. 35 then "Fr. " # Father between levels 16 and 35
when 36 .. 69 then "Bishop " # Bishop between levels 36 and 69
else "Cardinal " # Cardinal after level 70
end
#----------------------------------------------------------------------
# END EDITABLE REGION
#----------------------------------------------------------------------
end
return prefix + modalge_nevious_chr_prefx_nm_83y5n
end
end
Credit
Thanks
- nevious, for requesting the script
Support
Please post in this topic here at rmrk.net for support or requests
This script by
modern algebra is licensed under a
Creative Commons Attribution-Non-Commercial-Share Alike 2.5 Canada License.