#===============================================================================
# Aliasing
#===============================================================================
# Alias the neccessary methods to change SkillScript_Simple to $skillscript
# // Is currently here do to strange errors if I place it anywhere else
# (might not happen to other users)...
#===============================================================================
class Scene_Title < Scene_Base
alias :old_skillscript_create_game_objects :create_game_objects
def create_game_objects
old_skillscript_create_game_objects
$skillscript = SkillScript_Simple.new
end
end
class Scene_File < Scene_Base
alias :old_skillscript_write_save_data :write_save_data
def write_save_data(file)
old_skillscript_write_save_data(file)
Marshal.dump($skillscript, file)
end
alias :old_skillscript_read_save_data :read_save_data
def read_save_data(file)
$skillscript = Marshal.load(file)
old_skillscript_read_save_data(file)
end
end
#===============================================================================
# Class SkillScript_Simple Base Ver 1.1
# by Twb6543
#===============================================================================
# Adds a base to allow users to create skills
# use $skillscript.command to use a command ...
# All variables are preset (e.g. *.skill(NAME="Empty"))
# Change options on lines:
# 52, 57, ...
#===============================================================================
class SkillScript_Simple
attr_accessor :_SkillScript_Option_Temporary_Cap
def initialize
# Whether the script should cap the temporary level to the level of the
# skill relating to it...
@@_SkillScript_Option_Temporary_Cap = false
# Whether if a skill levels up should the temporary level be set to
# the level of the $Skill
# 0 = False/no - Anything else = yes
@@_RESETTEMPAUTO_ = 1
# $Skill = _NAME_
$Skill = 'Skill_A' # Change this to whatever name you wish
# Do not change
$Skill_Check_result = false
# The skill name that will be used to call up data
# Skill => _NAME_
$Skill_Name = {
"Skill_A" => 'Skill_A',
"Skill_B" => 'Skill_B',
"Skill_C" => 'Skill_C',
"Skill_D" => 'Skill_D',
"Skill_E" => 'Skill_E',
"Skill_F" => 'Skill_F',
"Skill_G" => 'Skill_G',
"Skill_H" => 'Skill_H',
"Skill_I" => 'Skill_I',
"Skill_J" => 'Skill_J',
"Skill_K" => 'Skill_K',
"Skill_L" => 'Skill_L',
"Skill_M" => 'Skill_M',
"Skill_N" => 'Skill_N',
"Skill_O" => 'Skill_O',
"Skill_P" => 'Skill_P',
"Skill_Q" => 'Skill_Q',
"Skill_R" => 'Skill_R',
"Skill_S" => 'Skill_S',
"Skill_T" => 'Skill_T',
"Skill_U" => 'Skill_U',
"Skill_V" => 'Skill_V',
"Skill_W" => 'Skill_W',
"Skill_X" => 'Skill_X',
"Skill_Y" => 'Skill_Y',
"Skill_Z" => 'Skill_Z',
"Skill_Empty" => 'Skill_Empty' # Do Not Change
}
# The starting level of the skill
# Skill => _LEVEL_
$Skill_Level = {
"Skill_A" => 1,
"Skill_B" => 1,
"Skill_C" => 1,
"Skill_D" => 1,
"Skill_E" => 1,
"Skill_F" => 1,
"Skill_G" => 1,
"Skill_H" => 1,
"Skill_I" => 1,
"Skill_J" => 1,
"Skill_K" => 1,
"Skill_L" => 1,
"Skill_M" => 1,
"Skill_N" => 1,
"Skill_O" => 1,
"Skill_P" => 1,
"Skill_Q" => 1,
"Skill_R" => 1,
"Skill_S" => 1,
"Skill_T" => 1,
"Skill_U" => 1,
"Skill_V" => 1,
"Skill_W" => 1,
"Skill_X" => 1,
"Skill_Y" => 1,
"Skill_Z" => 1,
"Skill_Empty" => 1 # Do not change
}
# The starting xp of the skill
# Must be equal or in the xp boundary for the level
# set above // Look at the table below
# Skill => _XP_
$Skill_Xp = {
"Skill_A" => 1,
"Skill_B" => 1,
"Skill_C" => 1,
"Skill_D" => 1,
"Skill_E" => 1,
"Skill_F" => 1,
"Skill_G" => 1,
"Skill_H" => 1,
"Skill_I" => 1,
"Skill_J" => 1,
"Skill_K" => 1,
"Skill_L" => 1,
"Skill_M" => 1,
"Skill_N" => 1,
"Skill_O" => 1,
"Skill_P" => 1,
"Skill_Q" => 1,
"Skill_R" => 1,
"Skill_S" => 1,
"Skill_T" => 1,
"Skill_U" => 1,
"Skill_V" => 1,
"Skill_W" => 1,
"Skill_X" => 1,
"Skill_Y" => 1,
"Skill_Z" => 1,
"Skill_Empty" => 1 # Do not change
}
# The starting temporary level of the skill,
# Can be between or equal to 0 and the starting level of the
# skill
# Skill => _TEMP_
$Skill_Temp = {
"Skill_A" => 1,
"Skill_B" => 1,
"Skill_C" => 1,
"Skill_D" => 1,
"Skill_E" => 1,
"Skill_F" => 1,
"Skill_G" => 1,
"Skill_H" => 1,
"Skill_I" => 1,
"Skill_J" => 1,
"Skill_K" => 1,
"Skill_L" => 1,
"Skill_M" => 1,
"Skill_N" => 1,
"Skill_O" => 1,
"Skill_P" => 1,
"Skill_Q" => 1,
"Skill_R" => 1,
"Skill_S" => 1,
"Skill_T" => 1,
"Skill_U" => 1,
"Skill_V" => 1,
"Skill_W" => 1,
"Skill_X" => 1,
"Skill_Y" => 1,
"Skill_Z" => 1,
"Skill_Empty" => 1 # Do not change
}
# The Maximum level in a skill that can be reached must be
# bellow or equal to the highest level set in the Really
# Long List of Hashes Containing the Xp required for Each Levels
# Skill => _MAXLEVEL_
$Skill_Max_Level = {
"Skill_A" => 100,
"Skill_B" => 100,
"Skill_C" => 100,
"Skill_D" => 100,
"Skill_E" => 100,
"Skill_F" => 100,
"Skill_G" => 100,
"Skill_H" => 100,
"Skill_I" => 100,
"Skill_J" => 100,
"Skill_K" => 100,
"Skill_L" => 100,
"Skill_M" => 100,
"Skill_N" => 100,
"Skill_O" => 100,
"Skill_P" => 100,
"Skill_Q" => 100,
"Skill_R" => 100,
"Skill_S" => 100,
"Skill_T" => 100,
"Skill_U" => 100,
"Skill_V" => 100,
"Skill_W" => 100,
"Skill_X" => 100,
"Skill_Y" => 100,
"Skill_Z" => 100,
"Skill_Empty" => 1 # Do not change
}
# The Maximum xp in a skill that can be reached, must be higher
# than 1
# Skill => _MAXXP_
$Skill_Max_Xp = {
"Skill_A" => 2000000000,
"Skill_B" => 2000000000,
"Skill_C" => 2000000000,
"Skill_D" => 2000000000,
"Skill_E" => 2000000000,
"Skill_F" => 2000000000,
"Skill_G" => 2000000000,
"Skill_H" => 2000000000,
"Skill_I" => 2000000000,
"Skill_J" => 2000000000,
"Skill_K" => 2000000000,
"Skill_L" => 2000000000,
"Skill_M" => 2000000000,
"Skill_N" => 2000000000,
"Skill_O" => 2000000000,
"Skill_P" => 2000000000,
"Skill_Q" => 2000000000,
"Skill_R" => 2000000000,
"Skill_S" => 2000000000,
"Skill_T" => 2000000000,
"Skill_U" => 2000000000,
"Skill_V" => 2000000000,
"Skill_W" => 2000000000,
"Skill_X" => 2000000000,
"Skill_Y" => 2000000000,
"Skill_Z" => 2000000000,
"Skill_Empty" => 1 # Do not change
}
# Default Skill Table
# Level => _XP_
$Skill_Xp_Table = {
1 => 0, 31 => 14833, 61 => 302288, 91 => 5902831,
2 => 83, 32 => 16456, 62 => 333804, 92 => 6517253,
3 => 174, 33 => 18247, 63 => 368599, 93 => 7195629,
4 => 276, 34 => 20224, 64 => 407015, 94 => 7944614,
5 => 388, 35 => 22406, 65 => 449428, 95 => 8771558,
6 => 512, 36 => 24815, 66 => 496254, 96 => 9684577,
7 => 650, 37 => 27473, 67 => 547953, 97 => 10692629,
8 => 801, 38 => 30408, 68 => 605032, 98 => 11805606,
9 => 969, 39 => 33648, 69 => 668051, 99 => 13034431,
10 => 1154, 40 => 37224, 70 => 737627, 100 => 14391160,
11 => 1358, 41 => 41171, 71 => 814445, 101 => 15889109,
12 => 1584, 42 => 45529, 72 => 899257, 102 => 17542976,
13 => 1833, 43 => 50339, 73 => 992895, 103 => 19368992,
14 => 2107, 44 => 55649, 74 => 1096278, 104 => 23611006,
15 => 2411, 45 => 61512, 75 => 1210421, 105 => 23611006,
16 => 2746, 46 => 67983, 76 => 1336443, 106 => 26068632,
17 => 3115, 47 => 75127, 77 => 1475581, 107 => 28782069,
18 => 3523, 48 => 83014, 78 => 1629200, 108 => 31777943,
19 => 3973, 49 => 91721, 79 => 1798808, 109 => 35085654,
20 => 4470, 50 => 101333, 80 => 1986068, 110 => 38737661,
21 => 5018, 51 => 111945, 81 => 2192818, 111 => 42769801,
22 => 5624, 52 => 123660, 82 => 2421087, 112 => 47221641,
23 => 6291, 53 => 136594, 83 => 2673114, 113 => 52136869,
24 => 7028, 54 => 150872, 84 => 2951373, 114 => 57563718,
25 => 7842, 55 => 166636, 85 => 3258594, 115 => 63555443,
26 => 8740, 56 => 184040, 86 => 3597792, 116 => 70170840,
27 => 9730, 57 => 203254, 87 => 3972294, 117 => 77474828,
28 => 10824, 58 => 224466, 88 => 4385776, 118 => 85539082,
29 => 12031, 59 => 247886, 89 => 4842295, 119 => 94442737,
30 => 13363, 60 => 273742, 90 => 5346332, 120 => 104273167, }
end
end