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
- # (This script documentation is written in informal indonesian language)
- # =============================================================================
- ($imported ||= {})[:Theo_DisplayParamChange] = true
- # =============================================================================
- # Change Logs:
- # -----------------------------------------------------------------------------
- # 2013.11.12 - Finished Script
- # =============================================================================
- =begin
- Perkenalan :
- Script ini membuat kamu tahu berapa perubahaan parameter actor di dalam
- status window
- Cara penggunaan :
- Pasang script ini dibawah material namun diatas main.
- Disarankan pasang script ini di bagian atas dari script lain
- Terms of use :
- Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
- keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
- dipake buat komersil, jangan lupa, gw dibagi gratisannya.
- =end
- # =============================================================================
- # Tidak ada konfigurasi
- # =============================================================================
- 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
Add Comment
Please, Sign In to add comment