Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # * Card Skin System Addtional Script Calls
- # by dsiver144
- # -----------------------------------------------------------------------------
- # has_card_skin_unlocked?(skill_id,skin_id)
- # - Check if player has "skin_id" skin of "skill_id" card unlocked.
- # has_class_skin_unlocked?(class_id, skin_id)
- # -> Check if player has "skin_id" skin of "class_id" class unlocked.
- # has_card_skin_equipped?(skill_id, skin_id)
- # -> Check if player has "skin_id" skin of "skill_id" card equipped.
- # has_class_skin_equipped?(class_id, skin_id)
- # -> Check if player has "skin_id" skin of "class_id" class equipped.
- # -----------------------------------------------------------------------------
- # eg: has_class_skin_equipped?(1,1)
- # -> Check if player equipped skin #1 (Earth Fairy) for Terra Mage Class.
- # has_card_skin_equipped?(28,1)
- # -> Check if player equipped skin #1 for Earth Throw card.
- #===============================================================================
- class Game_Interpreter
- #--------------------------------------------------------------------------
- # * new method: unlock_card_skin
- #--------------------------------------------------------------------------
- def has_card_skin_unlocked?(skill_id, skin_id)
- return $game_system.card_skins[skill_id].include?(skin_id)
- end
- #--------------------------------------------------------------------------
- # * new method: unlock_class_skin
- #--------------------------------------------------------------------------
- def has_class_skin_unlocked?(class_id, skin_id)
- return $game_system.leader_card_skins[class_id].include?(skin_id)
- end
- #--------------------------------------------------------------------------
- # * new method: has_card_skin_equipped?
- #--------------------------------------------------------------------------
- def has_card_skin_equipped?(skill_id, skin_id)
- return false if has_card_skin_unlocked?(skill_id, skin_id) == false
- return $game_system.current_card_skin[skill_id] == skin_id
- end
- #--------------------------------------------------------------------------
- # * new method: has_class_skin_equipped?
- #--------------------------------------------------------------------------
- def has_class_skin_equipped?(class_id, skin_id)
- return false if has_class_skin_unlocked?(class_id, skin_id) == false
- return $game_system.leader_current_card_skin[class_id] == skin_id
- end
- end # Game_Interpreter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement