[XP][VX][VXA] Colorful Description

Started by LiTTleDRAgo, February 18, 2012, 09:17:44 pm

Previous topic - Next topic

LiTTleDRAgo

February 18, 2012, 09:17:44 pm Last Edit: September 05, 2014, 03:26:21 am by LiTTleDRAgo
Colorful Description
Authors: LiTTleDRAgo
Version: 1.0
Type: Menu Add-on
Key Term: Menu Add-on



Introduction

Add color to your description


Features


  • Screenshot explain everything



Screenshots

Spoiler: ShowHide



Script

Here


Instructions

Insert \c[id] to your description
ex :
    Restores \c[3]HP\c[0] to one ally.


Compatibility

---


Credits and Thanks


  • LiTTleDRAgo



Author's Notes

~

AngryPacman

Nice script. Nifty that you made it compatible with all 3 RGSSs.
A little tip in REGEXP, and it barely matters, but instead of [0-9] you can just use \d, i.e.:
/\\[Cc]\[(\d+)\]/

You can also make it case insensitive if you add an i after the slash at the end.
/\\c\[(\d+)\]/i

Again, nice and nifty script. My only other tiny problem with it is that you overwrote the set_text method. While it's not that big a deal, you could've done the same thing just by going:
alias coloured_descriptions_stxt set_text
def set_text(t = '', a = 0, *args)
  t.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001[#{$1}]" }
  coloured_description_stxt(t, a, *args)
end

Not 100% that would work though... :S
G_G's a silly boy.

ForeverZer0

Or just alias draw_text of the Bitmap class. Then it works in everything.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.