øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1815.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexdb34.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=17.80e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexdb34.html.zxË9h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈЋ�¾sOKtext/htmlISO-8859-1gzip8:Ö¾sÿÿÿÿÿÿÿÿWed, 11 Mar 2020 01:23:48 GMT0ó°° ®0®P®€§²ð®Ë9h^L¾s Character Glow and Palettes

Author Topic: Character Glow and Palettes  (Read 1470 times)

LightPhoenix

  • FF5 Hacker
  • *
  • Posts: 130
    • View Profile
Character Glow and Palettes
« on: February 15, 2013, 07:21:02 PM »
Another minor thing, but could be useful.  I was screwing around with palette information mainly to create a new status.  I eventually coded up a rough FF6-style glow effect.

All character palette information (afaik) is handled by a function located at C1/B1AC.  This function is relatively straightforward.  First, it checks to see if the character is Wounded; if so it uses the default character palette.  Otherwise, it loads the class palette.  Then it runs two sets of checks; one for Status 0/1 (palette changes) and a second for Status 2 (glowing effects).  As coded, once a palette change effect is handled, the function skips to the glow effect.  In order: Stone, Zombie, Poison, Aging, Berserk.  Similarly, once a glow effect is set, the function skips to the end.  In order: Wall, Armor, Shell, Stop, Haste, Slow.  There's no reason multiple palette changes couldn't be applied with simple code changes, and some relatively simple coding could even allow multiple glow colors.

Palette information is stored at 7E/7F89,Y for each character, and is 0x20 bytes long (16 2-byte values).  Note that "glow" effects are really just changing the palette outline (at 7F8B) in a simple on/off manner.  I have a basic list of what each 16-bit value controls, but not with me: I'll update this post when I can grab the notebook.

[EDIT]My list isn't as detailed as I thought it was, but for the sake of reference:
Code: [Select]
7F8B: Outline (ie Glow)
7F8F: Eyes
7F91: Skin A (see Berserk/Zombie)
7F93: Hair A (see Old)
7F99: Skin B
7F9B: Hair B (shadow)
7F9D: Hair C (highlight)
« Last Edit: February 16, 2013, 04:56:55 PM by LightPhoenix »

Odbarc

  • Hell's Rider
  • *
  • Posts: 424
  • Gender: Male
  • FF6 obsessed
    • View Profile
    • Newage3.com, a text based web game RPG I Admin.
Re: Character Glow and Palettes
« Reply #1 on: February 19, 2013, 05:05:55 PM »
It would be a wicked mod to have  the multi-glows of every buff/debuff you had on you! :childish:

Jorgur

  • Moderator
  • *
  • Posts: 437
  • Gender: Male
    • View Profile
Re: Character Glow and Palettes
« Reply #2 on: February 20, 2013, 08:10:20 AM »
It would be a wicked mod to have  the multi-glows of every buff/debuff you had on you! :childish:
I second this.

LightPhoenix

  • FF5 Hacker
  • *
  • Posts: 130
    • View Profile
Re: Character Glow and Palettes
« Reply #3 on: February 20, 2013, 04:41:56 PM »
So I looked at making a "multi-color glow" a little more closely, and I was completely wrong.  It will actually require a significant amount of coding to set up multiple blink colors.  Unless I can figure an easy way to do it, I'm not going to bother; too much work for a minor effect. Sorry to get hopes up.  If anyone else wants to look into it, the code starts at C1/B216.