This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
i.... uh... threw this together in 3 minutes cause some dude wanted it.. so i decided to post it here.. i know it's not done the best.. but hey. what can you do.. i'm a n00b.. anyway...
go into Scene_Equip... def update_item... right under if Input.trigger?(Input::C) paste this in there
part 1
Code:
actor = $game_actors[@actor.id]
item = @item_window.item
item2 = @right_window.item
#equip gain skills start
#begining of weapons
if @right_window.index == 0
if item.is_a?(RPG::Weapon)
for i in $game_party.weapon_equip_skill[item2.id]
actor.forget_skill(i)
end
unless item.id == 0 || nil
for i in $game_party.weapon_equip_skill[item.id]
actor = $game_actors[@actor.id]
actor.learn_skill(i)
end
end
else
for i in $game_party.weapon_equip_skill[item2.id]
actor.forget_skill(i)
end
end
end
#end of weapons
#begining of armors
if @right_window.index >= 1
if item.is_a?(RPG::Armor)
for i in $game_party.armor_equip_skill[item2.id]
actor.forget_skill(i)
end
unless item.id == 0 || nil
for i in $game_party.armor_equip_skill[item.id]
actor = $game_actors[@actor.id]
actor.learn_skill(i)
end
end
else
for i in $game_party.armor_equip_skill[item2.id]
actor.forget_skill(i)
end
end
end
#end of armors
#equip gain skills end
and then make a new thing and put this in there
part 2
Code:
#==================================
# Equip weapons and armors to gain skills... halfassly done by makeamidget
# requested by some dude who's name escapes me at the moment...
# anyway... like i said half assedly done...
#==================================
# to decide on the skills that will be learnt just go down to where
# you see somthing along the lines of @weapon_equip_skill[1] = [1,2,3]
# the way it is set up is @weapon_equip_skill[id of weapon] =[skill ids, multiple ones seperated by commas]
# the same thing applies to the armor sides... anyway.. enjoy the
# halfassedness
#==================================
class Game_Party
attr_reader :weapon_equip_skill
attr_reader :armor_equip_skill