Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  2. #
  3. #Change character description
  4. #
  5. #★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  6.  
  7. module DescriptionChange
  8.   CHANGE = [
  9.   #★Setting
  10.   #1st Array
  11.   [
  12.   1, # Used to change character description
  13.   3, # Switch used to change character description
  14.  
  15.   #When using a control character ↓, add two \ as shown in the example.
  16.   #First line of character description after change
  17.   "You can change the \\C[2]description like this\\c[0]. \\n[1]",
  18.   #Changed character description 2nd line
  19.   "If it's too long, description will be cut off."
  20.   ],
  21.   #Second array (If you want to change more, copy and use the array)
  22.   [
  23.   1,
  24.   3,
  25.   "If there are multiple arrays, the array above takes priority.",
  26.   "In the sample project, the message ↑ should flow."
  27.   ]
  28.   #★End of setting
  29.   ]
  30. end
  31.  
  32. #==============================================================================
  33. # ■ Game_Actor
  34. #------------------------------------------------------------------------------
  35. # Class for Game_Actors ($game_actors)
  36. # Referenced by the Game_Party ($game_party)
  37. #==============================================================================
  38. class Game_Actor < Game_Battler
  39.   #--------------------------------------------------------------------------
  40.   # ● Get description
  41.   #--------------------------------------------------------------------------
  42.   alias description_change description
  43.   def description
  44.     DescriptionChange::CHANGE.each do |des|
  45.       return des[2] + "\n" + des[3] if actor.id == des[0] && $game_switches[des[1]]
  46.     end
  47.     description_change
  48.   end
  49. end