Advertisement
roninator2

New Game Plus compatibility for Doctor Todd Difficulty

Dec 7th, 2024
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.96 KB | None | 0 0
  1. =begin
  2. ===============================================================================
  3.  DT's Difficulty New Game Plus Add-On v1.0 (13/12/2019)
  4. -------------------------------------------------------------------------------
  5.  Created By: Roninator2
  6.  Credit: Shadowmaster/Shadowmaster9000/Shadowpasta
  7.  (www.crimson-castle.co.uk)
  8.  Special Thanks: Yanfly (For Yanfly's New Game Plus)
  9.  
  10. ===============================================================================
  11.  Information
  12. -------------------------------------------------------------------------------
  13.  This script is an add-on for DT's Difficulty script and Yanfly's New
  14.  Game Plus script which allows you to save the Difficulty to
  15.  be carried over to a new save file.
  16.  
  17. ===============================================================================
  18.  How to Use
  19. -------------------------------------------------------------------------------
  20.  Place this script under Materials and below Yanfly's New Game Plus.
  21.  
  22. ===============================================================================
  23.  Required
  24. -------------------------------------------------------------------------------
  25.  DT's Difficulty
  26.  http://rmrk.net/index.php?topic=46302.0
  27.  
  28.  Yanfly's New Game Plus (which also requires Yanfly's Save Engine)
  29.  (http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-save-engine/new-game/)
  30.  
  31.  This script is intended to be an add-on for DT's Difficulty and Yanfly's New
  32.  Game Plus. This script is not a standalone script.
  33.  
  34. ===============================================================================
  35. =end
  36. $imported = {} if $imported.nil?
  37. $imported["TODDDIFFICULTYNGP"] = true
  38.  
  39. module TODDDIFFICULTY_NGP
  40.  
  41. #==============================================================================
  42. # ** Carry Over Settings
  43. #------------------------------------------------------------------------------
  44. #==============================================================================
  45.  
  46.   Carry_Over_Difficulty = true
  47.  
  48. end
  49.  
  50. #==============================================================================
  51. # ** DataManager
  52. #------------------------------------------------------------------------------
  53. #  This module manages the database and game objects. Almost all of the
  54. #  global variables used by the game are initialized by this module.
  55. #==============================================================================
  56.  
  57. module DataManager
  58.   #--------------------------------------------------------------------------
  59.   # * Alias: ngp_reset_party
  60.   #--------------------------------------------------------------------------
  61.   class <<self; alias todddifficulty_ngp_reset_party ngp_reset_party; end
  62.   def self.ngp_reset_party
  63.     ngp_difficulty_level = $game_system.todd_difficulty
  64.     todddifficulty_ngp_reset_party
  65.     $game_system.todd_difficulty = ngp_difficulty_level if TODDDIFFICULTY_NGP::Carry_Over_Difficulty
  66.         if $game_system.todd_difficulty < 3
  67.             $game_system.todd_difficulty += 1
  68.         end
  69.   end
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement