Advertisement
dsiver144

Class Skin/System Add-on

Aug 5th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # * Class Skin/System Add-on
  3. # dsiver144
  4. # re-activate common event of class's current skin
  5. # - Put this below all of card skin script.
  6. #-------------------------------------------------------------------------------
  7. class Scene_ClassChoosing
  8. #-------------------------------------------------------------------------
  9. # * new method: on_class_confirm_ok
  10. #-------------------------------------------------------------------------
  11. def on_class_confirm_ok
  12. @window_confirm.close
  13. @window_confirm.deactivate
  14. while @sprite_black.opacity > 0
  15. @sprite_black.opacity -= 5
  16. Graphics.update
  17. @window_confirm.update
  18. end
  19. if $game_system.current_class
  20. class_data = CLASSES[$game_system.current_class]
  21. $game_switches[class_data[:switch_id]] = false
  22. end
  23. $game_system.current_class = @window_classcommand.current_class_id
  24. class_data = CLASSES[$game_system.current_class]
  25. $game_switches[class_data[:switch_id]] = true
  26. $game_actors[1].change_class(class_data[:class_id])
  27. $game_system.current_class = @window_classcommand.current_class_id
  28. @window_classcommand.activate
  29. deck_to_coll
  30. # --- Addtional to Class Skin System -------
  31. class_id = $game_system.current_class
  32. skin_id = $game_system.leader_current_card_skin[class_id]
  33. skin_data = DSIVER144::CARD_SKIN_SYSTEM::LEADER_SKINS[class_id][skin_id]
  34. $game_switches[skin_data[:switch_id]] = true
  35. $game_temp.reserve_common_event(skin_data[:common_ev_id])
  36. # ------------------------------------------
  37. SceneManager.goto(Scene_Deck)
  38. end
  39. end # Scene_ClassChoosing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement