Vlue's Paper Dolls - Changing Equipment with events

● ARCHIVED · READ-ONLY
Started by Mawichan 4 posts View original ↗
  1. Hi! I'm using this really cool script by Vlue - Paper Dolls (<----rgss3 script)
    It works well as is, but I noticed the visual changes only occur after I either open the menu scene or send the actor to another map. The problem with this is that I evented a character creator that changes the actor's equipment with the Change Equipment command. At that point the player is not meant to open the menu scene/equipment scene or exit the area until they're done customizing the character.
    As things are now on playtests, the character remains naked and the player won't know what the clothes are supposed to look like until they press the "done" button, and their character is loaded on the next map, fully clothed.

    I hope I managed to explain my problem properly and briefly enough. Any idea, comment, or suggestion is greatly appreciated and needed. Thank you for reading this and have a good day!
  2. Insert this snippet below Vlue's script:
    Spoiler
    Code:
    class Game_Character < Game_CharacterBase
     
      unless method_defined?('actor')
        attr_accessor :actor
      end
    
    end
    
    class Game_Actor < Game_Battler
     
      attr_accessor :force_refresh
     
      alias fix_eqvis4311 change_equip
      def change_equip(*args)
        fix_eqvis4311(*args)
        @firce_refresh = true
      end
     
      alias fix_eqvis8881 release_unequippable_items
      def release_unequippable_items(*args)
        fix_eqvis8881(*args)
        @force_refresh = true
      end
     
    end
    
    class Sprite_Character
     
      alias fix_eqvis9927 graphic_changed?
      def graphic_changed?
        if @character.actor && @character.actor.force_refresh
          @character.actor.force_refresh = false
          return true
        end
        return fix_eqvis9927
      end
     
    end
    This should fix your issue.
  3. Indeed! Works like a charm :D
    Thank you very much~
  4. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.