KDescXtraLines ACE
KDescXtraLines ACEby Kyonides
Introduction
Did you ever feel the need to add more description lines to your hero's status?
Did you resize the screen?
Then this is the perfect scriptlet for you!
Please read the comments embedded in the scriptlet!
The Script
Ruby:
# * KDescXtraLines ACE * #
# Scripter : Kyonides Arkanthes
# 2023-02-07
# Add More Lines to Your Hero's Description!
# Use the <desc> tag to mark the beginning and end of your description lines.
# - Note Tag Usage Example - #
# <desc>
# Line 1
# <desc>
class Window_Status
alias :kyon_desc_xtra_ln_win_stts_draw_desc :draw_description
def draw_description(dx, dy)
kyon_desc_xtra_ln_win_stts_draw_desc(dx, dy)
lines = @actor.actor.note.split(/<desc>/i)
draw_extra_lines(dx, dy, lines) unless lines.nil? or lines.empty?
end
def draw_extra_lines(dx, dy, lines)
lines = lines.split("\n")
total = lines.size
lh = line_height
ly = dy + 2 * lh
cw = contents.width
total.times do |n|
contents.draw_text(dx, ly + lh * n, cw, lh, lines)
end
end
end
Terms & Conditions
Free as in beer.
Do not repost it!
本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/kdescxtralines-ace.154797/
页:
[1]