Vampire : The Masquerade Character Sheet

Vampire : The Masquerade Character Sheet
Version: 2.0
By: LudicusMaximus aka Ludicus

Introduction

Remember those pen'n'paper RPG games,where every character had all his abilities written on a sheet of paper?This is what this Status Scene emulates,but with Vampire:The Masquerade stats.It can be easily modified.
This is currently only for 3 actors,but it can be easily modified with a little scripting knowledge.

Demo

Screenshots

Content Hidden Spoiler
Image
Image

Script

1.0 Spoiler
  1. #============================================================================
  2. # ** (V:TM)Character Sheet
  3. #----------------------------------------------------------------------------
  4. # by Ludicus Maximus aka Ludicus aka Qwerty234
  5. # Version 1.0
  6. # 16 June 2009
  7. #----------------------------------------------------------------------------
  8. #----------------------------------------------------------------------------
  9. #
  10. #----------------------------------------------------------------------------
  11. # Notes:
  12. #
  13. # -Is obviously not compatible with other Custom Stat Scenes,but can be probably
  14. #    worked around.
  15. # -The script needs minor scripting knowledges to be properly set up (if you
  16. #    don't want an Vampire:The Masquerade Character Sheet, use more than 3
  17. #    actors or want other stats)
  18. #----------------------------------------------------------------------------
  19. #
  20. # Credits and Thanks:
  21. #
  22. # -God,for creating life
  23. # -White Wolf
  24. # -Me,aka Ludicus Maximus/Ludicus/Qwerty234.
  25. # -Ccoa,for her window tutorial,and the defaul scripts,which taught me basically
  26. #    all I know about RGSS.
  27. #----------------------------------------------------------------------------
  28. #Please give credit to me when using this script,preferably as Ludicus Maximus
  29. #----------------------------------------------------------------------------
  30.  
  31.  
  32. #========================================
  33. #Adds more methods in Window_Base
  34. #========================================
  35.  
  36. class Window_Base
  37.  
  38.   #This will obviously draw the item name,but without the icon,is used in
  39.   # Equip_Window
  40.   def draw_item_name_only(item, x, y)
  41.     if item == nil
  42.       return
  43.     end
  44.    self.contents.font.color = crisis_color
  45.    self.contents.draw_text(x + 28, y, 212, 32, item.name)
  46.    self.contents.font.color = normal_color
  47.  end
  48.  
  49.         #This will draw an face,is used in Sprite_Window
  50. def draw_actor_face(actor, x, y)
  51.     bitmap = RPG::Cache.picture("Face/" + actor.character_name)
  52.     self.contents.blt(x, y, bitmap, Rect.new(0,0,96,96))
  53.   end
  54.  
  55. end
  56.  
  57.  
  58.  
  59. #==============================================================================
  60. # ** Actor_Info
  61. #------------------------------------------------------------------------------
  62. #  This window displays the actor's info (name, clan(class), generation
  63. #(a variable)
  64. #==============================================================================
  65.  
  66.  
  67.  
  68. class Actor_Info < Window_Base
  69.   #--------------------------------------------------------------------------
  70.   # * Object Initialization
  71.   #     actor : actor
  72.   #     class : class
  73.   #     generation
  74.   #--------------------------------------------------------------------------
  75.   def initialize(actor)
  76.     super(0, 0, 156, 130)
  77.     self.contents = Bitmap.new(width - 32, height - 32)
  78.     @actor = actor
  79.     refresh
  80.     end
  81.  
  82.  
  83.  
  84.   #--------------------------------------------------------------------------
  85.   # * Refresh
  86.   #--------------------------------------------------------------------------
  87.   def refresh
  88.    
  89.     self.contents.clear    
  90.     self.contents.draw_text(0, 0, 50, 32, "Name: ")
  91.     draw_actor_name(@actor, 57,0)
  92.     self.contents.draw_text(0, 36, 50, 32, "Clan: ")
  93.     draw_actor_class(@actor, 56,36)
  94.     self.contents.draw_text(0, 72, 50, 32, "Gen: ")
  95.    
  96. #=================================================
  97. #   START GENERATION EDIT
  98. #=================================================
  99. if @actor.index == 0  #if actor index is 1,aka the first actor in the database
  100.   self.contents.draw_text(56, 72, 50, 32, $game_variables[1].to_s)
  101.     elsif @actor.index == 1 # if actor index is 2
  102.      self.contents.draw_text(56, 72, 50, 32, $game_variables[2].to_s)
  103.    elsif @actor.index == 3  #If actor index is 3
  104.        self.contents.draw_text(56, 72, 50, 32, $game_variables[3].to_s)
  105.        #And so on and so on...
  106.        #Copy-paste if you need more actors.
  107.      end #if
  108.      end #def
  109.  
  110. #================================
  111. # END NAME WINDOW
  112. #================================
  113.      
  114. end #class
  115.  
  116.  
  117.  
  118. #==============================================================================
  119. # ** Physical_Window
  120. #------------------------------------------------------------------------------
  121. #  This window displays physical stats (strength,dexterity,stamina)
  122. #==============================================================================
  123.  
  124. class Physical_Window < Window_Base
  125.   #--------------------------------------------------------------------------
  126.   # * Object Initialization
  127.   #--------------------------------------------------------------------------
  128.  
  129.  def initialize(actor)
  130.     super(0, 60, 156, 100)
  131.     self.contents = Bitmap.new(width - 32, height - 32)
  132.     @actor = actor
  133.   refresh
  134.     end
  135.  
  136.   #--------------------------------------------------------------------------
  137.   # * Refresh
  138.   #--------------------------------------------------------------------------
  139.  
  140. def refresh
  141.     self.contents.clear    
  142.     self.contents.draw_text(0, 0, 50, 32, "STR: ")      
  143.     self.contents.draw_text(0, 22, 50, 32, "DEX: ")
  144.     self.contents.draw_text(0, 44, 50, 32, "STA: ")
  145.     #Insert in the brackets the variable for each actor's STR
  146.     @str_a1 = $game_variables [4] # <- for actor 1's strength it's variable 4
  147.     @str_a2 = $game_variables [5]
  148.     @str_a3 = $game_variables [6]
  149.     if @actor.index == 0
  150.       self.contents.draw_text(52, 0, 50, 32, @str_a1.to_s)
  151.       self.contents.font.color = normal_color
  152.      elsif @actor.index == 1
  153.           self.contents.draw_text(52, 0, 50, 32, @str_a2.to_s)
  154.       self.contents.font.color = normal_color
  155.          elsif @actor.index == 2
  156.            self.contents.draw_text(52, 0, 50, 32, @str_a3.to_s)
  157.       self.contents.font.color = normal_color
  158.         end
  159.         self.contents.font.color = disabled_color
  160.         self.contents.draw_text(72, 0, 50, 32, '/5')
  161.         self.contents.font.color = normal_color
  162.     #Insert in the brackets the variable for each actor's STR
  163.     @dex_a1 = $game_variables [7] # <- for actor 1's dexterity it's variable 7  
  164.     @dex_a2 = $game_variables [8]
  165.     @dex_a3 = $game_variables [9]
  166.     if @actor.index == 0
  167.       self.contents.draw_text(52, 22, 50, 32, @dex_a1.to_s)
  168.      elsif @actor.index == 1
  169.         self.contents.draw_text(52, 22, 50, 32, @dex_a2.to_s)
  170.          elsif @actor.index == 2
  171.           self.contents.draw_text(52, 22, 50, 32, @dex_a3.to_s)
  172.        end
  173.        self.contents.font.color = disabled_color
  174.         self.contents.draw_text(72, 22, 50, 32, '/5')
  175.         self.contents.font.color = normal_color
  176.         #Insert in the brackets the variable for each actor's STA
  177.     @sta_a1 = $game_variables [10] # <- for actor 1's stamina it's variable 10
  178.     @sta_a2 = $game_variables [11]
  179.     @sta_a3 = $game_variables [12]
  180.     if @actor.index == 0
  181.       self.contents.draw_text(52, 44, 50, 32, @sta_a1.to_s)
  182.      elsif @actor.index == 1
  183.         self.contents.draw_text(52, 44, 50, 32, @sta_a2.to_s)
  184.          elsif @actor.index == 2
  185.           self.contents.draw_text(52, 44, 50, 32, @sta_a3.to_s)
  186.         end  
  187.         self.contents.font.color = disabled_color
  188.         self.contents.draw_text(72, 44, 50, 32, '/5')
  189.         self.contents.font.color = normal_color
  190.     end
  191.  
  192.  
  193.   end
  194.  
  195.   #==============================================================================
  196. # ** Social_Window
  197. #------------------------------------------------------------------------------
  198. #  This window displays social stats (charisma,manipulation,appearance)
  199. #==============================================================================
  200.  
  201. class Social_Window < Window_Base
  202.   #--------------------------------------------------------------------------
  203.   # * Object Initialization
  204.   #--------------------------------------------------------------------------
  205.  
  206.  def initialize(actor)
  207.     super(0, 123, 156, 100)
  208.     self.contents = Bitmap.new(width - 32, height - 32)
  209.     self.contents.draw_text(0, 0, 50, 32, "CHA: ")      
  210.     self.contents.draw_text(0, 22, 50, 32, "MAN: ")
  211.     self.contents.draw_text(0, 44, 50, 32, "APP: ")
  212.     @actor = actor
  213.     refresh
  214.     end
  215.  
  216.   #--------------------------------------------------------------------------
  217.   # * Refresh
  218.   #--------------------------------------------------------------------------
  219.  
  220. def refresh
  221.     #Insert in the brackets the variable for each actor's CHA
  222.     @cha_a1 = $game_variables [13] # <- for actor 1's charisma it's variable 13
  223.     @cha_a2 = $game_variables [14]
  224.     @cha_a3 = $game_variables [15]
  225.     if @actor.index == 0
  226.       self.contents.draw_text(52, 0, 50, 32, @cha_a1.to_s)
  227.      elsif @actor.index == 1
  228.         self.contents.draw_text(52, 0, 50, 32, @cha_a2.to_s)
  229.          elsif @actor.index == 2
  230.           self.contents.draw_text(52, 0, 50, 32, @cha_a3.to_s)
  231.         end
  232.         self.contents.font.color = disabled_color
  233.         self.contents.draw_text(72, 0, 50, 32, '/5')
  234.         self.contents.font.color = normal_color
  235.     #Insert in the brackets the variable for each actor's MAN
  236.     @man_a1 = $game_variables [16] # <- for actor 1's manipulation it's variable 16  
  237.     @man_a2 = $game_variables [17]
  238.     @man_a3 = $game_variables [18]
  239.     if @actor.index == 0
  240.       self.contents.draw_text(52, 22, 50, 32, @man_a1.to_s)
  241.      elsif @actor.index == 1
  242.         self.contents.draw_text(52, 22, 50, 32, @man_a2.to_s)
  243.          elsif @actor.index == 2
  244.           self.contents.draw_text(52, 22, 50, 32, @man_a3.to_s)
  245.        end
  246.        self.contents.font.color = disabled_color
  247.         self.contents.draw_text(72, 22, 50, 32, '/5')
  248.         self.contents.font.color = normal_color
  249.         #Insert in the brackets the variable for each actor's APP
  250.     @app_a1 = $game_variables [19] # <- for actor 1's appearance it's variable 19
  251.     @app_a2 = $game_variables [20]
  252.     @app_a3 = $game_variables [21]
  253.     if @actor.index == 0
  254.       self.contents.draw_text(52, 44, 50, 32, @app_a1.to_s)
  255.      elsif @actor.index == 1
  256.         self.contents.draw_text(52, 44, 50, 32, @app_a2.to_s)
  257.          elsif @actor.index == 2
  258.           self.contents.draw_text(52, 44, 50, 32, @app_a3.to_s)
  259.         end  
  260.         self.contents.font.color = disabled_color
  261.         self.contents.draw_text(72, 44, 50, 32, '/5')
  262.         self.contents.font.color = normal_color
  263.     end
  264.  
  265.   end
  266.  
  267.  
  268.  
  269.   #==============================================================================
  270. # ** Mental_Window
  271. #------------------------------------------------------------------------------
  272. #  This window displays mental stats (perception,intelligence,wits)
  273. #==============================================================================
  274.  
  275. class Mental_Window < Window_Base
  276.   #--------------------------------------------------------------------------
  277.   # * Object Initialization
  278.   #--------------------------------------------------------------------------
  279.  
  280.  def initialize(actor)
  281.     super(0, 173, 156, 100)
  282.     self.contents = Bitmap.new(width - 32, height - 32)
  283.     self.contents.draw_text(0, 0, 50, 32, "PER: ")      
  284.     self.contents.draw_text(0, 22, 50, 32, "INT: ")
  285.     self.contents.draw_text(0, 44, 50, 32, "WTS: ")
  286.     @actor = actor
  287.     refresh
  288.     end
  289.  
  290.   #--------------------------------------------------------------------------
  291.   # * Refresh
  292.   #--------------------------------------------------------------------------
  293.  
  294. def refresh
  295.     #Insert in the brackets the variable for each actor's PER
  296.     @per_a1 = $game_variables [22] # <- for actor 1's perception it's variable 22
  297.     @per_a2 = $game_variables [23]
  298.     @per_a3 = $game_variables [24]
  299.     if @actor.index == 0
  300.       self.contents.draw_text(52, 0, 50, 32, @per_a1.to_s)
  301.      elsif @actor.index == 1
  302.         self.contents.draw_text(52, 0, 50, 32, @per_a2.to_s)
  303.          elsif @actor.index == 2
  304.           self.contents.draw_text(52, 0, 50, 32, @per_a3.to_s)
  305.         end
  306.         self.contents.font.color = disabled_color
  307.         self.contents.draw_text(72, 0, 50, 32, '/5')
  308.         self.contents.font.color = normal_color
  309.     #Insert in the brackets the variable for each actor's INT
  310.     @int_a1 = $game_variables [25] # <- for actor 1's intelligence it's variable 25  
  311.     @int_a2 = $game_variables [26]
  312.     @int_a3 = $game_variables [27]
  313.     if @actor.index == 0
  314.       self.contents.draw_text(52, 22, 50, 32, @int_a1.to_s)
  315.      elsif @actor.index == 1
  316.         self.contents.draw_text(52, 22, 50, 32, @int_a2.to_s)
  317.          elsif @actor.index == 2
  318.           self.contents.draw_text(52, 22, 50, 32, @int_a3.to_s)
  319.        end
  320.        self.contents.font.color = disabled_color
  321.         self.contents.draw_text(72, 22, 50, 32, '/5')
  322.         self.contents.font.color = normal_color
  323.         #Insert in the brackets the variable for each actor's WTS
  324.     @wts_a1 = $game_variables [28] # <- for actor 1's wits it's variable 28
  325.     @wts_a2 = $game_variables [29]
  326.     @wts_a3 = $game_variables [30]
  327.     if @actor.index == 0
  328.       self.contents.draw_text(52, 44, 50, 32, @wts_a1.to_s)
  329.      elsif @actor.index == 1
  330.         self.contents.draw_text(52, 44, 50, 32, @wts_a2.to_s)
  331.          elsif @actor.index == 2
  332.           self.contents.draw_text(52, 44, 50, 32, @wts_a3.to_s)
  333.         end  
  334.         self.contents.font.color = disabled_color
  335.         self.contents.draw_text(72, 44, 50, 32, '/5')
  336.         self.contents.font.color = normal_color
  337.     end
  338.  
  339.   end
  340.  
  341.  
  342.   #==============================================================================
  343. # ** Humanity_Window
  344. #------------------------------------------------------------------------------
  345. #  This window displays the Humanity stat
  346. #==============================================================================
  347.  
  348. class Humanity_Window < Window_Base
  349.   #--------------------------------------------------------------------------
  350.   # * Object Initialization
  351.   #--------------------------------------------------------------------------
  352.  
  353.  def initialize(actor)
  354.     super(426, 0, 156, 55)
  355.     self.contents = Bitmap.new(width - 32, height - 32)    
  356.     self.contents.draw_text(0, 0, 80, 24, "Humanity: ")
  357.     @actor = actor
  358.     refresh
  359.     end
  360.  
  361.   #--------------------------------------------------------------------------
  362.   # * Refresh
  363.   #--------------------------------------------------------------------------
  364.  
  365. def refresh
  366. #Insert in the brackets the variable for each actor's hum
  367.     @hum_a1 = $game_variables [31] # <- for actor 1's humanity it's variable 31
  368.     @hum_a2 = $game_variables [32]
  369.     @hum_a3 = $game_variables [33]
  370.     if @actor.index == 0
  371.       self.contents.draw_text(70, 0, 50, 25, @hum_a1.to_s)
  372.      elsif @actor.index == 1
  373.         self.contents.draw_text(70, 0, 50, 25, @hum_a2.to_s)
  374.          elsif @actor.index == 2
  375.           self.contents.draw_text(70, 0, 50, 25, @hum_a3.to_s)
  376.         end  
  377.         self.contents.font.color = disabled_color
  378.         self.contents.draw_text(90, 0, 50, 25, '/10')
  379.         self.contents.font.color = normal_color
  380.         end
  381.  
  382.  
  383.   end
  384.  
  385.  
  386.   #==============================================================================
  387. # ** Abilities_Header
  388. #------------------------------------------------------------------------------
  389. #  This window is a header for everything in the right part of the screen
  390. #==============================================================================
  391.  
  392. class Abilities_Header < Window_Base
  393.   #--------------------------------------------------------------------------
  394.   # * Object Initialization
  395.   #--------------------------------------------------------------------------
  396.  
  397.  def initialize()
  398.     super(152, 0, 487, 55)
  399.     self.contents = Bitmap.new(width - 32, height - 32)
  400.     refresh
  401.  end
  402.  
  403.   #--------------------------------------------------------------------------
  404.   # * Refresh
  405.   #--------------------------------------------------------------------------
  406.  
  407.     def refresh
  408.       self.contents.clear    
  409.       self.contents.draw_text(193, 0, 150, 24, "ABILITIES")
  410.          
  411.     end
  412.  
  413.  
  414.   end
  415.  
  416.  
  417. #==============================================================================
  418. # ** Talents_Header
  419. #------------------------------------------------------------------------------
  420. #  This window is a header for the Talents Window
  421. #==============================================================================
  422.  
  423. class Talents_Header < Window_Base
  424.   #--------------------------------------------------------------------------
  425.   # * Object Initialization
  426.   #--------------------------------------------------------------------------
  427.  
  428.  def initialize()
  429.     super(142, 38, 170, 89)
  430.     self.contents = Bitmap.new(width - 32, height - 32)
  431.     refresh
  432.  end
  433.  
  434.   #--------------------------------------------------------------------------
  435.   # * Refresh
  436.   #--------------------------------------------------------------------------
  437.  
  438.     def refresh
  439.       self.contents.clear    
  440.       self.contents.draw_text(15, 15, 150, 24, "TALENTS")
  441.          
  442.     end
  443.  
  444.  
  445.   end
  446.  
  447.  
  448.   #==============================================================================
  449. # ** Skills_Header
  450. #------------------------------------------------------------------------------
  451. #  This window is a header for the Skills Window
  452. #==============================================================================
  453.  
  454. class Skills_Header < Window_Base
  455.   #--------------------------------------------------------------------------
  456.   # * Object Initialization
  457.   #--------------------------------------------------------------------------
  458.  
  459.  def initialize()
  460.     super(182, 208, 170, 89)
  461.     self.contents = Bitmap.new(width - 32, height - 32)
  462.     refresh
  463.  end
  464.  
  465.   #--------------------------------------------------------------------------
  466.   # * Refresh
  467.   #--------------------------------------------------------------------------
  468.  
  469.     def refresh
  470.       self.contents.clear    
  471.       self.contents.draw_text(18, 15, 150, 24, "SKILLS")
  472.          
  473.     end
  474.  
  475.  
  476.   end
  477.  
  478. #==============================================================================
  479. # ** Knowledges_Header
  480. #------------------------------------------------------------------------------
  481. #  This window is a header for the Knowledges window
  482. #==============================================================================
  483.  
  484. class Knowledges_Header < Window_Base
  485.   #--------------------------------------------------------------------------
  486.   # * Object Initialization
  487.   #--------------------------------------------------------------------------
  488.  
  489.  def initialize()
  490.     super(322, 278, 148, 89)
  491.     self.contents = Bitmap.new(width - 32, height - 32)
  492.     refresh
  493.  end
  494.  
  495.   #--------------------------------------------------------------------------
  496.   # * Refresh
  497.   #--------------------------------------------------------------------------
  498.  
  499.     def refresh
  500.       self.contents.clear    
  501.       self.contents.draw_text(0, 15, 120, 24, "KNOWLEDGES")
  502.          
  503.     end
  504.  
  505.  
  506.   end
  507.  
  508.  
  509.  
  510.   #==============================================================================
  511. # ** Talents_Window
  512. #------------------------------------------------------------------------------
  513. #  This window displays the actor's Talents stats (strength,dexterity,stamina)
  514. #==============================================================================
  515.  
  516. class Talents_Window < Window_Base
  517.   #--------------------------------------------------------------------------
  518.   # * Object Initialization
  519.   #--------------------------------------------------------------------------
  520.  
  521.  def initialize(actor)
  522.     super(155, 142, 170, 200)
  523.     self.contents = Bitmap.new(width - 32, height - 32)
  524.     self.contents.font.size = 20
  525.    
  526. self.contents.draw_text(0, 0, 65, 32, "Alertness: ")      
  527.     self.contents.draw_text(0, 22, 60, 32, "Brawl: ")
  528.     self.contents.draw_text(0, 44, 60, 32, "Dodge: ")
  529.     self.contents.draw_text(0, 66, 70, 32, "Expression: ")
  530.     self.contents.draw_text(0, 88, 75, 32, "Intimidation: ")
  531.     self.contents.draw_text(0, 110, 75, 32, "Subterfuge: ")
  532.     @actor = actor
  533.     refresh
  534.  end
  535.  
  536.   #--------------------------------------------------------------------------
  537.   # * Refresh
  538.   #--------------------------------------------------------------------------
  539.  
  540.     def refresh
  541.     @alrt_a1 = $game_variables [34] # <- for actor 1's alertness it's variable 34
  542.     @alrt_a2 = $game_variables [35]
  543.     @alrt_a3 = $game_variables [36]
  544.     if @actor.index == 0
  545.       self.contents.draw_text(72, 0, 50, 32, @alrt_a1.to_s)
  546.      elsif @actor.index == 1
  547.         self.contents.draw_text(72, 0, 50, 32, @alrt_a2.to_s)
  548.          elsif @actor.index == 2
  549.           self.contents.draw_text(72, 0, 50, 32, @alrt_a3.to_s)
  550.         end #if
  551.         self.contents.font.color = disabled_color
  552.         self.contents.draw_text(92, 0, 50, 32, '/5')
  553.         self.contents.font.color = normal_color
  554.     #Insert in the brackets the variable for each actor's Brawl
  555.     @brw_a1 = $game_variables [37] # <- for actor 1's brawl it's variable 37  
  556.     @brw_a2 = $game_variables [38]
  557.     @brw_a3 = $game_variables [39]
  558.     if @actor.index == 0
  559.       self.contents.draw_text(72, 22, 50, 32, @brw_a1.to_s)
  560.      elsif @actor.index == 1
  561.         self.contents.draw_text(72, 22, 50, 32, @brw_a2.to_s)
  562.          elsif @actor.index == 2
  563.           self.contents.draw_text(72, 22, 50, 32, @brw_a3.to_s)
  564.        end #if
  565.        self.contents.font.color = disabled_color
  566.         self.contents.draw_text(92, 22, 50, 32, '/5')
  567.         self.contents.font.color = normal_color
  568.         #Insert in the brackets the variable for each actor's dodge
  569.     @ddg_a1 = $game_variables [40] # <- for actor 1's dodge it's variable 40
  570.     @ddg_a2 = $game_variables [41]
  571.     @ddg_a3 = $game_variables [42]
  572.     if @actor.index == 0
  573.       self.contents.draw_text(72, 44, 50, 32, @ddg_a1.to_s)
  574.      elsif @actor.index == 1
  575.         self.contents.draw_text(72, 44, 50, 32, @ddg_a2.to_s)
  576.          elsif @actor.index == 2
  577.           self.contents.draw_text(72, 44, 50, 32, @ddg_a3.to_s)
  578.         end   #if
  579.         self.contents.font.color = disabled_color
  580.         self.contents.draw_text(92, 44, 50, 32, '/5')
  581.         self.contents.font.color = normal_color
  582.         #Insert in the brackets the variable for each actor's expression
  583.     @xpr_a1 = $game_variables [43] # <- for actor 1's expression it's variable 43
  584.     @xpr_a2 = $game_variables [44]
  585.     @xpr_a3 = $game_variables [45]
  586.     if @actor.index == 0
  587.       self.contents.draw_text(72, 66, 50, 32, @xpr_a1.to_s)
  588.      elsif @actor.index == 1
  589.         self.contents.draw_text(72, 66, 50, 32, @xpr_a2.to_s)
  590.          elsif @actor.index == 2
  591.           self.contents.draw_text(72, 66, 50, 32, @xpr_a3.to_s)
  592.         end   #if
  593.         self.contents.font.color = disabled_color
  594.         self.contents.draw_text(92, 66, 50, 32, '/5')
  595.         self.contents.font.color = normal_color
  596.         #Insert in the brackets the variable for each actor's intimidation
  597.     @itmd_a1 = $game_variables [46] # <- for actor 1's intimidation it's variable 46
  598.     @itmd_a2 = $game_variables [47]
  599.     @itmd_a3 = $game_variables [48]
  600.     if @actor.index == 0
  601.       self.contents.draw_text(72, 88, 50, 32, @itmd_a1.to_s)
  602.      elsif @actor.index == 1
  603.         self.contents.draw_text(72, 88, 50, 32, @itmd_a2.to_s)
  604.          elsif @actor.index == 2
  605.           self.contents.draw_text(72, 88, 50, 32, @itmd_a3.to_s)
  606.         end   #if
  607.         self.contents.font.color = disabled_color
  608.         self.contents.draw_text(92, 88, 50, 32, '/5')
  609.         self.contents.font.color = normal_color
  610.         #Insert in the brackets the variable for each actor's subterfuge
  611.     @subt_a1 = $game_variables [49] # <- for actor 1's subterfuge it's variable 49
  612.     @subt_a2 = $game_variables [50]
  613.     @subt_a3 = $game_variables [51]
  614.     if @actor.index == 0
  615.       self.contents.draw_text(72, 110, 50, 32, @subt_a1.to_s)
  616.      elsif @actor.index == 1
  617.         self.contents.draw_text(72, 110, 50, 32, @subt_a2.to_s)
  618.          elsif @actor.index == 2
  619.           self.contents.draw_text(72, 110, 50, 32, @subt_a3.to_s)
  620.         end   #If
  621.         self.contents.font.color = disabled_color
  622.         self.contents.draw_text(92, 110, 50, 32, '/5')
  623.         self.contents.font.color = normal_color
  624.     end#def
  625.          
  626.     end#class
  627.  
  628.  
  629.  # end
  630.  
  631.  
  632.  
  633.   #==============================================================================
  634. # ** Skills_Window
  635. #------------------------------------------------------------------------------
  636. #  This window displays physical stats (strength,dexterity,stamina)
  637. #==============================================================================
  638.  
  639. class Skills_Window < Window_Base
  640.   #--------------------------------------------------------------------------
  641.   # * Object Initialization
  642.   #--------------------------------------------------------------------------
  643.  
  644.  def initialize(actor)
  645.     super(324, 142, 170, 200)
  646.     self.contents = Bitmap.new(width - 32, height - 32)
  647.     self.contents.font.size = 20
  648.     self.contents.draw_text(0, 0, 85, 32, "Animal Ken: ")
  649.     self.contents.draw_text(0, 22, 63, 32, "Crafts: ")
  650.     self.contents.draw_text(0, 44, 70, 32, "Etiquette: ")
  651.     self.contents.draw_text(0, 66, 60, 32, "Melee: ")
  652.     self.contents.draw_text(0, 88, 80, 32, "Performance: ")
  653.     self.contents.draw_text(0, 110, 85, 32, "Stealth: ")
  654.     @actor = actor
  655.     refresh
  656.  end
  657.  
  658.   #--------------------------------------------------------------------------
  659.   # * Refresh
  660.   #--------------------------------------------------------------------------
  661.  
  662.     def refresh
  663.     @ank_a1 = $game_variables [52] # <- for actor 1's animal ken it's variable 52
  664.     @ank_a2 = $game_variables [53]
  665.     @ank_a3 = $game_variables [54]
  666.     if @actor.index == 0
  667.       self.contents.draw_text(80, 0, 50, 32, @ank_a1.to_s)
  668.      elsif @actor.index == 1
  669.         self.contents.draw_text(80, 0, 50, 32, @ank_a2.to_s)
  670.          elsif @actor.index == 2
  671.           self.contents.draw_text(80, 0, 50, 32, @ank_a3.to_s)
  672.         end #if
  673.         self.contents.font.color = disabled_color
  674.         self.contents.draw_text(102, 0, 50, 32, '/5')
  675.         self.contents.font.color = normal_color
  676.     #Insert in the brackets the variable for each actor's crafts
  677.     @crf_a1 = $game_variables [55] # <- for actor 1's crafts it's variable 55  
  678.     @crf_a2 = $game_variables [56]
  679.     @crf_a3 = $game_variables [57]
  680.     if @actor.index == 0
  681.       self.contents.draw_text(80, 22, 50, 32, @crf_a1.to_s)
  682.      elsif @actor.index == 1
  683.         self.contents.draw_text(80, 22, 50, 32, @crf_a2.to_s)
  684.          elsif @actor.index == 2
  685.           self.contents.draw_text(80, 22, 50, 32, @crf_a3.to_s)
  686.        end #if
  687.        self.contents.font.color = disabled_color
  688.         self.contents.draw_text(102, 22, 50, 32, '/5')
  689.         self.contents.font.color = normal_color
  690.         #Insert in the brackets the variable for each actor's etiquette
  691.     @etq_a1 = $game_variables [58] # <- for actor 1's etiquette it's variable 60
  692.     @etq_a2 = $game_variables [59]
  693.     @etq_a3 = $game_variables [60]
  694.     if @actor.index == 0
  695.       self.contents.draw_text(80, 44, 50, 32, @etq_a1.to_s)
  696.      elsif @actor.index == 1
  697.         self.contents.draw_text(80, 44, 50, 32, @etq_a2.to_s)
  698.          elsif @actor.index == 2
  699.           self.contents.draw_text(80, 44, 50, 32, @etq_a3.to_s)
  700.         end   #if
  701.         self.contents.font.color = disabled_color
  702.         self.contents.draw_text(102, 44, 50, 32, '/5')
  703.         self.contents.font.color = normal_color
  704.         #Insert in the brackets the variable for each actor's melee
  705.     @mel_a1 = $game_variables [61] # <- for actor 1's melee it's variable 61
  706.     @mel_a2 = $game_variables [62]
  707.     @mel_a3 = $game_variables [63]
  708.     if @actor.index == 0
  709.       self.contents.draw_text(80, 66, 50, 32, @mel_a1.to_s)
  710.      elsif @actor.index == 1
  711.         self.contents.draw_text(80, 66, 50, 32, @mel_a2.to_s)
  712.          elsif @actor.index == 2
  713.           self.contents.draw_text(80, 66, 50, 32, @mel_a3.to_s)
  714.         end   #if
  715.         self.contents.font.color = disabled_color
  716.         self.contents.draw_text(102, 66, 50, 32, '/5')
  717.         self.contents.font.color = normal_color
  718.         #Insert in the brackets the variable for each actor's performace
  719.     @perf_a1 = $game_variables [64] # <- for actor 1's performance it's variable 64
  720.     @perf_a2 = $game_variables [65]
  721.     @perf_a3 = $game_variables [66]
  722.     if @actor.index == 0
  723.       self.contents.draw_text(80, 88, 50, 32, @perf_a1.to_s)
  724.      elsif @actor.index == 1
  725.         self.contents.draw_text(80, 88, 50, 32, @perf_a2.to_s)
  726.          elsif @actor.index == 2
  727.           self.contents.draw_text(80, 88, 50, 32, @perf_a3.to_s)
  728.         end   #if
  729.         self.contents.font.color = disabled_color
  730.         self.contents.draw_text(102, 88, 50, 32, '/5')
  731.         self.contents.font.color = normal_color
  732.         #Insert in the brackets the variable for each actor's stealth
  733.     @sth_a1 = $game_variables [67] # <- for actor 1's stealth it's variable 67
  734.     @sth_a2 = $game_variables [68]
  735.     @sth_a3 = $game_variables [69]
  736.     if @actor.index == 0
  737.       self.contents.draw_text(80, 110, 50, 32, @sth_a1.to_s)
  738.      elsif @actor.index == 1
  739.         self.contents.draw_text(80, 110, 50, 32, @sth_a2.to_s)
  740.          elsif @actor.index == 2
  741.           self.contents.draw_text(80, 110, 50, 32, @sth_a3.to_s)
  742.         end   #If
  743.         self.contents.font.color = disabled_color
  744.         self.contents.draw_text(102, 110, 50, 32, '/5')
  745.         self.contents.font.color = normal_color
  746.     end
  747.  
  748.  
  749.   end
  750.  
  751.  
  752.   #==============================================================================
  753. # ** Knowledges_Window
  754. #------------------------------------------------------------------------------
  755. #  This window displays physical stats (strength,dexterity,stamina)
  756. #==============================================================================
  757.  
  758. class Knowledges_Window < Window_Base
  759.   #--------------------------------------------------------------------------
  760.   # * Object Initialization
  761.   #--------------------------------------------------------------------------
  762.  
  763.  def initialize(actor)
  764.     super(493, 142, 148, 200)
  765.     self.contents = Bitmap.new(width - 32, height - 32)
  766.     self.contents.font.size = 20
  767.     self.contents.draw_text(0, 0, 85, 32, "Academics: ")
  768.     self.contents.draw_text(0, 22, 63, 32, "Finance: ")
  769.     self.contents.draw_text(0, 44, 85, 32, "Investigation: ")
  770.     self.contents.draw_text(0, 66, 60, 32, "Law: ")
  771.     self.contents.draw_text(0, 88, 80, 32, "Medicine: ")
  772.     self.contents.draw_text(0, 110, 70, 32, "Occult: ")
  773.     @actor = actor
  774.     refresh
  775.  end
  776.  
  777.   #--------------------------------------------------------------------------
  778.   # * Refresh
  779.   #--------------------------------------------------------------------------
  780.  
  781.     def refresh
  782.     @aca_a1 = $game_variables [70] # <- for actor 1's academics it's variable 70
  783.     @aca_a2 = $game_variables [71]
  784.     @aca_a3 = $game_variables [72]
  785.     if @actor.index == 0
  786.       self.contents.draw_text(80, 0, 50, 32, @aca_a1.to_s)
  787.      elsif @actor.index == 1
  788.         self.contents.draw_text(80, 0, 50, 32, @aca_a2.to_s)
  789.          elsif @actor.index == 2
  790.           self.contents.draw_text(80, 0, 50, 32, @aca_a3.to_s)
  791.         end #if
  792.         self.contents.font.color = disabled_color
  793.         self.contents.draw_text(102, 0, 50, 32, '/5')
  794.         self.contents.font.color = normal_color
  795.     #Insert in the brackets the variable for each actor's finances
  796.     @fin_a1 = $game_variables [73] # <- for actor 1's finance it's variable 73  
  797.     @fin_a2 = $game_variables [74]
  798.     @fin_a3 = $game_variables [75]
  799.     if @actor.index == 0
  800.       self.contents.draw_text(80, 22, 50, 32, @fin_a1.to_s)
  801.      elsif @actor.index == 1
  802.         self.contents.draw_text(80, 22, 50, 32, @fin_a2.to_s)
  803.          elsif @actor.index == 2
  804.           self.contents.draw_text(80, 22, 50, 32, @fin_a3.to_s)
  805.        end #if
  806.        self.contents.font.color = disabled_color
  807.         self.contents.draw_text(102, 22, 50, 32, '/5')
  808.         self.contents.font.color = normal_color
  809.         #Insert in the brackets the variable for each actor's investigation
  810.     @inv_a1 = $game_variables [76] # <- for actor 1's investigation it's variable 76
  811.     @inv_a2 = $game_variables [77]
  812.     @inv_a3 = $game_variables [78]
  813.     if @actor.index == 0
  814.       self.contents.draw_text(80, 44, 50, 32, @inv_a1.to_s)
  815.      elsif @actor.index == 1
  816.         self.contents.draw_text(80, 44, 50, 32, @inv_a2.to_s)
  817.          elsif @actor.index == 2
  818.           self.contents.draw_text(80, 44, 50, 32, @inv_a3.to_s)
  819.         end   #if
  820.         self.contents.font.color = disabled_color
  821.         self.contents.draw_text(102, 44, 50, 32, '/5')
  822.         self.contents.font.color = normal_color
  823.         #Insert in the brackets the variable for each actor's law
  824.     @law_a1 = $game_variables [79] # <- for actor 1's law it's variable 79
  825.     @law_a2 = $game_variables [80]
  826.     @law_a3 = $game_variables [81]
  827.     if @actor.index == 0
  828.       self.contents.draw_text(80, 66, 50, 32, @law_a1.to_s)
  829.      elsif @actor.index == 1
  830.         self.contents.draw_text(80, 66, 50, 32, @law_a2.to_s)
  831.          elsif @actor.index == 2
  832.           self.contents.draw_text(80, 66, 50, 32, @law_a3.to_s)
  833.         end   #if
  834.         self.contents.font.color = disabled_color
  835.         self.contents.draw_text(102, 66, 50, 32, '/5')
  836.         self.contents.font.color = normal_color
  837.         #Insert in the brackets the variable for each actor's medicine
  838.     @med_a1 = $game_variables [82] # <- for actor 1's medicine it's variable 82
  839.     @med_a2 = $game_variables [83]
  840.     @med_a3 = $game_variables [84]
  841.     if @actor.index == 0
  842.       self.contents.draw_text(80, 88, 50, 32, @med_a1.to_s)
  843.      elsif @actor.index == 1
  844.         self.contents.draw_text(80, 88, 50, 32, @med_a2.to_s)
  845.          elsif @actor.index == 2
  846.           self.contents.draw_text(80, 88, 50, 32, @med_a3.to_s)
  847.         end   #if
  848.         self.contents.font.color = disabled_color
  849.         self.contents.draw_text(102, 88, 50, 32, '/5')
  850.         self.contents.font.color = normal_color
  851.         #Insert in the brackets the variable for each actor's occult
  852.     @occ_a1 = $game_variables [85] # <- for actor 1's occult it's variable 85
  853.     @occ_a2 = $game_variables [86]
  854.     @occ_a3 = $game_variables [87]
  855.     if @actor.index == 0
  856.       self.contents.draw_text(80, 110, 50, 32, @occ_a1.to_s)
  857.      elsif @actor.index == 1
  858.         self.contents.draw_text(80, 110, 50, 32, @occ_a2.to_s)
  859.          elsif @actor.index == 2
  860.           self.contents.draw_text(80, 110, 50, 32, @occ_a3.to_s)
  861.         end   #If
  862.         self.contents.font.color = disabled_color
  863.         self.contents.draw_text(102, 110, 50, 32, '/5')
  864.         self.contents.font.color = normal_color
  865.     end
  866.  
  867.   end
  868.  
  869.  
  870. #==============================================================================
  871. # ** Equip_Window
  872. #------------------------------------------------------------------------------
  873. #  This window displays what the actor has equipped(minus the icons)
  874. #  If you want to show the icons change @icons to true
  875. #==============================================================================
  876.  
  877.  
  878.  
  879. class Equip_Window < Window_Base
  880. def initialize(actor)
  881. super(155,341,341,139)
  882. self.contents = Bitmap.new(width - 32, height - 32)
  883. self.contents.font.name = "Arial"
  884. @actor = actor
  885. @icons = false
  886. refresh
  887. end
  888.  
  889.  
  890.  
  891.  
  892.             def refresh
  893. self.contents.clear
  894.  
  895.    self.contents.font.size = 15
  896.    self.contents.draw_text(0,5,70,22,"Weapon:")
  897.    draw_item_name_only($data_weapons[@actor.weapon_id], 25, 0)
  898.    self.contents.draw_text(0,25,70,22,"Shield:")
  899.    draw_item_name_only($data_armors[@actor.armor1_id],25,20)
  900.    self.contents.draw_text(0,45,70,22,"Helmet:")
  901.    draw_item_name_only($data_armors[@actor.armor2_id],25,40)
  902.    self.contents.draw_text(0,65,70,22,"Armor:")
  903.    draw_item_name_only($data_armors[@actor.armor3_id],25,60)
  904.    self.contents.draw_text(0,85,70,22,"Acc. :")
  905.    draw_item_name_only($data_armors[@actor.armor4_id],25,60)
  906.  
  907.      end
  908. end
  909.  
  910.  
  911. #==============================================================================
  912. # ** Sprite_Window
  913. #------------------------------------------------------------------------------
  914. #  This window displays the actor's sprite
  915. #==============================================================================
  916.  
  917. class Sprite_Window < Window_Base
  918.   #--------------------------------------------------------------------------
  919.   # * Object Initialization
  920.   #--------------------------------------------------------------------------
  921.  
  922.  def initialize(actor)
  923.     super(495, 341, 186, 139)
  924.     self.contents = Bitmap.new(width - 32, height - 32)
  925.     @actor = actor
  926.     refresh
  927.  end
  928.  
  929.   #--------------------------------------------------------------------------
  930.   # * Refresh
  931.   #--------------------------------------------------------------------------
  932.  
  933.     def refresh
  934.       self.contents.clear
  935.       draw_actor_graphic (@actor , 55, 69)
  936.       end
  937.  
  938.   end
  939. #===============================================================================
  940. #==============================================================================
  941. # ** Character_Sheet
  942. #------------------------------------------------------------------------------
  943. #  This class is the bone of the Character Sheet.
  944. #==============================================================================
  945.  
  946. class Scene_Status
  947.   #--------------------------------------------------------------------------
  948.   # * Object Initialization
  949.   #     actor_index : actor index
  950.   #--------------------------------------------------------------------------
  951.   def initialize(actor_index = 0, equip_index = 0)
  952.     @actor_index = actor_index
  953.   end
  954.   #--------------------------------------------------------------------------
  955.   # * Main Processing
  956.   #--------------------------------------------------------------------------
  957.   def main
  958.     # Get actor
  959.     @actor = $game_party.actors[@actor_index]
  960.     # Make status window
  961.     @status_window = Actor_Info.new(@actor)
  962.     @status_window.x = 0
  963.     @status_window.y = 0
  964.     @physical_window = Physical_Window.new(@actor)
  965.     @physical_window.x = 0
  966.     @physical_window.y = 129
  967.     @social_window = Social_Window.new(@actor)
  968.     @social_window.x = 0
  969.     @social_window.y = 228
  970.     @mental_window = Mental_Window.new(@actor)
  971.     @mental_window.x = 0
  972.     @mental_window.y = 327
  973.     @humanity_window = Humanity_Window.new(@actor)
  974.     @humanity_window.x = 0
  975.     @humanity_window.y = 426
  976.     @abilities = Abilities_Header.new    
  977.     @abilities.x = 155
  978.     @abilities.y = 0
  979.     @talents = Talents_Header.new
  980.     @talents.x = 155
  981.     @talents.y = 54
  982.     @skills = Skills_Header.new
  983.     @skills.x = 324
  984.     @skills.y = 54
  985.     @knowledges = Knowledges_Header.new
  986.     @knowledges.x = 493
  987.     @knowledges.y = 54
  988.     @talents_win = Talents_Window.new(@actor)
  989.     @skills_win = Skills_Window.new(@actor)
  990.     @knowledges_win = Knowledges_Window.new(@actor)
  991.     @equip = Equip_Window.new(@actor)
  992.     @sprite_window = Sprite_Window.new(@actor)
  993.     # Execute transition
  994.     Graphics.transition
  995.     # Main loop
  996.     loop do
  997.       # Update game screen
  998.       Graphics.update
  999.       # Update input information
  1000.       Input.update
  1001.       # Frame update
  1002.       update
  1003.       # Abort loop if screen is changed
  1004.       if $scene != self
  1005.         break
  1006.       end
  1007.     end
  1008.     # Prepare for transition
  1009.     Graphics.freeze
  1010.     # Dispose of windows
  1011.     @status_window.dispose
  1012.     @physical_window.dispose
  1013.     @social_window.dispose
  1014.     @mental_window.dispose
  1015.     @humanity_window.dispose
  1016.     @abilities.dispose
  1017.     @talents.dispose
  1018.     @skills.dispose
  1019.     @knowledges.dispose
  1020.     @talents_win.dispose
  1021.     @skills_win.dispose
  1022.     @knowledges_win.dispose
  1023.     @equip.dispose
  1024.     @sprite_window.dispose
  1025.   end
  1026.   #--------------------------------------------------------------------------
  1027.   # * Frame Update
  1028.   #--------------------------------------------------------------------------
  1029.   def update
  1030.     # If B button was pressed
  1031.     if Input.trigger?(Input::B)
  1032.       # Play cancel SE
  1033.       $game_system.se_play($data_system.cancel_se)
  1034.       # Switch to menu screen
  1035.       $scene = Scene_Menu.new(3)
  1036.       return
  1037.     end
  1038.     # If R button was pressed
  1039.     if Input.trigger?(Input::R)
  1040.       # Play cursor SE
  1041.       $game_system.se_play($data_system.cursor_se)
  1042.       # To next actor
  1043.       @actor_index += 1
  1044.       @actor_index %= $game_party.actors.size
  1045.       # Switch to different status screen
  1046.       $scene = Scene_Status.new(@actor_index)
  1047.       return
  1048.     end
  1049.     # If L button was pressed
  1050.     if Input.trigger?(Input::L)
  1051.       # Play cursor SE
  1052.       $game_system.se_play($data_system.cursor_se)
  1053.       # To previous actor
  1054.       @actor_index += $game_party.actors.size - 1
  1055.       @actor_index %= $game_party.actors.size
  1056.       # Switch to different status screen
  1057.       $scene = Scene_Status.new(@actor_index)
  1058.       return
  1059.     end
  1060.   end
  1061. end
  1062.  
  1063.  
Expand to see the code.


2.0 Spoiler
  1. #============================================================================
  2. # ** (V:TM)Character Sheet
  3. #----------------------------------------------------------------------------
  4. # by Ludicus Maximus aka Ludicus
  5. # Version 1.0
  6. # 16 June 2009
  7. #--------------
  8. # Version 2.0 (1062 lines -> 884 lines)
  9. # 29 August 2009
  10. #----------------------------------------------------------------------------
  11. # Instructions:
  12. #  The script is plug and play, although in-game you have to call:
  13. #    $game_actors[ACTOR_ID].STAT = NUMBER
  14. #  You can also subtract (instead of STAT = NUMBER it's STAT -= NUMBER)
  15. #                    add (instead of STAT = NUMBER it's STAT += NUMBER)
  16. #  The stats are those that are written in the beginning of the script, after
  17. #  'attr_accessor   :' .
  18. #  Now, for example, you want the first character in the database to have 3 wits,
  19. #  the second to have 2 MORE charisma and the third to have 2 LESS brawl.
  20. #  In game you woud call script&#058;
  21. #"  $game_actors[1].wits = 3
  22. #   $game_actors[2].charisma += 2
  23. #   $game_actors[3].brawl -= 2  "
  24. # (without the quotes, of course). To verify a stat, call script in Conditional
  25. #   Branch: " $game_actors[WHATEVER].STAT == X"
  26. #  Instead of "==" you can have "<" (Less than), ">"(Greater than), ">="(Greater or
  27. #   equal to), or "<=" (Less than or equal to) or "!=" (Not equal to)          
  28. #----------------------------------------------------------------------------
  29. # Notes:
  30. # -Is obviously not compatible with other Custom Stat Scenes,but can be probably
  31. #    worked around.
  32. #----------------------------------------------------------------------------
  33. # Credits and Thanks:
  34. #
  35. # -White Wolf
  36. # -Me,aka Ludicus Maximus/Ludicus.
  37. #----------------------------------------------------------------------------
  38. #Please give credit to me when using this script,preferably as Ludicus Maximus
  39. #----------------------------------------------------------------------------
  40. class Game_Actor
  41.  
  42.   attr_accessor  :generation
  43.   attr_accessor  :humanity
  44.   attr_accessor  :strength
  45.   attr_accessor  :dexterity
  46.   attr_accessor  :stamina
  47.   attr_accessor  :charisma
  48.   attr_accessor  :manipulation
  49.   attr_accessor  :appearance
  50.   attr_accessor  :perception
  51.   attr_accessor  :intelligence
  52.   attr_accessor  :wits
  53.   attr_accessor  :alertness
  54.   attr_accessor  :brawl
  55.   attr_accessor  :dodge
  56.   attr_accessor  :expression
  57.   attr_accessor  :intimidation
  58.   attr_accessor  :subterfuge
  59.   attr_accessor  :animalken
  60.   attr_accessor  :crafts
  61.   attr_accessor  :etiquette
  62.   attr_accessor  :melee
  63.   attr_accessor  :performance
  64.   attr_accessor  :stealth  
  65.   attr_accessor  :academics
  66.   attr_accessor  :finance
  67.   attr_accessor  :investigation
  68.   attr_accessor  :law
  69.   attr_accessor  :medicine
  70.   attr_accessor  :occult
  71.   attr_accessor  :willpower
  72.   attr_accessor  :conscience
  73.   attr_accessor  :selfcontrol
  74.  
  75.   alias charascript_setup setup
  76.  
  77.   def setup(actor_id)
  78.     charascript_setup(actor_id)
  79.     @generation       = 0
  80.     @humanity         = 0
  81.     @strength         = 0
  82.     @dexterity        = 0
  83.     @stamina          = 0
  84.     @charisma         = 0
  85.     @manipulation     = 0
  86.     @appearance       = 0
  87.     @perception       = 0
  88.     @intelligence     = 0
  89.     @wits             = 0
  90.     @alertness        = 0
  91.     @brawl            = 0
  92.     @dodge            = 0
  93.     @expression       = 0
  94.     @intimidation     = 0
  95.     @subterfuge       = 0
  96.     @animalken        = 0
  97.     @crafts           = 0
  98.     @etiquette        = 0
  99.     @melee            = 0
  100.     @performance      = 0
  101.     @stealth          = 0
  102.     @academics        = 0
  103.     @finance          = 0
  104.     @investigation    = 0
  105.     @law              = 0
  106.     @medicine         = 0
  107.     @occult           = 0
  108.     @willpower        = 0
  109.     @conscience       = 0
  110.     @selfcontrol      = 0
  111.   end
  112.   def generation
  113.     return @generation
  114.   end
  115.   def generation=(gen)
  116.    @generation = gen
  117.   end
  118.   def humanity
  119.     return @humanity
  120.   end
  121.   def humanity=(hum)
  122.    @humanity = hum
  123.   end
  124.   def strength
  125.     return @strength
  126.   end
  127.   def strength=(str)
  128.    @strength = str
  129.   end
  130.   def dexterity
  131.     return @dexterity
  132.   end
  133.   def dexterity=(dex)
  134.     @dexterity = dex
  135.   end
  136.   def stamina
  137.     return @stamina
  138.   end
  139.   def stamina=(sta)
  140.     @stamina = sta
  141.   end
  142.   def charisma
  143.     return @charisma
  144.   end
  145.   def charisma=(cha)
  146.     @charisma = cha
  147.   end
  148.   def manipulation
  149.     return @manipulation
  150.   end
  151.   def manipulation=(man)
  152.     @manipulation = man
  153.   end
  154.   def appearance
  155.     return @appearance
  156.   end
  157.   def appearance=(app)
  158.     @appearance = app
  159.   end
  160.   def perception
  161.     return @perception
  162.   end
  163.   def perception=(per)
  164.     @perception = per
  165.   end
  166.   def intelligence
  167.     return @intelligence
  168.   end
  169.   def intelligence=(int)
  170.     @intelligence = int
  171.   end
  172.   def wits
  173.     return @wits
  174.   end
  175.   def wits=(wts)
  176.     @wits = wts
  177.   end
  178.   def alertness
  179.     return @alertness
  180.   end
  181.   def alertness=(arlt)
  182.     @alertness = arlt
  183.   end
  184.   def brawl
  185.     return @brawl
  186.   end
  187.   def brawl=(brw)
  188.     @brawl = brw
  189.   end
  190.   def dodge
  191.     return @dodge
  192.   end
  193.   def dodge=(ddg)
  194.     @dodge = ddg
  195.   end
  196.   def expression
  197.     return @expression
  198.   end
  199.   def expression=(expr)
  200.     @expression = expr
  201.   end
  202.   def intimidation
  203.     return @intimidation
  204.   end
  205.   def intimidation=(intm)
  206.     @intimidation = intm
  207.   end
  208.   def subterfuge
  209.     return @subterfuge
  210.   end
  211.   def subterfuge=(subt)
  212.     @subterfuge = subt
  213.   end
  214.   def animalken
  215.     return @animalken
  216.   end
  217.   def animalken=(ank)
  218.     @animaken = ank
  219.   end
  220.   def crafts
  221.     return @crafts
  222.   end
  223.   def crafts=(crft)
  224.     @crafts = crft
  225.   end
  226.   def etiquette
  227.     return @etiquette
  228.   end
  229.   def etiquette=(etq)
  230.     @etiquette = etq
  231.   end
  232.   def melee
  233.     return @melee
  234.   end
  235.   def melee=(mle)
  236.     @melee = mle
  237.   end
  238.   def performance
  239.     return @performance
  240.   end
  241.   def performance=(prfr)
  242.     @performance = prfr
  243.   end
  244.   def stealth
  245.    return @stealth
  246.   end
  247.   def stealth=(sthl)
  248.     @stealth = sthl
  249.   end
  250.   def academics
  251.     return @academics
  252.   end
  253.   def academics=(acdm)
  254.     @academics = acdm
  255.   end
  256.   def finance
  257.     return @finance
  258.   end
  259.   def finance=(fnc)
  260.     @finance = fnc
  261.   end
  262.   def investigation
  263.     return @investigation
  264.   end
  265.   def investigation=(invst)
  266.     @investigation = invst
  267.   end
  268.   def law
  269.     return @law
  270.   end
  271.   def law=(lw)
  272.     @law = lw
  273.   end
  274.   def medicine
  275.     return @medicine
  276.   end
  277.   def medicine=(mdc)
  278.     @medicine = mdc
  279.   end
  280.   def occult
  281.     return @occult
  282.   end
  283.   def occult=(oclt)
  284.     @occult = oclt
  285.   end
  286.   def willpower
  287.     return @willpower
  288.   end
  289.   def willpower=(wlpr)
  290.     @willpower = wlpr
  291.   end
  292.   def conscience
  293.     return @conscience
  294.   end
  295.   def conscience=(consc)
  296.     @conscience = consc
  297.   end
  298.   def selfcontrol
  299.     return @selfcontrol
  300.   end
  301.   def selfcontrol=(slfctrl)
  302.     @selfcontrol = slfctrl
  303.   end
  304. end
  305.  
  306. #========================================
  307. #Adds more methods in Window_Base
  308. #========================================
  309. class Window_Base
  310.  
  311.   #This will obviously draw the item name,but without the icon,is used in
  312.   # Equip_Window
  313.   def draw_item_name_only(item, x, y)
  314.     if item == nil
  315.       return
  316.     end
  317.    self.contents.font.color = crisis_color
  318.    self.contents.draw_text(x + 28, y, 212, 32, item.name)
  319.    self.contents.font.color = normal_color
  320.  end
  321.  
  322. end
  323. #==============================================================================
  324. # ** Actor_Info
  325. #------------------------------------------------------------------------------
  326. #  This window displays the actor's info (name, clan(class), generation
  327. #
  328. #==============================================================================
  329. class Actor_Info < Window_Base
  330.  
  331.   def initialize(actor)
  332.     super(0, 0, 156, 130)
  333.     self.contents = Bitmap.new(width - 32, height - 32)
  334.     @actor = actor
  335.     self.contents.clear    
  336.     self.contents.draw_text(0, 0, 50, 32, "Name: ")
  337.     draw_actor_name(@actor, 57,0)
  338.     self.contents.draw_text(0, 36, 50, 32, "Clan: ")
  339.     draw_actor_class(@actor, 56,36)
  340.     self.contents.draw_text(0, 72, 50, 32, "Gen: ")
  341.     self.contents.draw_text(56, 72, 50, 32, @actor.generation.to_s)
  342.   end #def
  343.    
  344.    end #class
  345. #==============================================================================
  346. # ** Physical_Window
  347. #------------------------------------------------------------------------------
  348. #  This window displays physical stats (strength,dexterity,stamina)
  349. #==============================================================================
  350. class Physical_Window < Window_Base
  351.  
  352.   def initialize(actor)
  353.     super(0, 60, 156, 100)
  354.     self.contents = Bitmap.new(width - 32, height - 32)
  355.     @actor = actor
  356.     self.contents.clear    
  357.     self.contents.draw_text(0, 0, 50, 32, "STR: ")      
  358.     self.contents.draw_text(0, 22, 50, 32, "DEX: ")
  359.     self.contents.draw_text(0, 44, 50, 32, "STA: ")
  360.     self.contents.draw_text(52, 0, 50, 32, @actor.strength.to_s)
  361.     self.contents.font.color = normal_color
  362.     self.contents.font.color = disabled_color
  363.     self.contents.draw_text(72, 0, 50, 32, '/5')
  364.     self.contents.font.color = normal_color
  365.     self.contents.draw_text(52, 22, 50, 32, @actor.dexterity.to_s)
  366.     self.contents.font.color = disabled_color
  367.     self.contents.draw_text(72, 22, 50, 32, '/5')
  368.     self.contents.font.color = normal_color
  369.     self.contents.draw_text(52, 44, 50, 32, @actor.stamina.to_s)
  370.     self.contents.font.color = disabled_color
  371.     self.contents.draw_text(72, 44, 50, 32, '/5')
  372.     self.contents.font.color = normal_color
  373.   end
  374.  
  375. end
  376. #==============================================================================
  377. # ** Social_Window
  378. #------------------------------------------------------------------------------
  379. #  This window displays social stats (charisma,manipulation,appearance)
  380. #==============================================================================
  381. class Social_Window < Window_Base
  382.  
  383.   def initialize(actor)
  384.     super(0, 123, 156, 100)
  385.     self.contents = Bitmap.new(width - 32, height - 32)
  386.     self.contents.draw_text(0, 0, 50, 32, "CHA: ")      
  387.     self.contents.draw_text(0, 22, 50, 32, "MAN: ")
  388.     self.contents.draw_text(0, 44, 50, 32, "APP: ")
  389.     @actor = actor
  390.     self.contents.draw_text(52, 0, 50, 32, @actor.charisma.to_s)
  391.     self.contents.font.color = disabled_color
  392.     self.contents.draw_text(72, 0, 50, 32, '/5')
  393.     self.contents.font.color = normal_color
  394.     self.contents.draw_text(52, 22, 50, 32, @actor.manipulation.to_s)
  395.     self.contents.font.color = disabled_color
  396.     self.contents.draw_text(72, 22, 50, 32, '/5')
  397.     self.contents.font.color = normal_color
  398.     self.contents.draw_text(52, 44, 50, 32, @actor.appearance.to_s)
  399.     self.contents.font.color = disabled_color
  400.     self.contents.draw_text(72, 44, 50, 32, '/5')
  401.     self.contents.font.color = normal_color
  402.   end
  403.  
  404. end
  405. #==============================================================================
  406. # ** Mental_Window
  407. #------------------------------------------------------------------------------
  408. #  This window displays mental stats (perception,intelligence,wits)
  409. #==============================================================================
  410. class Mental_Window < Window_Base
  411.  
  412.   def initialize(actor)
  413.     super(0, 173, 156, 100)
  414.     self.contents = Bitmap.new(width - 32, height - 32)
  415.     self.contents.draw_text(0, 0, 50, 32, "PER: ")      
  416.     self.contents.draw_text(0, 22, 50, 32, "INT: ")
  417.     self.contents.draw_text(0, 44, 50, 32, "WTS: ")
  418.     @actor = actor
  419.     self.contents.draw_text(52, 0, 50, 32, @actor.perception.to_s)
  420.     self.contents.font.color = disabled_color
  421.     self.contents.draw_text(72, 0, 50, 32, '/5')
  422.     self.contents.font.color = normal_color
  423.     self.contents.draw_text(52, 22, 50, 32, @actor.intelligence.to_s)
  424.     self.contents.font.color = disabled_color
  425.     self.contents.draw_text(72, 22, 50, 32, '/5')
  426.     self.contents.font.color = normal_color
  427.     self.contents.draw_text(52, 44, 50, 32, @actor.wits.to_s)
  428.     self.contents.font.color = disabled_color
  429.     self.contents.draw_text(72, 44, 50, 32, '/5')
  430.     self.contents.font.color = normal_color
  431.    end
  432.  
  433.   end
  434. #==============================================================================
  435. # ** Humanity_Window
  436. #------------------------------------------------------------------------------
  437. #  This window displays the Humanity stat
  438. #==============================================================================
  439. class Humanity_Window < Window_Base
  440.  
  441.   def initialize(actor)
  442.     super(426, 0, 156, 55)
  443.     self.contents = Bitmap.new(width - 32, height - 32)    
  444.     self.contents.draw_text(0, 0, 80, 24, "Humanity: ")
  445.     @actor = actor
  446.     self.contents.draw_text(70, 0, 50, 25, @actor.humanity.to_s)
  447.     self.contents.font.color = disabled_color
  448.     self.contents.draw_text(90, 0, 50, 25, '/10')
  449.     self.contents.font.color = normal_color
  450.     end
  451.  
  452.   end
  453. #==============================================================================
  454. # ** Talents_Window
  455. #==============================================================================
  456. class Talents_Window < Window_Base
  457.  
  458.   def initialize(actor)
  459.     super(155, 105, 170, 165)
  460.     self.contents = Bitmap.new(width - 32, height - 32)
  461.     self.contents.font.size = 20
  462.     self.contents.draw_text(0, 0, 65, 32, "Alertness: ")      
  463.     self.contents.draw_text(0, 22, 60, 32, "Brawl: ")
  464.     self.contents.draw_text(0, 44, 60, 32, "Dodge: ")
  465.     self.contents.draw_text(0, 66, 70, 32, "Expression: ")
  466.     self.contents.draw_text(0, 88, 75, 32, "Intimidation: ")
  467.     self.contents.draw_text(0, 110, 75, 32, "Subterfuge: ")
  468.     @actor = actor
  469.     self.contents.draw_text(72, 0, 50, 32, @actor.alertness.to_s)
  470.     self.contents.font.color = disabled_color
  471.     self.contents.draw_text(92, 0, 50, 32, '/5')
  472.     self.contents.font.color = normal_color
  473.     self.contents.draw_text(72, 22, 50, 32, @actor.brawl.to_s)
  474.     self.contents.font.color = disabled_color
  475.     self.contents.draw_text(92, 22, 50, 32, '/5')
  476.     self.contents.font.color = normal_color
  477.     self.contents.draw_text(72, 44, 50, 32, @actor.dodge.to_s)
  478.     self.contents.font.color = disabled_color
  479.     self.contents.draw_text(92, 44, 50, 32, '/5')
  480.     self.contents.font.color = normal_color
  481.     self.contents.draw_text(72, 66, 50, 32, @actor.expression.to_s)
  482.     self.contents.font.color = disabled_color
  483.     self.contents.draw_text(92, 66, 50, 32, '/5')
  484.     self.contents.font.color = normal_color
  485.     self.contents.draw_text(72, 88, 50, 32, @actor.intimidation.to_s)
  486.     self.contents.font.color = disabled_color
  487.     self.contents.draw_text(92, 88, 50, 32, '/5')
  488.     self.contents.font.color = normal_color
  489.     self.contents.draw_text(72, 110, 50, 32, @actor.subterfuge.to_s)
  490.     self.contents.font.color = disabled_color
  491.     self.contents.draw_text(92, 110, 50, 32, '/5')
  492.     self.contents.font.color = normal_color
  493.   end
  494.          
  495. end
  496. #==============================================================================
  497. # ** Self-Control_Window
  498. #==============================================================================
  499. class Selfcontrol_Window < Window_Base
  500.  
  501.   def initialize(actor)
  502.     super(155, 269, 170, 73)
  503.     self.contents = Bitmap.new(width - 32, height - 32)
  504.     self.contents.font.size = 20
  505.     self.contents.draw_text(0, 0, 95, 32, "Self-Control: ")
  506.     @actor = actor
  507.     self.contents.draw_text(85, 0, 50, 32, @actor.selfcontrol.to_s)
  508.     self.contents.font.color = disabled_color
  509.     self.contents.draw_text(100, 0, 50, 32, '/5')
  510.   end#def
  511.  
  512. end
  513. #==============================================================================
  514. # ** Skills_Window
  515. #==============================================================================
  516. class Skills_Window < Window_Base
  517.  
  518.   def initialize(actor)
  519.     super(324, 105, 170, 165)
  520.     self.contents = Bitmap.new(width - 32, height - 32)
  521.     self.contents.font.size = 20
  522.     self.contents.draw_text(0, 0, 85, 32, "Animal Ken: ")
  523.     self.contents.draw_text(0, 22, 63, 32, "Crafts: ")
  524.     self.contents.draw_text(0, 44, 70, 32, "Etiquette: ")
  525.     self.contents.draw_text(0, 66, 60, 32, "Melee: ")
  526.     self.contents.draw_text(0, 88, 90, 32, "Performance: ")
  527.     self.contents.draw_text(0, 110, 85, 32, "Stealth: ")
  528.     @actor = actor
  529.     self.contents.draw_text(79, 0, 50, 32, @actor.animalken.to_s)
  530.     self.contents.font.color = disabled_color
  531.     self.contents.draw_text(99, 0, 50, 32, '/5')
  532.     self.contents.font.color = normal_color
  533.     self.contents.draw_text(79, 22, 50, 32, @actor.crafts.to_s)
  534.     self.contents.font.color = disabled_color
  535.     self.contents.draw_text(99, 22, 50, 32, '/5')
  536.     self.contents.font.color = normal_color
  537.     self.contents.draw_text(79, 44, 50, 32, @actor.etiquette.to_s)
  538.     self.contents.font.color = disabled_color
  539.     self.contents.draw_text(99, 44, 50, 32, '/5')
  540.     self.contents.font.color = normal_color
  541.     self.contents.draw_text(79, 66, 50, 32, @actor.melee.to_s)
  542.     self.contents.font.color = disabled_color
  543.     self.contents.draw_text(99, 66, 50, 32, '/5')
  544.     self.contents.font.color = normal_color
  545.     self.contents.draw_text(79, 88, 50, 32, @actor.performance.to_s)
  546.     self.contents.font.color = disabled_color
  547.     self.contents.draw_text(99, 88, 50, 32, '/5')
  548.     self.contents.font.color = normal_color
  549.     self.contents.draw_text(79, 110, 50, 32, @actor.stealth.to_s)
  550.     self.contents.font.color = disabled_color
  551.     self.contents.draw_text(99, 110, 50, 32, '/5')
  552.     self.contents.font.color = normal_color
  553.     end#def
  554.  
  555.   end
  556. #==============================================================================
  557. # ** Conscience_Window
  558. #==============================================================================
  559. class Conscience_Window < Window_Base
  560.  
  561.   def initialize(actor)
  562.     super(324, 269, 170, 73)
  563.     self.contents = Bitmap.new(width - 32, height - 32)
  564.     self.contents.font.size = 20
  565.     self.contents.draw_text(0, 0, 95, 32, "Conscience: ")
  566.     @actor = actor
  567.     self.contents.draw_text(85, 0, 50, 32, @actor.conscience.to_s)
  568.     self.contents.font.color = disabled_color
  569.     self.contents.draw_text(100, 0, 50, 32, '/5')
  570.   end#def
  571.  
  572. end
  573. #==============================================================================
  574. # ** Knowledges_Window
  575. #==============================================================================
  576. class Knowledges_Window < Window_Base
  577.  
  578.   def initialize(actor)
  579.     super(493, 105, 148, 165)
  580.     self.contents = Bitmap.new(width - 32, height - 32)
  581.     self.contents.font.size = 20
  582.     self.contents.draw_text(0, 0, 85, 32, "Academics: ")
  583.     self.contents.draw_text(0, 22, 63, 32, "Finance: ")
  584.     self.contents.draw_text(0, 44, 85, 32, "Investigation: ")
  585.     self.contents.draw_text(0, 66, 60, 32, "Law: ")
  586.     self.contents.draw_text(0, 88, 80, 32, "Medicine: ")
  587.     self.contents.draw_text(0, 110, 70, 32, "Occult: ")
  588.     @actor = actor
  589.     self.contents.draw_text(85, 0, 50, 32, @actor.academics.to_s)
  590.     self.contents.font.color = disabled_color
  591.     self.contents.draw_text(100, 0, 50, 32, '/5')
  592.     self.contents.font.color = normal_color
  593.     self.contents.draw_text(85, 22, 50, 32, @actor.finance.to_s)
  594.     self.contents.font.color = disabled_color
  595.     self.contents.draw_text(100, 22, 50, 32, '/5')
  596.     self.contents.font.color = normal_color
  597.     self.contents.draw_text(85, 44, 50, 32, @actor.investigation.to_s)
  598.     self.contents.font.color = disabled_color
  599.     self.contents.draw_text(100, 44, 50, 32, '/5')
  600.     self.contents.font.color = normal_color
  601.     self.contents.draw_text(85, 66, 50, 32, @actor.law.to_s)
  602.     self.contents.font.color = disabled_color
  603.     self.contents.draw_text(100, 66, 50, 32, '/5')
  604.     self.contents.font.color = normal_color
  605.     self.contents.draw_text(85, 88, 50, 32, @actor.medicine.to_s)
  606.     self.contents.font.color = disabled_color
  607.     self.contents.draw_text(100, 88, 50, 32, '/5')
  608.     self.contents.font.color = normal_color
  609.     self.contents.draw_text(85, 110, 50, 32, @actor.occult.to_s)
  610.     self.contents.font.color = disabled_color
  611.     self.contents.draw_text(100, 110, 50, 32, '/5')
  612.     self.contents.font.color = normal_color
  613.   end#def
  614.  
  615. end
  616.  
  617. #==============================================================================
  618. # ** Willpower_Window
  619. #==============================================================================
  620. class Willpower_Window < Window_Base
  621.  
  622.   def initialize(actor)
  623.     super(493, 269, 148, 73)
  624.     self.contents = Bitmap.new(width - 32, height - 32)
  625.     self.contents.font.size = 20
  626.     self.contents.draw_text(0, 0, 85, 32, "Willpower: ")
  627.     @actor = actor
  628.     self.contents.draw_text(85, 0, 50, 32, @actor.willpower.to_s)
  629.     self.contents.font.color = disabled_color
  630.     self.contents.draw_text(100, 0, 50, 32, '/5')
  631.   end#def
  632.  
  633. end
  634. #==============================================================================
  635. # ** Abilities_Header
  636. #------------------------------------------------------------------------------
  637. #  This window is a header for everything in the right part of the screen
  638. #==============================================================================
  639. class Abilities_Header < Window_Base
  640.  
  641.   def initialize()
  642.     super(152, 0, 487, 55)
  643.     self.contents = Bitmap.new(width - 32, height - 32)
  644.     self.contents.clear    
  645.     self.contents.draw_text(193, 0, 150, 24, "ABILITIES")
  646.  end
  647.  
  648.   end
  649. #==============================================================================
  650. # ** Talents_Header
  651. #------------------------------------------------------------------------------
  652. #  This window is a header for the Talents Window
  653. #==============================================================================
  654. class Talents_Header < Window_Base
  655.  
  656.   def initialize()
  657.     super(142, 38, 170, 52)
  658.     self.contents = Bitmap.new(width - 32, height - 32)
  659.     self.contents.clear    
  660.     self.contents.draw_text(15, 0, 150, 24, "TALENTS")
  661.   end
  662.    
  663. end
  664. #==============================================================================
  665. # ** Skills_Header
  666. #------------------------------------------------------------------------------
  667. #  This window is a header for the Skills Window
  668. #==============================================================================
  669. class Skills_Header < Window_Base
  670.  
  671.   def initialize()
  672.     super(182, 208, 170, 52)
  673.     self.contents = Bitmap.new(width - 32, height - 32)
  674.     self.contents.clear    
  675.     self.contents.draw_text(18, 0, 150, 24, "SKILLS")  
  676.   end
  677.  
  678.   end
  679. #==============================================================================
  680. # ** Knowledges_Header
  681. #------------------------------------------------------------------------------
  682. #  This window is a header for the Knowledges window
  683. #==============================================================================
  684. class Knowledges_Header < Window_Base
  685.  
  686.   def initialize()
  687.     super(322, 278, 148, 52)
  688.     self.contents = Bitmap.new(width - 32, height - 32)
  689.     self.contents.clear    
  690.     self.contents.draw_text(0, 0, 120, 24, "KNOWLEDGES")        
  691.   end
  692.  
  693.   end
  694. #==============================================================================
  695. # ** Equip_Window
  696. #------------------------------------------------------------------------------
  697. #  This window displays what the actor has equipped(minus the icons)
  698. #  If you want to show the icons change @icons to true
  699. #==============================================================================
  700. class Equip_Window < Window_Base
  701.  
  702.   def initialize(actor)
  703.    super(155,341,339,139)
  704.    self.contents = Bitmap.new(width - 32, height - 32)
  705.    self.contents.font.name = "Arial"
  706.    @actor = actor
  707.    @icons = false
  708.    self.contents.clear
  709.    self.contents.font.size = 15
  710.    self.contents.draw_text(0,5,70,22,"Weapon:")
  711.     if @icons
  712.       draw_item_name_icon($data_weapons[@actor.weapon_id], 25, 0)
  713.     else
  714.       draw_item_name_only($data_weapons[@actor.weapon_id], 25, 0)
  715.     end
  716.    self.contents.draw_text(0,25,70,22,"Shield:")
  717.     if @icons
  718.      draw_item_name_icon($data_armors[@actor.armor1_id],25,20)
  719.     else
  720.      draw_item_name_only($data_armors[@actor.armor1_id],25,20)
  721.     end
  722.    self.contents.draw_text(0,45,70,22,"Helmet:")
  723.     if @icons
  724.      draw_item_name_icon($data_armors[@actor.armor2_id],25,40)
  725.     else
  726.      draw_item_name_only($data_armors[@actor.armor2_id],25,40)
  727.     end
  728.    self.contents.draw_text(0,65,70,22,"Armor:")
  729.      if @icons
  730.       draw_item_name_icon($data_armors[@actor.armor3_id],25,60)
  731.      else
  732.       draw_item_name_only($data_armors[@actor.armor3_id],25,60)
  733.      end
  734.       self.contents.draw_text(0,85,70,22,"Acc. :")
  735.      if @icons
  736.       draw_item_name_icon($data_armors[@actor.armor4_id],25,60)
  737.      else
  738.       draw_item_name_only($data_armors[@actor.armor4_id],25,60)
  739.      end
  740.   end
  741. end
  742. #==============================================================================
  743. # ** Sprite_Window
  744. #------------------------------------------------------------------------------
  745. #  This window displays the actor's sprite
  746. #==============================================================================
  747. class Sprite_Window < Window_Base
  748.  
  749.   def initialize(actor)
  750.     super(493, 341, 148, 139)
  751.     self.contents = Bitmap.new(width - 32, height - 32)
  752.     @actor = actor
  753.     self.contents.clear
  754.     draw_actor_graphic (@actor , 55, 69)
  755.   end
  756.    
  757.   end
  758. #==============================================================================
  759. # ** Character_Sheet
  760. #------------------------------------------------------------------------------
  761. #  This class is the bone of the Character Sheet.
  762. #==============================================================================
  763. class Scene_Status
  764.   #--------------------------------------------------------------------------
  765.   # * Object Initialization
  766.   #     actor_index : actor index
  767.   #--------------------------------------------------------------------------
  768.   def initialize(actor_index = 0, equip_index = 0)
  769.     @actor_index = actor_index
  770.   end
  771.   #--------------------------------------------------------------------------
  772.   # * Main Processing
  773.   #--------------------------------------------------------------------------
  774.   def main
  775.     # Get actor
  776.     @actor = $game_party.actors[@actor_index]
  777.     # Make status window
  778.     @status_window = Actor_Info.new(@actor)
  779.     @status_window.x = 0
  780.     @status_window.y = 0
  781.     @physical_window = Physical_Window.new(@actor)
  782.     @physical_window.x = 0
  783.     @physical_window.y = 129
  784.     @social_window = Social_Window.new(@actor)
  785.     @social_window.x = 0
  786.     @social_window.y = 228
  787.     @mental_window = Mental_Window.new(@actor)
  788.     @mental_window.x = 0
  789.     @mental_window.y = 327
  790.     @humanity_window = Humanity_Window.new(@actor)
  791.     @humanity_window.x = 0
  792.     @humanity_window.y = 426
  793.     @abilities = Abilities_Header.new    
  794.     @abilities.x = 155
  795.     @abilities.y = 0
  796.     @talents = Talents_Header.new
  797.     @talents.x = 155
  798.     @talents.y = 54
  799.     @skills = Skills_Header.new
  800.     @skills.x = 324
  801.     @skills.y = 54
  802.     @knowledges = Knowledges_Header.new
  803.     @knowledges.x = 493
  804.     @knowledges.y = 54
  805.     @talents_win = Talents_Window.new(@actor)
  806.     @skills_win = Skills_Window.new(@actor)
  807.     @knowledges_win = Knowledges_Window.new(@actor)
  808.     @equip = Equip_Window.new(@actor)
  809.     @sprite_window = Sprite_Window.new(@actor)
  810.     @willpower_window = Willpower_Window.new(@actor)
  811.     @conscience_window = Conscience_Window.new(@actor)
  812.     @slfctrl_window = Selfcontrol_Window.new(@actor)
  813.     # Execute transition
  814.     Graphics.transition
  815.     # Main loop
  816.     loop do
  817.       # Update game screen
  818.       Graphics.update
  819.       # Update input information
  820.       Input.update
  821.       # Frame update
  822.       update
  823.       # Abort loop if screen is changed
  824.       if $scene != self
  825.         break
  826.       end
  827.     end
  828.     # Prepare for transition
  829.     Graphics.freeze
  830.     # Dispose of windows
  831.     @status_window.dispose
  832.     @physical_window.dispose
  833.     @social_window.dispose
  834.     @mental_window.dispose
  835.     @humanity_window.dispose
  836.     @abilities.dispose
  837.     @talents.dispose
  838.     @skills.dispose
  839.     @knowledges.dispose
  840.     @talents_win.dispose
  841.     @skills_win.dispose
  842.     @knowledges_win.dispose
  843.     @equip.dispose
  844.     @sprite_window.dispose
  845.     @willpower_window.dispose
  846.     @conscience_window.dispose
  847.     @slfctrl_window.dispose
  848.   end
  849.   #--------------------------------------------------------------------------
  850.   # * Frame Update
  851.   #--------------------------------------------------------------------------
  852.   def update
  853.     # If B button was pressed
  854.     if Input.trigger?(Input::B)
  855.       # Play cancel SE
  856.       $game_system.se_play($data_system.cancel_se)
  857.       # Switch to menu screen
  858.       $scene = Scene_Menu.new(3)
  859.       return
  860.     end
  861.     # If R button was pressed
  862.     if Input.trigger?(Input::R)
  863.       # Play cursor SE
  864.       $game_system.se_play($data_system.cursor_se)
  865.       # To next actor
  866.       @actor_index += 1
  867.       @actor_index %= $game_party.actors.size
  868.       # Switch to different status screen
  869.       $scene = Scene_Status.new(@actor_index)
  870.       return
  871.     end
  872.     # If L button was pressed
  873.     if Input.trigger?(Input::L)
  874.       # Play cursor SE
  875.       $game_system.se_play($data_system.cursor_se)
  876.       # To previous actor
  877.       @actor_index += $game_party.actors.size - 1
  878.       @actor_index %= $game_party.actors.size
  879.       # Switch to different status screen
  880.       $scene = Scene_Status.new(@actor_index)
  881.       return
  882.     end
  883.   end
  884. end
Expand to see the code.

2.1 Spoiler
  1. #============================================================================
  2. # ** (V:TM)Character Sheet
  3. #----------------------------------------------------------------------------
  4. # by Ludicus Maximus aka Ludicus
  5. # Version 1.0
  6. # 16 June 2009
  7. #--------------
  8. # Version 2.0 (1062 lines -> 884 lines)
  9. # 29 August 2009
  10. #--------------
  11. # Version 2.1 (884 lines -> 679 lines)
  12. # 31 August 2009
  13. #----------------------------------------------------------------------------
  14. # Instructions:
  15. #  The script is plug and play, although in-game you have to call:
  16. #    $game_actors[ACTOR_ID].STAT = NUMBER
  17. #  You can also subtract (instead of STAT = NUMBER it's STAT -= NUMBER)
  18. #                    add (instead of STAT = NUMBER it's STAT += NUMBER)
  19. #  The stats are those that are written in the beginning of the script, after
  20. #  'attr_accessor   :' .
  21. #  Now, for example, you want the first character in the database to have 3 wits,
  22. #  the second to have 2 MORE charisma and the third to have 2 LESS brawl.
  23. #  In game you woud call script&#058;
  24. #"  $game_actors[1].wits = 3
  25. #   $game_actors[2].charisma += 2
  26. #   $game_actors[3].brawl -= 2  "
  27. # (without the quotes, of course). To verify a stat, call script in Conditional
  28. #   Branch: " $game_actors[WHATEVER].STAT == X"
  29. #  Instead of "==" you can have "<" (Less than), ">"(Greater than), ">="(Greater or
  30. #   equal to), or "<=" (Less than or equal to) or "!=" (Not equal to)          
  31. #----------------------------------------------------------------------------
  32. # Notes:
  33. # -Is obviously not compatible with other Custom Stat Scenes,but can be probably
  34. #    worked around.
  35. #----------------------------------------------------------------------------
  36. # Credits and Thanks:
  37. #
  38. # -White Wolf
  39. # -Me,aka Ludicus Maximus/Ludicus
  40. #
  41. # Special thanks to Kain Nobel
  42. #----------------------------------------------------------------------------
  43. #Please give credit to me when using this script,preferably as Ludicus Maximus
  44. #----------------------------------------------------------------------------
  45. class Game_Actor
  46.  
  47.   attr_accessor  :generation
  48.   attr_accessor  :humanity
  49.   attr_accessor  :strength
  50.   attr_accessor  :dexterity
  51.   attr_accessor  :stamina
  52.   attr_accessor  :charisma
  53.   attr_accessor  :manipulation
  54.   attr_accessor  :appearance
  55.   attr_accessor  :perception
  56.   attr_accessor  :intelligence
  57.   attr_accessor  :wits
  58.   attr_accessor  :alertness
  59.   attr_accessor  :brawl
  60.   attr_accessor  :dodge
  61.   attr_accessor  :expression
  62.   attr_accessor  :intimidation
  63.   attr_accessor  :subterfuge
  64.   attr_accessor  :animalken
  65.   attr_accessor  :crafts
  66.   attr_accessor  :etiquette
  67.   attr_accessor  :melee
  68.   attr_accessor  :performance
  69.   attr_accessor  :stealth  
  70.   attr_accessor  :academics
  71.   attr_accessor  :finance
  72.   attr_accessor  :investigation
  73.   attr_accessor  :law
  74.   attr_accessor  :medicine
  75.   attr_accessor  :occult
  76.   attr_accessor  :willpower
  77.   attr_accessor  :conscience
  78.   attr_accessor  :selfcontrol
  79.  
  80.   alias charascript_setup setup
  81.  
  82.   def setup(actor_id)
  83.     charascript_setup(actor_id)
  84.     @generation       = 0
  85.     @humanity         = 0
  86.     @strength         = 0
  87.     @dexterity        = 0
  88.     @stamina          = 0
  89.     @charisma         = 0
  90.     @manipulation     = 0
  91.     @appearance       = 0
  92.     @perception       = 0
  93.     @intelligence     = 0
  94.     @wits             = 0
  95.     @alertness        = 0
  96.     @brawl            = 0
  97.     @dodge            = 0
  98.     @expression       = 0
  99.     @intimidation     = 0
  100.     @subterfuge       = 0
  101.     @animalken        = 0
  102.     @crafts           = 0
  103.     @etiquette        = 0
  104.     @melee            = 0
  105.     @performance      = 0
  106.     @stealth          = 0
  107.     @academics        = 0
  108.     @finance          = 0
  109.     @investigation    = 0
  110.     @law              = 0
  111.     @medicine         = 0
  112.     @occult           = 0
  113.     @willpower        = 0
  114.     @conscience       = 0
  115.     @selfcontrol      = 0
  116.   end
  117. end
  118.  
  119. #========================================
  120. #Adds more methods in Window_Base
  121. #========================================
  122. class Window_Base
  123.  
  124.   #This will obviously draw the item name,but without the icon,is used in
  125.   # Equip_Window
  126.   def draw_item_name_only(item, x, y)
  127.     if item == nil
  128.       return
  129.     end
  130.    self.contents.font.color = crisis_color
  131.    self.contents.draw_text(x + 28, y, 212, 32, item.name)
  132.    self.contents.font.color = normal_color
  133.  end
  134.  
  135. end
  136. #==============================================================================
  137. # ** Actor_Info
  138. #------------------------------------------------------------------------------
  139. #  This window displays the actor's info (name, clan(class), generation
  140. #
  141. #==============================================================================
  142. class Actor_Info < Window_Base
  143.  
  144.   def initialize(actor)
  145.     super(0, 0, 156, 130)
  146.     self.contents = Bitmap.new(width - 32, height - 32)
  147.     @actor = actor
  148.     self.contents.clear    
  149.     self.contents.draw_text(0, 0, 50, 32, "Name: ")
  150.     draw_actor_name(@actor, 57,0)
  151.     self.contents.draw_text(0, 36, 50, 32, "Clan: ")
  152.     draw_actor_class(@actor, 56,36)
  153.     self.contents.draw_text(0, 72, 50, 32, "Gen: ")
  154.     self.contents.draw_text(56, 72, 50, 32, @actor.generation.to_s)
  155.   end #def
  156.    
  157.    end #class
  158. #==============================================================================
  159. # ** Physical_Window
  160. #------------------------------------------------------------------------------
  161. #  This window displays physical stats (strength,dexterity,stamina)
  162. #==============================================================================
  163. class Physical_Window < Window_Base
  164.  
  165.   def initialize(actor)
  166.     super(0, 129, 156, 100)
  167.     self.contents = Bitmap.new(width - 32, height - 32)
  168.     @actor = actor
  169.     self.contents.clear    
  170.     self.contents.draw_text(0, 0, 50, 32, "STR: ")      
  171.     self.contents.draw_text(0, 22, 50, 32, "DEX: ")
  172.     self.contents.draw_text(0, 44, 50, 32, "STA: ")
  173.     self.contents.draw_text(52, 0, 50, 32, @actor.strength.to_s)
  174.     self.contents.font.color = normal_color
  175.     self.contents.font.color = disabled_color
  176.     self.contents.draw_text(72, 0, 50, 32, '/5')
  177.     self.contents.font.color = normal_color
  178.     self.contents.draw_text(52, 22, 50, 32, @actor.dexterity.to_s)
  179.     self.contents.font.color = disabled_color
  180.     self.contents.draw_text(72, 22, 50, 32, '/5')
  181.     self.contents.font.color = normal_color
  182.     self.contents.draw_text(52, 44, 50, 32, @actor.stamina.to_s)
  183.     self.contents.font.color = disabled_color
  184.     self.contents.draw_text(72, 44, 50, 32, '/5')
  185.     self.contents.font.color = normal_color
  186.   end
  187.  
  188. end
  189. #==============================================================================
  190. # ** Social_Window
  191. #------------------------------------------------------------------------------
  192. #  This window displays social stats (charisma,manipulation,appearance)
  193. #==============================================================================
  194. class Social_Window < Window_Base
  195.  
  196.   def initialize(actor)
  197.     super(0, 228, 156, 100)
  198.     self.contents = Bitmap.new(width - 32, height - 32)
  199.     self.contents.draw_text(0, 0, 50, 32, "CHA: ")      
  200.     self.contents.draw_text(0, 22, 50, 32, "MAN: ")
  201.     self.contents.draw_text(0, 44, 50, 32, "APP: ")
  202.     @actor = actor
  203.     self.contents.draw_text(52, 0, 50, 32, @actor.charisma.to_s)
  204.     self.contents.font.color = disabled_color
  205.     self.contents.draw_text(72, 0, 50, 32, '/5')
  206.     self.contents.font.color = normal_color
  207.     self.contents.draw_text(52, 22, 50, 32, @actor.manipulation.to_s)
  208.     self.contents.font.color = disabled_color
  209.     self.contents.draw_text(72, 22, 50, 32, '/5')
  210.     self.contents.font.color = normal_color
  211.     self.contents.draw_text(52, 44, 50, 32, @actor.appearance.to_s)
  212.     self.contents.font.color = disabled_color
  213.     self.contents.draw_text(72, 44, 50, 32, '/5')
  214.     self.contents.font.color = normal_color
  215.   end
  216.  
  217. end
  218. #==============================================================================
  219. # ** Mental_Window
  220. #------------------------------------------------------------------------------
  221. #  This window displays mental stats (perception,intelligence,wits)
  222. #==============================================================================
  223. class Mental_Window < Window_Base
  224.  
  225.   def initialize(actor)
  226.     super(0, 327, 156, 100)
  227.     self.contents = Bitmap.new(width - 32, height - 32)
  228.     self.contents.draw_text(0, 0, 50, 32, "PER: ")      
  229.     self.contents.draw_text(0, 22, 50, 32, "INT: ")
  230.     self.contents.draw_text(0, 44, 50, 32, "WTS: ")
  231.     @actor = actor
  232.     self.contents.draw_text(52, 0, 50, 32, @actor.perception.to_s)
  233.     self.contents.font.color = disabled_color
  234.     self.contents.draw_text(72, 0, 50, 32, '/5')
  235.     self.contents.font.color = normal_color
  236.     self.contents.draw_text(52, 22, 50, 32, @actor.intelligence.to_s)
  237.     self.contents.font.color = disabled_color
  238.     self.contents.draw_text(72, 22, 50, 32, '/5')
  239.     self.contents.font.color = normal_color
  240.     self.contents.draw_text(52, 44, 50, 32, @actor.wits.to_s)
  241.     self.contents.font.color = disabled_color
  242.     self.contents.draw_text(72, 44, 50, 32, '/5')
  243.     self.contents.font.color = normal_color
  244.    end
  245.  
  246.   end
  247. #==============================================================================
  248. # ** Humanity_Window
  249. #------------------------------------------------------------------------------
  250. #  This window displays the Humanity stat
  251. #==============================================================================
  252. class Humanity_Window < Window_Base
  253.  
  254.   def initialize(actor)
  255.     super(0, 426, 156, 55)
  256.     self.contents = Bitmap.new(width - 32, height - 32)    
  257.     self.contents.draw_text(0, 0, 80, 24, "Humanity: ")
  258.     @actor = actor
  259.     self.contents.draw_text(70, 0, 50, 25, @actor.humanity.to_s)
  260.     self.contents.font.color = disabled_color
  261.     self.contents.draw_text(90, 0, 50, 25, '/10')
  262.     self.contents.font.color = normal_color
  263.     end
  264.  
  265.   end
  266. #==============================================================================
  267. # ** Talents_Window
  268. #==============================================================================
  269. class Talents_Window < Window_Base
  270.  
  271.   def initialize(actor)
  272.     super(155, 105, 170, 165)
  273.     self.contents = Bitmap.new(width - 32, height - 32)
  274.     self.contents.font.size = 20
  275.     self.contents.draw_text(0, 0, 65, 32, "Alertness: ")      
  276.     self.contents.draw_text(0, 22, 60, 32, "Brawl: ")
  277.     self.contents.draw_text(0, 44, 60, 32, "Dodge: ")
  278.     self.contents.draw_text(0, 66, 70, 32, "Expression: ")
  279.     self.contents.draw_text(0, 88, 75, 32, "Intimidation: ")
  280.     self.contents.draw_text(0, 110, 75, 32, "Subterfuge: ")
  281.     @actor = actor
  282.     self.contents.draw_text(72, 0, 50, 32, @actor.alertness.to_s)
  283.     self.contents.font.color = disabled_color
  284.     self.contents.draw_text(92, 0, 50, 32, '/5')
  285.     self.contents.font.color = normal_color
  286.     self.contents.draw_text(72, 22, 50, 32, @actor.brawl.to_s)
  287.     self.contents.font.color = disabled_color
  288.     self.contents.draw_text(92, 22, 50, 32, '/5')
  289.     self.contents.font.color = normal_color
  290.     self.contents.draw_text(72, 44, 50, 32, @actor.dodge.to_s)
  291.     self.contents.font.color = disabled_color
  292.     self.contents.draw_text(92, 44, 50, 32, '/5')
  293.     self.contents.font.color = normal_color
  294.     self.contents.draw_text(72, 66, 50, 32, @actor.expression.to_s)
  295.     self.contents.font.color = disabled_color
  296.     self.contents.draw_text(92, 66, 50, 32, '/5')
  297.     self.contents.font.color = normal_color
  298.     self.contents.draw_text(72, 88, 50, 32, @actor.intimidation.to_s)
  299.     self.contents.font.color = disabled_color
  300.     self.contents.draw_text(92, 88, 50, 32, '/5')
  301.     self.contents.font.color = normal_color
  302.     self.contents.draw_text(72, 110, 50, 32, @actor.subterfuge.to_s)
  303.     self.contents.font.color = disabled_color
  304.     self.contents.draw_text(92, 110, 50, 32, '/5')
  305.     self.contents.font.color = normal_color
  306.   end
  307.          
  308. end
  309. #==============================================================================
  310. # ** Self-Control_Window
  311. #==============================================================================
  312. class Selfcontrol_Window < Window_Base
  313.  
  314.   def initialize(actor)
  315.     super(155, 269, 170, 73)
  316.     self.contents = Bitmap.new(width - 32, height - 32)
  317.     self.contents.font.size = 20
  318.     self.contents.draw_text(0, 0, 95, 32, "Self-Control: ")
  319.     @actor = actor
  320.     self.contents.draw_text(85, 0, 50, 32, @actor.selfcontrol.to_s)
  321.     self.contents.font.color = disabled_color
  322.     self.contents.draw_text(100, 0, 50, 32, '/5')
  323.   end#def
  324.  
  325. end
  326. #==============================================================================
  327. # ** Skills_Window
  328. #==============================================================================
  329. class Skills_Window < Window_Base
  330.  
  331.   def initialize(actor)
  332.     super(324, 105, 170, 165)
  333.     self.contents = Bitmap.new(width - 32, height - 32)
  334.     self.contents.font.size = 20
  335.     self.contents.draw_text(0, 0, 85, 32, "Animal Ken: ")
  336.     self.contents.draw_text(0, 22, 63, 32, "Crafts: ")
  337.     self.contents.draw_text(0, 44, 70, 32, "Etiquette: ")
  338.     self.contents.draw_text(0, 66, 60, 32, "Melee: ")
  339.     self.contents.draw_text(0, 88, 90, 32, "Performance: ")
  340.     self.contents.draw_text(0, 110, 85, 32, "Stealth: ")
  341.     @actor = actor
  342.     self.contents.draw_text(79, 0, 50, 32, @actor.animalken.to_s)
  343.     self.contents.font.color = disabled_color
  344.     self.contents.draw_text(99, 0, 50, 32, '/5')
  345.     self.contents.font.color = normal_color
  346.     self.contents.draw_text(79, 22, 50, 32, @actor.crafts.to_s)
  347.     self.contents.font.color = disabled_color
  348.     self.contents.draw_text(99, 22, 50, 32, '/5')
  349.     self.contents.font.color = normal_color
  350.     self.contents.draw_text(79, 44, 50, 32, @actor.etiquette.to_s)
  351.     self.contents.font.color = disabled_color
  352.     self.contents.draw_text(99, 44, 50, 32, '/5')
  353.     self.contents.font.color = normal_color
  354.     self.contents.draw_text(79, 66, 50, 32, @actor.melee.to_s)
  355.     self.contents.font.color = disabled_color
  356.     self.contents.draw_text(99, 66, 50, 32, '/5')
  357.     self.contents.font.color = normal_color
  358.     self.contents.draw_text(79, 88, 50, 32, @actor.performance.to_s)
  359.     self.contents.font.color = disabled_color
  360.     self.contents.draw_text(99, 88, 50, 32, '/5')
  361.     self.contents.font.color = normal_color
  362.     self.contents.draw_text(79, 110, 50, 32, @actor.stealth.to_s)
  363.     self.contents.font.color = disabled_color
  364.     self.contents.draw_text(99, 110, 50, 32, '/5')
  365.     self.contents.font.color = normal_color
  366.     end#def
  367.  
  368.   end
  369. #==============================================================================
  370. # ** Conscience_Window
  371. #==============================================================================
  372. class Conscience_Window < Window_Base
  373.  
  374.   def initialize(actor)
  375.     super(324, 269, 170, 73)
  376.     self.contents = Bitmap.new(width - 32, height - 32)
  377.     self.contents.font.size = 20
  378.     self.contents.draw_text(0, 0, 95, 32, "Conscience: ")
  379.     @actor = actor
  380.     self.contents.draw_text(85, 0, 50, 32, @actor.conscience.to_s)
  381.     self.contents.font.color = disabled_color
  382.     self.contents.draw_text(100, 0, 50, 32, '/5')
  383.   end#def
  384.  
  385. end
  386. #==============================================================================
  387. # ** Knowledges_Window
  388. #==============================================================================
  389. class Knowledges_Window < Window_Base
  390.  
  391.   def initialize(actor)
  392.     super(493, 105, 148, 165)
  393.     self.contents = Bitmap.new(width - 32, height - 32)
  394.     self.contents.font.size = 20
  395.     self.contents.draw_text(0, 0, 85, 32, "Academics: ")
  396.     self.contents.draw_text(0, 22, 63, 32, "Finance: ")
  397.     self.contents.draw_text(0, 44, 85, 32, "Investigation: ")
  398.     self.contents.draw_text(0, 66, 60, 32, "Law: ")
  399.     self.contents.draw_text(0, 88, 80, 32, "Medicine: ")
  400.     self.contents.draw_text(0, 110, 70, 32, "Occult: ")
  401.     @actor = actor
  402.     self.contents.draw_text(85, 0, 50, 32, @actor.academics.to_s)
  403.     self.contents.font.color = disabled_color
  404.     self.contents.draw_text(100, 0, 50, 32, '/5')
  405.     self.contents.font.color = normal_color
  406.     self.contents.draw_text(85, 22, 50, 32, @actor.finance.to_s)
  407.     self.contents.font.color = disabled_color
  408.     self.contents.draw_text(100, 22, 50, 32, '/5')
  409.     self.contents.font.color = normal_color
  410.     self.contents.draw_text(85, 44, 50, 32, @actor.investigation.to_s)
  411.     self.contents.font.color = disabled_color
  412.     self.contents.draw_text(100, 44, 50, 32, '/5')
  413.     self.contents.font.color = normal_color
  414.     self.contents.draw_text(85, 66, 50, 32, @actor.law.to_s)
  415.     self.contents.font.color = disabled_color
  416.     self.contents.draw_text(100, 66, 50, 32, '/5')
  417.     self.contents.font.color = normal_color
  418.     self.contents.draw_text(85, 88, 50, 32, @actor.medicine.to_s)
  419.     self.contents.font.color = disabled_color
  420.     self.contents.draw_text(100, 88, 50, 32, '/5')
  421.     self.contents.font.color = normal_color
  422.     self.contents.draw_text(85, 110, 50, 32, @actor.occult.to_s)
  423.     self.contents.font.color = disabled_color
  424.     self.contents.draw_text(100, 110, 50, 32, '/5')
  425.     self.contents.font.color = normal_color
  426.   end#def
  427.  
  428. end
  429.  
  430. #==============================================================================
  431. # ** Willpower_Window
  432. #==============================================================================
  433. class Willpower_Window < Window_Base
  434.  
  435.   def initialize(actor)
  436.     super(493, 269, 148, 73)
  437.     self.contents = Bitmap.new(width - 32, height - 32)
  438.     self.contents.font.size = 20
  439.     self.contents.draw_text(0, 0, 85, 32, "Willpower: ")
  440.     @actor = actor
  441.     self.contents.draw_text(85, 0, 50, 32, @actor.willpower.to_s)
  442.     self.contents.font.color = disabled_color
  443.     self.contents.draw_text(100, 0, 50, 32, '/5')
  444.   end#def
  445.  
  446. end
  447. #==============================================================================
  448. # ** Abilities_Header
  449. #------------------------------------------------------------------------------
  450. #  This window is a header for everything in the right part of the screen
  451. #==============================================================================
  452. class Abilities_Header < Window_Base
  453.  
  454.   def initialize()
  455.     super(155, 0, 487, 55)
  456.     self.contents = Bitmap.new(width - 32, height - 32)
  457.     self.contents.clear    
  458.     self.contents.draw_text(193, 0, 150, 24, "ABILITIES")
  459.  end
  460.  
  461.   end
  462. #==============================================================================
  463. # ** Talents_Header
  464. #------------------------------------------------------------------------------
  465. #  This window is a header for the Talents Window
  466. #==============================================================================
  467. class Talents_Header < Window_Base
  468.  
  469.   def initialize()
  470.     super(155, 54, 170, 52)
  471.     self.contents = Bitmap.new(width - 32, height - 32)
  472.     self.contents.clear    
  473.     self.contents.draw_text(15, 0, 150, 24, "TALENTS")
  474.   end
  475.    
  476. end
  477. #==============================================================================
  478. # ** Skills_Header
  479. #------------------------------------------------------------------------------
  480. #  This window is a header for the Skills Window
  481. #==============================================================================
  482. class Skills_Header < Window_Base
  483.  
  484.   def initialize()
  485.     super(324, 54, 170, 52)
  486.     self.contents = Bitmap.new(width - 32, height - 32)
  487.     self.contents.clear    
  488.     self.contents.draw_text(18, 0, 150, 24, "SKILLS")  
  489.   end
  490.  
  491.   end
  492. #==============================================================================
  493. # ** Knowledges_Header
  494. #------------------------------------------------------------------------------
  495. #  This window is a header for the Knowledges window
  496. #==============================================================================
  497. class Knowledges_Header < Window_Base
  498.  
  499.   def initialize()
  500.     super(493, 54, 148, 52)
  501.     self.contents = Bitmap.new(width - 32, height - 32)
  502.     self.contents.clear    
  503.     self.contents.draw_text(0, 0, 120, 24, "KNOWLEDGES")        
  504.   end
  505.  
  506.   end
  507. #==============================================================================
  508. # ** Equip_Window
  509. #------------------------------------------------------------------------------
  510. #  This window displays what the actor has equipped(minus the icons)
  511. #  If you want to show the icons change @icons to true
  512. #==============================================================================
  513. class Equip_Window < Window_Base
  514.  
  515.   def initialize(actor)
  516.    super(155,341,339,139)
  517.    self.contents = Bitmap.new(width - 32, height - 32)
  518.    self.contents.font.name = "Arial"
  519.    @actor = actor
  520.    @icons = false
  521.    self.contents.clear
  522.    self.contents.font.size = 15
  523.    self.contents.draw_text(0,5,70,22,"Weapon:")
  524.     if @icons
  525.       draw_item_name_icon($data_weapons[@actor.weapon_id], 25, 0)
  526.     else
  527.       draw_item_name_only($data_weapons[@actor.weapon_id], 25, 0)
  528.     end
  529.    self.contents.draw_text(0,25,70,22,"Shield:")
  530.     if @icons
  531.      draw_item_name_icon($data_armors[@actor.armor1_id],25,20)
  532.     else
  533.      draw_item_name_only($data_armors[@actor.armor1_id],25,20)
  534.     end
  535.    self.contents.draw_text(0,45,70,22,"Helmet:")
  536.     if @icons
  537.      draw_item_name_icon($data_armors[@actor.armor2_id],25,40)
  538.     else
  539.      draw_item_name_only($data_armors[@actor.armor2_id],25,40)
  540.     end
  541.    self.contents.draw_text(0,65,70,22,"Armor:")
  542.      if @icons
  543.       draw_item_name_icon($data_armors[@actor.armor3_id],25,60)
  544.      else
  545.       draw_item_name_only($data_armors[@actor.armor3_id],25,60)
  546.      end
  547.       self.contents.draw_text(0,85,70,22,"Acc. :")
  548.      if @icons
  549.       draw_item_name_icon($data_armors[@actor.armor4_id],25,60)
  550.      else
  551.       draw_item_name_only($data_armors[@actor.armor4_id],25,60)
  552.      end
  553.   end
  554. end
  555. #==============================================================================
  556. # ** Sprite_Window
  557. #------------------------------------------------------------------------------
  558. #  This window displays the actor's sprite
  559. #==============================================================================
  560. class Sprite_Window < Window_Base
  561.  
  562.   def initialize(actor)
  563.     super(493, 341, 148, 139)
  564.     self.contents = Bitmap.new(width - 32, height - 32)
  565.     @actor = actor
  566.     self.contents.clear
  567.     draw_actor_graphic (@actor , 55, 69)
  568.   end
  569.    
  570.   end
  571. #==============================================================================
  572. # ** Character_Sheet
  573. #------------------------------------------------------------------------------
  574. #  This class is the bone of the Character Sheet.
  575. #==============================================================================
  576. class Scene_Status
  577.   #--------------------------------------------------------------------------
  578.   # * Object Initialization
  579.   #     actor_index : actor index
  580.   #--------------------------------------------------------------------------
  581.   def initialize(actor_index = 0, equip_index = 0)
  582.     @actor_index = actor_index
  583.   end
  584.   #--------------------------------------------------------------------------
  585.   # * Main Processing
  586.   #--------------------------------------------------------------------------
  587.   def main
  588.     # Get actor
  589.     @actor = $game_party.actors[@actor_index]
  590.     # Make status window
  591.     @status_window = Actor_Info.new(@actor)
  592.     @physical_window = Physical_Window.new(@actor)
  593.     @social_window = Social_Window.new(@actor)
  594.     @mental_window = Mental_Window.new(@actor)
  595.     @humanity_window = Humanity_Window.new(@actor)
  596.     @abilities = Abilities_Header.new    
  597.     @talents = Talents_Header.new
  598.     @skills = Skills_Header.new
  599.     @knowledges = Knowledges_Header.new
  600.     @talents_win = Talents_Window.new(@actor)
  601.     @skills_win = Skills_Window.new(@actor)
  602.     @knowledges_win = Knowledges_Window.new(@actor)
  603.     @equip = Equip_Window.new(@actor)
  604.     @sprite_window = Sprite_Window.new(@actor)
  605.     @willpower_window = Willpower_Window.new(@actor)
  606.     @conscience_window = Conscience_Window.new(@actor)
  607.     @slfctrl_window = Selfcontrol_Window.new(@actor)
  608.     # Execute transition
  609.     Graphics.transition
  610.     # Main loop
  611.     loop do
  612.       # Update game screen
  613.       Graphics.update
  614.       # Update input information
  615.       Input.update
  616.       # Frame update
  617.       update
  618.       # Abort loop if screen is changed
  619.       if $scene != self
  620.         break
  621.       end
  622.     end
  623.     # Prepare for transition
  624.     Graphics.freeze
  625.     # Dispose of windows
  626.     @status_window.dispose
  627.     @physical_window.dispose
  628.     @social_window.dispose
  629.     @mental_window.dispose
  630.     @humanity_window.dispose
  631.     @abilities.dispose
  632.     @talents.dispose
  633.     @skills.dispose
  634.     @knowledges.dispose
  635.     @talents_win.dispose
  636.     @skills_win.dispose
  637.     @knowledges_win.dispose
  638.     @equip.dispose
  639.     @sprite_window.dispose
  640.     @willpower_window.dispose
  641.     @conscience_window.dispose
  642.     @slfctrl_window.dispose
  643.   end
  644.   #--------------------------------------------------------------------------
  645.   # * Frame Update
  646.   #--------------------------------------------------------------------------
  647.   def update
  648.     # If B button was pressed
  649.     if Input.trigger?(Input::B)
  650.       # Play cancel SE
  651.       $game_system.se_play($data_system.cancel_se)
  652.       # Switch to menu screen
  653.       $scene = Scene_Menu.new(3)
  654.       return
  655.     end
  656.     # If R button was pressed
  657.     if Input.trigger?(Input::R)
  658.       # Play cursor SE
  659.       $game_system.se_play($data_system.cursor_se)
  660.       # To next actor
  661.       @actor_index += 1
  662.       @actor_index %= $game_party.actors.size
  663.       # Switch to different status screen
  664.       $scene = Scene_Status.new(@actor_index)
  665.       return
  666.     end
  667.     # If L button was pressed
  668.     if Input.trigger?(Input::L)
  669.       # Play cursor SE
  670.       $game_system.se_play($data_system.cursor_se)
  671.       # To previous actor
  672.       @actor_index += $game_party.actors.size - 1
  673.       @actor_index %= $game_party.actors.size
  674.       # Switch to different status screen
  675.       $scene = Scene_Status.new(@actor_index)
  676.       return
  677.     end
  678.   end
  679. end
Expand to see the code.



Instructions
1.0 Spoiler
Simply go in the script editor and check which variable corresponds to a player's ability and modify that variable where you need it.(Control Variables... in RMXP)
When you see this:
  1. @(ability name)_a(actor number) = $game_variables [(variable)]
Expand to see the code.

Everywhere you see the above,edit (variable) to the variable you want the (ability name) for actor(actor number) to be.
If you want more than 3 actors,you'll have to add more of the above(for example:
  1. @(ability name)_a13 = $game_variables [112]
Expand to see the code.
)
and below it the if clause copy-paste the two lines:the one with the elsifand the one below it.
[code] elsif @actor.index == (the actor's number in the database -1)
self.contents.draw_text([whatever the coordinates are, @(ability name)_a(actor number).to_s)


2.0 Spoiler
# The script is plug and play, although in-game you have to call:
$game_actors[ACTOR_ID].STAT = NUMBER
You can also subtract (instead of STAT = NUMBER it's STAT -= NUMBER)
add (instead of STAT = NUMBER it's STAT += NUMBER)
The stats are those that are written in the beginning of the script, after
'attr_accessor :' .
Now, for example, you want the first character in the database to have 3 wits,
the second to have 2 MORE charisma and the third to have 2 LESS brawl.
In game you woud call script:
" $game_actors[1].wits = 3
$game_actors[2].charisma += 2
$game_actors[3].brawl -= 2 "
(without the quotes, of course). To verify a stat, call script in Conditional
Branch: " $game_actors[WHATEVER].STAT == X"
Instead of "==" you can have "<" (Less than), ">"(Greater than), ">="(Greater or
equal to), or "<=" (Less than or equal to) or "!=" (Not equal to)




FAQ

* wat do
Check above.

Credits and Thanks

-White Wolf
-Me,aka Ludicus Maximus/Ludicus
Special thanks to Kain Nobel. :3

Author's Notes

lol w00t antediluvians will rise and kill everything lol


Terms and Conditions
Please give credit to me when using this script,preferably as Ludicus Maximus.
You can use this script in commercial projects.
This is very good. I shall use this, if I may, good sir.
This is a pretty good script. I can think of no particular use at the moment for it myself, but I will keep in mind for the future. Wonderful work!
Can I just say something? I think this is a brilliant idea! Thanks for sharing! This makes me want to create my own menus and stuff again...I used to be really good at coming up with ideas for stuff like this.
This is very cool but others stats like stamina, charisma and others or melee skils... change something on the game?
Like i have 3/5 of melee so ... my hero do more weapon damage?
@Eldnar:No,they do not change anything,but you can use them in quests,for example Mr. XYZ cannot fight with Mr. EFG unless he has at least 3 brawl.
@Others:Thanks for the feedback! 🙂
Absolutely fantastic...

I myself play a toreador every thursday, but hopefully Ill get chance to use my assemite eventualy lol

this will make rpg xp just that little more interesting and I hope to god theres gonna be a few WOD games come out for me to play.

I also would like to see someone make a script so that you can transfer characters between various Vampire games, but its probably not gonna happen
@corleonis: Thanks, I'm working on a V:TM game, though it's still early in production.

OK people, script updated to 2.0
-Removed dependancy upon game variables
-Easier to use
-3 more stats
-Smaller by ~200 lines.
You already have THIS...

  1.    attr_accessor  :generation
  2.   attr_accessor  :humanity
  3.   attr_accessor  :strength
  4.   attr_accessor  :dexterity
  5.   attr_accessor  :stamina
  6.   attr_accessor  :charisma
  7.   attr_accessor  :manipulation
  8.   attr_accessor  :appearance
  9.   attr_accessor  :perception
  10.   attr_accessor  :intelligence
  11.   attr_accessor  :wits
  12.   attr_accessor  :alertness
  13.   attr_accessor  :brawl
  14.   attr_accessor  :dodge
  15.   attr_accessor  :expression
  16.   attr_accessor  :intimidation
  17.   attr_accessor  :subterfuge
  18.   attr_accessor  :animalken
  19.   attr_accessor  :crafts
  20.   attr_accessor  :etiquette
  21.   attr_accessor  :melee
  22.   attr_accessor  :performance
  23.   attr_accessor  :stealth  
  24.   attr_accessor  :academics
  25.   attr_accessor  :finance
  26.   attr_accessor  :investigation
  27.   attr_accessor  :law
  28.   attr_accessor  :medicine
  29.   attr_accessor  :occult
  30.   attr_accessor  :willpower
  31.   attr_accessor  :conscience
  32.   attr_accessor  :selfcontrol
Expand to see the code.


...Which means you can REMOVE all of this...

  1.    def generation
  2.     return @generation
  3.   end
  4.   def generation=(gen)
  5.    @generation = gen
  6.   end
  7.   def humanity
  8.     return @humanity
  9.   end
  10.   def humanity=(hum)
  11.    @humanity = hum
  12.   end
  13.   def strength
  14.     return @strength
  15.   end
  16.   def strength=(str)
  17.    @strength = str
  18.   end
  19.   def dexterity
  20.     return @dexterity
  21.   end
  22.   def dexterity=(dex)
  23.     @dexterity = dex
  24.   end
  25.   def stamina
  26.     return @stamina
  27.   end
  28.   def stamina=(sta)
  29.     @stamina = sta
  30.   end
  31.   def charisma
  32.     return @charisma
  33.   end
  34.   def charisma=(cha)
  35.     @charisma = cha
  36.   end
  37.   def manipulation
  38.     return @manipulation
  39.   end
  40.   def manipulation=(man)
  41.     @manipulation = man
  42.   end
  43.   def appearance
  44.     return @appearance
  45.   end
  46.   def appearance=(app)
  47.     @appearance = app
  48.   end
  49.   def perception
  50.     return @perception
  51.   end
  52.   def perception=(per)
  53.     @perception = per
  54.   end
  55.   def intelligence
  56.     return @intelligence
  57.   end
  58.   def intelligence=(int)
  59.     @intelligence = int
  60.   end
  61.   def wits
  62.     return @wits
  63.   end
  64.   def wits=(wts)
  65.     @wits = wts
  66.   end
  67.   def alertness
  68.     return @alertness
  69.   end
  70.   def alertness=(arlt)
  71.     @alertness = arlt
  72.   end
  73.   def brawl
  74.     return @brawl
  75.   end
  76.   def brawl=(brw)
  77.     @brawl = brw
  78.   end
  79.   def dodge
  80.     return @dodge
  81.   end
  82.   def dodge=(ddg)
  83.     @dodge = ddg
  84.   end
  85.   def expression
  86.     return @expression
  87.   end
  88.   def expression=(expr)
  89.     @expression = expr
  90.   end
  91.   def intimidation
  92.     return @intimidation
  93.   end
  94.   def intimidation=(intm)
  95.     @intimidation = intm
  96.   end
  97.   def subterfuge
  98.     return @subterfuge
  99.   end
  100.   def subterfuge=(subt)
  101.     @subterfuge = subt
  102.   end
  103.   def animalken
  104.     return @animalken
  105.   end
  106.   def animalken=(ank)
  107.     @animaken = ank
  108.   end
  109.   def crafts
  110.     return @crafts
  111.   end
  112.   def crafts=(crft)
  113.     @crafts = crft
  114.   end
  115.   def etiquette
  116.     return @etiquette
  117.   end
  118.   def etiquette=(etq)
  119.     @etiquette = etq
  120.   end
  121.   def melee
  122.     return @melee
  123.   end
  124.   def melee=(mle)
  125.     @melee = mle
  126.   end
  127.   def performance
  128.     return @performance
  129.   end
  130.   def performance=(prfr)
  131.     @performance = prfr
  132.   end
  133.   def stealth
  134.    return @stealth
  135.   end
  136.   def stealth=(sthl)
  137.     @stealth = sthl
  138.   end
  139.   def academics
  140.     return @academics
  141.   end
  142.   def academics=(acdm)
  143.     @academics = acdm
  144.   end
  145.   def finance
  146.     return @finance
  147.   end
  148.   def finance=(fnc)
  149.     @finance = fnc
  150.   end
  151.   def investigation
  152.     return @investigation
  153.   end
  154.   def investigation=(invst)
  155.     @investigation = invst
  156.   end
  157.   def law
  158.     return @law
  159.   end
  160.   def law=(lw)
  161.     @law = lw
  162.   end
  163.   def medicine
  164.     return @medicine
  165.   end
  166.   def medicine=(mdc)
  167.     @medicine = mdc
  168.   end
  169.   def occult
  170.     return @occult
  171.   end
  172.   def occult=(oclt)
  173.     @occult = oclt
  174.   end
  175.   def willpower
  176.     return @willpower
  177.   end
  178.   def willpower=(wlpr)
  179.     @willpower = wlpr
  180.   end
  181.   def conscience
  182.     return @conscience
  183.   end
  184.   def conscience=(consc)
  185.     @conscience = consc
  186.   end
  187.   def selfcontrol
  188.     return @selfcontrol
  189.   end
  190.   def selfcontrol=(slfctrl)
  191.     @selfcontrol = slfctrl
  192.   end
Expand to see the code.


Only reason to define your own reader and/or writter type methods is if you had variables which must always be a specific type of value (ie, must always be a Number, String, Array, true/false, etc...). In that case you'd have...

Content Hidden Spoiler
Reader Method
  1. def charisma
  2.   # Set @charisma to 0 if nil, then return @charisma's value
  3.   @charisma ||= 0
  4. end
Expand to see the code.

Writter Method
  1. def charisma=(value)
  2.   # Do nothing if value isn't a Integer
  3.   return unless value.is_a?(Integer)
  4.   # Otherwise, send value to @charisma
  5.   @charisma = value
  6. end
Expand to see the code.


You can even swap them by using an attr_reader :someval, and hand-defining def someval, or visa-versa


Also, I see in your scene you have this...

  1.  @status_window = Actor_Info.new(@actor)
  2.     @status_window.x = 0
  3.     @status_window.y = 0
  4.     @physical_window = Physical_Window.new(@actor)
  5.     @physical_window.x = 0
  6.     @physical_window.y = 129
  7.     @social_window = Social_Window.new(@actor)
  8.     @social_window.x = 0
  9.     @social_window.y = 228
  10.     @mental_window = Mental_Window.new(@actor)
  11.     @mental_window.x = 0
  12.     @mental_window.y = 327
  13.     @humanity_window = Humanity_Window.new(@actor)
  14.     @humanity_window.x = 0
  15.     @humanity_window.y = 426
  16.     @abilities = Abilities_Header.new    
  17.     @abilities.x = 155
  18.     @abilities.y = 0
  19.     @talents = Talents_Header.new
  20.     @talents.x = 155
  21.     @talents.y = 54
  22.     @skills = Skills_Header.new
  23.     @skills.x = 324
  24.     @skills.y = 54
  25.     @knowledges = Knowledges_Header.new
  26.     @knowledges.x = 493
  27.     @knowledges.y = 54
Expand to see the code.


If x/y values are already defined when the windows are initialized, you can clean up your scene by removing the @window.x = and @window.y = calls, thats a whole 2 lines per window if all you're doing is x and y ='s stuff. Same thing goes for other attributes, such as opacity, z, active, visible, etc... they can all be defined in Window_Something#initialize

Lastly, when defining a method (ie function, since I'm guessing you come from a C background)...

def some_function()

You only need () if you're defining a method with one or more arguments. With C language, you need those parantheses even if you don't have any arguments to pass, but Ruby doesn't need those silly parantheses if there is no required or optional arguments.

Other than alot of the repetitive code, the script looks pretty nifty! Keep on keepin' on and I think you might become a pretty good coder one of these days :thumb:
Thanks a lot for the explanations, Kain. :o:

Quote:
Other than alot of the repetitive code, the script looks pretty nifty! Keep on keepin' on and I think you might become a pretty good coder one of these days

Thanks, but I need a lot of practice.

That being said, updating the script.
Cleaned up nicely, good job! :thumb:
Hey there,

Sorry for digging up such an old topic.

Fact is I started working on two RPG based on WOD (One inspired by both Vampire Dark ages and Vampire the Masquerade, second inspired by Vampire the Requiem).

After searching on the net I found this script.
So I tried it. But I'm using VXace (Yeah I know...)
So Suprise... It bugs under VXace.

So I was wondering if someone had adapted the script to VX / VXace.

Thanks in advance for replies.
UP

Hello? Nothing at all :blank:
You're better off taking the script's original link and making a script request for a VXace conversion than hoping that users from 5 years ago are still around on the same web forum and still have interest in RPG Maker XP and VXace to do the conversion.

Some copy licences would be a problem, the original creator never intended it to go to VXace (As that didn't even exist at the time) so request a script based on this script.

Head over here and make a request thread, remember to be as detailed as you can (Include a link to this thread and perhaps those screenshots) and be specific that you want a new, clean VXace implementation to avoid any copying issues that may arise.

I'm locking this thread so discussion is not carried on here.

PM me Ludicus if you need the thread re-opened.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=65406