# Use the Following in a Conditional Branch Script Call
# check_if_nothing_equipped( actor_id )
# Replacing Actor_ID with the actor you want to use this check on.
# Actor 1 would be Eric and Actor 2 would be Natalie, etc.
class Game_Interpreter
def check_if_nothing_equipped( actor_id )
return false unless actor_id.is_a?(Integer)
actor = $game_actors[actor_id]
return false unless actor
has_equipped = false
for i in 0..(actor.equip_slots.size - 1)
has_equipped = true if actor.equips[i]
end
return !has_equipped
end
end
요 스크립트가 장비를 아무것도 끼지 않았는지 체크해주는 스크립트 같은데요ㅠ...
장비를 아무것도 끼지않았을때 액터의 그래픽을 변경해주는 스크립트로 활용하려면
어느부분을 만져야 할까요 ㅠ
기초적인 루비 지식은 공부했는데 조합이 잘 안되네요 후아..