Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # TheoAllen - Display Parameter Change
- # Version : 1.0
- # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
- # (English Documentation)
- # =============================================================================
- ($imported ||= {})[:Theo_DisplayParamChange] = true
- # =============================================================================
- # Change Logs:
- # -----------------------------------------------------------------------------
- # 2013.11.12 - Finished Script
- # =============================================================================
- =begin
- Introduction :
- This script show the character original parameter and its additional value
- in the status menu. The additional parameter value is based on status, equip
- and features. While original parameter is based on actor's class
- How to use :
- Put this script below material but above main
- It's recommended to puts this script above all others
- Terms of use :
- Credit me, TheoAllen. You are free to edit this script by your own. As long
- as you don't claim it yours. For commercial purpose, don't forget to give me
- a free copy of the game.
- =end
- # =============================================================================
- # Do not touch pass this line
- # =============================================================================
- class Window_Base < Window
- # --------------------------------------------------------------------------
- # Overwrite draw actor param
- # --------------------------------------------------------------------------
- alias theo_show_add_param draw_actor_param
- def draw_actor_param(actor, x, y, param_id, ori_method = false)
- return theo_show_add_param(actor, x,y, param_id) if ori_method
- change_color(system_color)
- draw_text(x, y, 120, line_height, Vocab::param(param_id))
- change_color(normal_color)
- ori_param = actor.param_base(param_id)
- w = text_size(ori_param.to_s).width
- draw_text(x + 120 - w, y, 36, line_height, ori_param, 2)
- param_diff = actor.param_diff(param_id)
- return if param_diff == 0
- if param_diff > 0
- change_color(power_up_color)
- elsif param_diff < 0
- change_color(power_down_color)
- end
- draw_text(x + 120 + w, y, contents.width, line_height,
- actor.param_diff_s(param_id))
- end
- end
- class Game_Actor < Game_Battler
- def param_diff(param_id)
- param(param_id) - param_base(param_id)
- end
- def param_diff_s(param_id)
- value = param_diff(param_id)
- return sprintf("(+%d)", value) if value > 0
- return sprintf("(%d)", value) if value < 0
- return ""
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment