장비를 아무것도 끼지 않았을 때 액터의 그래픽 변경 스크립트 질문이요ㅠㅠ!

by 셩해요 posted Jun 15, 2017
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

     # 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

 

요 스크립트가 장비를 아무것도 끼지 않았는지 체크해주는 스크립트 같은데요ㅠ...

 

장비를 아무것도 끼지않았을때 액터의 그래픽을 변경해주는 스크립트로 활용하려면

어느부분을 만져야 할까요 ㅠ

기초적인 루비 지식은 공부했는데 조합이 잘 안되네요 후아..


Articles

1 2 3 4 5 6 7 8 9 10