# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Hide Stats in Windows ║ Version: 1.00 ║
# ║ Author: Roninator2 ║ ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: ║ Date Created ║
# ║ ╠════════════════════╣
# ║ Do not show specific stats ║ 21 Feb 2024 ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Requires: nil ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Do not show specific stats in various windows ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions: ║
# ║ Specify below which stats to not show in the windows ║
# ║ Window_EquipStatus, Window_Status ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates: ║
# ║ 1.00 - 21 Feb 2024 - Script finished ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use: ║
# ║ Free for all uses in RPG Maker except nudity ║
# ╚══════════════════════════════════════════════════════════╝
module R2_Hide_Stats_for_Windows
# indicate which stats to hide
# Stat_id options are
# 2, 3, 4, 5, 6, 7
# ATK, DEF, MAT, MDF, AGI, LUK
NO_SHOW = [5] # [5, 7]
end
#==============================================================================
# ** Window_EquipStatus
#==============================================================================
class Window_EquipStatus < Window_Base
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_actor_name(@actor, 4, 0) if @actor
ysub = 0
6.times {|i|
if R2_Hide_Stats_for_Windows::NO_SHOW.include?(i+2)
ysub += 1
next
end
draw_item(0, line_height * (1 + i - ysub), 2 + i) }
end
end
#==============================================================================
# ** Window_Status
#==============================================================================
class Window_Status < Window_Selectable
#--------------------------------------------------------------------------
# * Draw Parameters
#--------------------------------------------------------------------------
def draw_parameters(x, y)
ysub = 0
6.times {|i|
if R2_Hide_Stats_for_Windows::NO_SHOW.include?(i+2)
ysub += 1
next
end
draw_actor_param(@actor, x, y + line_height * (i - ysub), i + 2) }
end
end