KDescXtraLines ACE
#1
KDescXtraLines ACE

by 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!

[Image: attachment.php?aid=1750]

The Script

Code:
# * 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)[1]
    draw_extra_lines(dx, dy, lines) unless lines.nil? or lines.empty?
  end

  def draw_extra_lines(dx, dy, lines)
    lines = lines.split("\n")[1..-1]
    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[n])
    end
  end
end

Terms & Conditions

Free as in beer.
Do not repost it!


Attached Files
.jpg   kdescxtralinesace01.jpg (Size: 126.63 KB / Downloads: 5)
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }




Users browsing this thread: 1 Guest(s)