Small status window modification
Small status window modificationby Shuu.
https://forums.rpgmakerweb.com/attachments/1759995969580-png.350956/
Description:
Does your game need not leveling up?
Do you just want a small status window without parameters but still want the equipment to appear?
Do you not know how to code and cannot find any script that have what you want?
Well then, this script modification is just for you!
Instruction:
After days of reading and putting # everywhere, I have found that modifying line 12 and putting # in (or deleting) line 35, 36, 53, 60, 61 in Window_Status will achieve the status menu just like how I want (see screenshot). But if you do not want to directly change the script, then you can just copy & paste this under Material and above Main. I also put a small instruction in the script too if you want to modify it further.
Script:
Ruby:
#--------------------------------------------------------------------------
# * Small status window modification
# by Shuu.
#
# For people who does not know how to code (like me):
# In line 17, if you want to reduce the width, you would want to match the
# number in the bracket and the 2nd number from right to left. Same goes with
# the height.
# If you want to modify the actor's avatar and basic info, you need to change
# the number in line 37, 38.
#--------------------------------------------------------------------------
class Window_Status < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(actor)
super((Graphics.width - 544)/2, (Graphics.height - 270)/2, 544, 270)
@actor = actor
refresh
activate
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_block1 (line_height * 0)
draw_horz_line(line_height * 1)
draw_block2 (line_height * 2)
draw_horz_line(line_height * 7)
draw_block3 (line_height * 8)
end
#--------------------------------------------------------------------------
# * Draw Block 2
#--------------------------------------------------------------------------
def draw_block2(y)
draw_actor_face(@actor, 8, 58)
draw_basic_info(128, 58)
draw_equipments(288, y)
end
#--------------------------------------------------------------------------
# * Draw Block 3
#--------------------------------------------------------------------------
def draw_block3(y)
draw_description(4, y)
end
end
本贴来自国际rpgmaker官方论坛作者:Shuutaa处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/small-status-window-modification.180476/
页:
[1]