- Joined
- Jul 5, 2018
- Messages
- 125
- Reaction score
- 5
- First Language
- English
- Primarily Uses
- RMVXA
Anyone know where I can get those images?
That's actually a line I forgot to comment out from the script (it was a compatibility edit for a custom menu I made). My bad!"unitialized connstant Sprite_PearlTool::ABSScene" on line 570.
class Game_Interpreter
def set_skill_n(actor, sid, slot)
return if actor.nil?
skill = $data_skills[sid]
return unless actor.skills.include?(skill)
case slot
when 1; actor.assigned_skill = skill
when 2; actor.assigned_skill2 = skill
when 3; actor.assigned_skill3 = skill
when 4; actor.assigned_skill4 = skill
end
end
def set_item_n(actor, iid, slot)
return if actor.nil?
item = $data_items[iid]
return unless has_item?(item)
case slot
when 1; actor.assigned_item = item
when 2; actor.assigned_item2 = item
end
end
end
=begin
actor = $game_party.leader
set_skill_n(actor, 25, 1)
This sets the 1st skill to Skill 25 for the party leader.
actor = $game_party.members[1]
set_item_n(actor, 140, 2)
This sets the 2nd item to Item 140 for the second party member.
actor = $game_actors[15]
set_skill_n(actor, 271, 4)
This sets the 4th skill to Skill 271 for Actor 15.
=end