Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scene_Equip
- def bond_armor(item)
- # Duplicate Object
- new_item = item.dup
- # Set the id to the last armor index + 1
- new_item.id = $data_armors.size
- # Bond the item
- new_item.bonded_actor_id = @actor.id
- # Change the name if you want
- new_item.name = @actor.name + "'s " + item.name
- $data_armors[new_item.id] = new_item
- return new_item
- end
- def bond_weapon(item)
- new_item = item.dup
- new_item.id = $data_weapons.size
- new_item.bonded_actor_id = @actor.id
- new_item.name = @actor.name + "'s " + item.name
- $data_weapons[new_item.id] = new_item
- return new_item
- end
- end
- # create a new piece for this script
- module RPG
- class Weapon
- attr_accessor :bonded_actor_id
- end
- class Armor
- attr_accessor :bonded_actor_id
- end
- end
- #add these to the scene_title script
- $data_armors[1000] = nil
- $data_weapons[1000] = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement