I'm using these 2 scripts together. They seem to be compatible except for one small problem.
I had added Guillaume777's Multi-Slot script simply to give myself an extra equipment slot (called 'Spellbook').
Then using Blizzard's EQ Skills script, I proceeded to try to set one of my Spellbooks to give me...obviously, some spells.
Problem is...it won't give me the skills.
Blizzard's EQ Skills Script notes what needed to be edited for that to work, so I did that. Seemed simple enough.
Unfortunately it won't work.
I'll post the EQ Skills script, since it's rather small, and explain what I tried to edit.
#==============================================================================
# EQ Skills by Blizzard
# Version 2.0
# Date: 28.05.2006
# v2.0 Date: 13.06.2006
#
# Recent upgrades:
#
# v2.0:
# - Fixed bug, that appeared, when more equipment parts had the same skill
# - New multi-skill support
#
#
# Compatibility:
#
# 99% chance of full compatibility with SDK, not tested altough. WILL cause
# incompatibility with custom equipment scripts but there are instructions how
# to configure the script. Please note, that this script depends on the layout
# of your Equip Screen and needs to be put UNDER a CMS script if you are using
# one. Also there needs to be something changed if you are using another script,
# that uses dummy elements. Add your dummy element IDs to the triple commented
# array (###).
#
#
# Instructions:
#
# - Configuration:
# Press CRTL+SHIFT+F and type into the window: FIND_THE_DATABASE
# You can jump now to the database directly. There are more instructions.
# Also change $eq_element = XXX, where XXX is the ID number of the dummy
# element, that determines, which skill is bound to the equipment. Be sure to
# give that element
#
# - Merge with a Custom Equipment System:
# The lines, that need to be edited are double commented with ##. If you are no
# at least a bit of experienced scripter, it may be better to ask somebody else
# to perform the edit for you. Please note, that the person, who is going to
# edit this script needs the custom equipment script for reference.
#
#
# NOTE:
# DO NOT USE EQ SKILLS AS NORMAL SKILLS! THE SYSTEM WORKS WITH TEMPORARY
# LEARNING AND FORGETTING THE EQ SKILL. IF YOU LET YOUR CHARACTER LEARN AN EQ
# SKILL BY NORMAL MEANS, HE WILL FORGET IT AFTER HE UNEQUIPS THE APPROPRIATE
# EQUIPMENT!
#
#
# If you find any bugs, please report them here:
# http://www.chaosproject.co.nr/index.php?showtopic=157
# or send me an e-mail:
# boris_blizzard@yahoo.de
#
#==============================================================================
$eq_element = 17 # YOUR EQ ELEMENT ID
#==============================================================================
# Game_Battler
#==============================================================================
class Game_Battler
def elements_correct(element_set)
dummy_elements = [$eq_element] ### ADD YOUR DUMMY ELEMENT IDS/MACROS HERE
### AND SEPARATE THEM WITH KOMMAS
elements = element_set.clone
if elements == []
return 100
end
multiplier = 0
size = 0
for i in elements
next if dummy_elements.include?(i)
multiplier += self.element_rate(i)
size += 1
end
if size == 0
return 100
end
return multiplier/size
end
end
#==============================================================================
# Window_EquipRight
#==============================================================================
class Window_EquipRight
alias dispose_eq_later dispose
def dispose
id = []
id.push(@actor.weapon_id) ## THIS PART HERE NEEDS TO BE EDITED IF A CUSTOM
id.push(@actor.armor1_id) ## NUMBER OF EQUIPMENT PART IS USED. IN THAT CASE
id.push(@actor.armor2_id) ## IT IS ENOUGH TO ADD MORE OF THESE COMMANDS
id.push(@actor.armor3_id) ## HERE. ALSO BE SURE TO USE THE CORRECT NAMES
id.push(@actor.armor4_id) ## FOR THE IDS e.g. "armor3_id"
database(id)
for i in 0...$data_skills.size
skill = $data_skills
unless skill == nil
if skill.element_set.include?($eq_element)
@actor.forget_skill(skill.id)
end
end
end
temp = []
for i in @skill_ids
@actor.learn_skill(i)
end
dispose_eq_later
end
#===============================================================================
#
# FIND_THE_DATABASE
#
# This is your equipment database. To add one or more new EQ skills to a weapon
# is very simple. Add another "when"-branch in the script snipplet below
# (they have comments next to it). Configure it like this template:
#
# when "weapon ID"
# @skill_ids.push(EQ_SKILL_ID1)
# @skill_ids.push(EQ_SKILL_ID2)
#
# The same works for armors:
#
# when "armor_ID"
# @skill_ids.push(EQ_SKILL_ID1)
# @skill_ids.push(EQ_SKILL_ID2)
#
# Please note, that you need to configure this for every equipment part
# separately. That means you need to set it seperately for shields, armors,
# helmets and accessories. This also goes for custom equipment additions.
#
# The lines are commented below so you should have no problems with the script.
#
#===============================================================================
def database(id)
@skill_ids = []
case id[0]
when 6 # weapon ID
@skill_ids.push(87) # EQ skill ID
end
case id[1]
when 34 # armor1 ID
@skill_ids.push(1) # EQ skill ID
@skill_ids.push(25) # EQ skill ID
end
case id[2]
when 35 # armor2 ID
@skill_ids.push(15) # EQ skill ID
end
case id[3]
when 36 # armor3 ID
@skill_ids.push(2) # EQ skill ID
@skill_ids.push(25) # EQ skill ID
end
case id[4] ## add more ids if you are using a custom number of equip parts
when 37 # armor4 ID
@skill_ids.push(10) # EQ skill ID
end
case id[5] ## add more ids if you are using a custom number of equip parts
when 39 # armor5 ID
@skill_ids.push(86) # EQ skill ID
end
end
#===============================================================================
# END_OF_DATABASE
#===============================================================================
end
And the very end, you can see that i had tried to give armor 39. (The Spellbook) a single spell. It didn't work.
In the # Window_EquipRight part. it explains that you need to add an extra string to that section to make it work.
So I proceeded to add
id.push(@actor.armor5_id)
just under
id.push(@actor.armor4_id)
When equipping the item. It causes a crash.
I'm at a loss as to what i'm supposed to do now. So i'm asking for some assistance here.
Thanks in advance.
I had added Guillaume777's Multi-Slot script simply to give myself an extra equipment slot (called 'Spellbook').
Then using Blizzard's EQ Skills script, I proceeded to try to set one of my Spellbooks to give me...obviously, some spells.
Problem is...it won't give me the skills.
Blizzard's EQ Skills Script notes what needed to be edited for that to work, so I did that. Seemed simple enough.
Unfortunately it won't work.
I'll post the EQ Skills script, since it's rather small, and explain what I tried to edit.
#==============================================================================
# EQ Skills by Blizzard
# Version 2.0
# Date: 28.05.2006
# v2.0 Date: 13.06.2006
#
# Recent upgrades:
#
# v2.0:
# - Fixed bug, that appeared, when more equipment parts had the same skill
# - New multi-skill support
#
#
# Compatibility:
#
# 99% chance of full compatibility with SDK, not tested altough. WILL cause
# incompatibility with custom equipment scripts but there are instructions how
# to configure the script. Please note, that this script depends on the layout
# of your Equip Screen and needs to be put UNDER a CMS script if you are using
# one. Also there needs to be something changed if you are using another script,
# that uses dummy elements. Add your dummy element IDs to the triple commented
# array (###).
#
#
# Instructions:
#
# - Configuration:
# Press CRTL+SHIFT+F and type into the window: FIND_THE_DATABASE
# You can jump now to the database directly. There are more instructions.
# Also change $eq_element = XXX, where XXX is the ID number of the dummy
# element, that determines, which skill is bound to the equipment. Be sure to
# give that element
#
# - Merge with a Custom Equipment System:
# The lines, that need to be edited are double commented with ##. If you are no
# at least a bit of experienced scripter, it may be better to ask somebody else
# to perform the edit for you. Please note, that the person, who is going to
# edit this script needs the custom equipment script for reference.
#
#
# NOTE:
# DO NOT USE EQ SKILLS AS NORMAL SKILLS! THE SYSTEM WORKS WITH TEMPORARY
# LEARNING AND FORGETTING THE EQ SKILL. IF YOU LET YOUR CHARACTER LEARN AN EQ
# SKILL BY NORMAL MEANS, HE WILL FORGET IT AFTER HE UNEQUIPS THE APPROPRIATE
# EQUIPMENT!
#
#
# If you find any bugs, please report them here:
# http://www.chaosproject.co.nr/index.php?showtopic=157
# or send me an e-mail:
# boris_blizzard@yahoo.de
#
#==============================================================================
$eq_element = 17 # YOUR EQ ELEMENT ID
#==============================================================================
# Game_Battler
#==============================================================================
class Game_Battler
def elements_correct(element_set)
dummy_elements = [$eq_element] ### ADD YOUR DUMMY ELEMENT IDS/MACROS HERE
### AND SEPARATE THEM WITH KOMMAS
elements = element_set.clone
if elements == []
return 100
end
multiplier = 0
size = 0
for i in elements
next if dummy_elements.include?(i)
multiplier += self.element_rate(i)
size += 1
end
if size == 0
return 100
end
return multiplier/size
end
end
#==============================================================================
# Window_EquipRight
#==============================================================================
class Window_EquipRight
alias dispose_eq_later dispose
def dispose
id = []
id.push(@actor.weapon_id) ## THIS PART HERE NEEDS TO BE EDITED IF A CUSTOM
id.push(@actor.armor1_id) ## NUMBER OF EQUIPMENT PART IS USED. IN THAT CASE
id.push(@actor.armor2_id) ## IT IS ENOUGH TO ADD MORE OF THESE COMMANDS
id.push(@actor.armor3_id) ## HERE. ALSO BE SURE TO USE THE CORRECT NAMES
id.push(@actor.armor4_id) ## FOR THE IDS e.g. "armor3_id"
database(id)
for i in 0...$data_skills.size
skill = $data_skills
unless skill == nil
if skill.element_set.include?($eq_element)
@actor.forget_skill(skill.id)
end
end
end
temp = []
for i in @skill_ids
@actor.learn_skill(i)
end
dispose_eq_later
end
#===============================================================================
#
# FIND_THE_DATABASE
#
# This is your equipment database. To add one or more new EQ skills to a weapon
# is very simple. Add another "when"-branch in the script snipplet below
# (they have comments next to it). Configure it like this template:
#
# when "weapon ID"
# @skill_ids.push(EQ_SKILL_ID1)
# @skill_ids.push(EQ_SKILL_ID2)
#
# The same works for armors:
#
# when "armor_ID"
# @skill_ids.push(EQ_SKILL_ID1)
# @skill_ids.push(EQ_SKILL_ID2)
#
# Please note, that you need to configure this for every equipment part
# separately. That means you need to set it seperately for shields, armors,
# helmets and accessories. This also goes for custom equipment additions.
#
# The lines are commented below so you should have no problems with the script.
#
#===============================================================================
def database(id)
@skill_ids = []
case id[0]
when 6 # weapon ID
@skill_ids.push(87) # EQ skill ID
end
case id[1]
when 34 # armor1 ID
@skill_ids.push(1) # EQ skill ID
@skill_ids.push(25) # EQ skill ID
end
case id[2]
when 35 # armor2 ID
@skill_ids.push(15) # EQ skill ID
end
case id[3]
when 36 # armor3 ID
@skill_ids.push(2) # EQ skill ID
@skill_ids.push(25) # EQ skill ID
end
case id[4] ## add more ids if you are using a custom number of equip parts
when 37 # armor4 ID
@skill_ids.push(10) # EQ skill ID
end
case id[5] ## add more ids if you are using a custom number of equip parts
when 39 # armor5 ID
@skill_ids.push(86) # EQ skill ID
end
end
#===============================================================================
# END_OF_DATABASE
#===============================================================================
end
And the very end, you can see that i had tried to give armor 39. (The Spellbook) a single spell. It didn't work.
In the # Window_EquipRight part. it explains that you need to add an extra string to that section to make it work.
So I proceeded to add
id.push(@actor.armor5_id)
just under
id.push(@actor.armor4_id)
When equipping the item. It causes a crash.
I'm at a loss as to what i'm supposed to do now. So i'm asking for some assistance here.
Thanks in advance.