Author Topic: FF7: Visual Effect for Shield  (Read 3182 times)

Sega Chief

  • *
  • Posts: 4086
  • These guys is sick
    • View Profile
FF7: Visual Effect for Shield
« on: 2015-12-14 15:44:21 »
Just a quick question; is it possible to give Shield a visual effect like Regen and Peerless has? How/where is this handled in the .EXE? I'd like to try and copy it over onto Shield so that it's easier to keep track of.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: FF7: Visual Effect for Shield
« Reply #1 on: 2015-12-14 15:59:08 »
Just a quick question; is it possible to give Shield a visual effect like Regen and Peerless has? How/where is this handled in the .EXE? I'd like to try and copy it over onto Shield so that it's easier to keep track of.

I would love to see a purple aura while a limit is unleashed. Like in FF9.

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: FF7: Visual Effect for Shield
« Reply #2 on: 2015-12-14 17:12:19 »
Found where this gets handled and there is room for up to three more statuses.

The function starting at 0x5BA1EB translates the actor's status with a shader index. The shader has an "activator" of either on or off (I'd call it an alpha channel, but there is handling for a third value that I'm not sure what it would do) and an RGB color value to it. There are 12 of these four-byte shaders starting at 0x8FE150 and it looks like only these are used:

Code: [Select]
Poison:     1
Berserk:    3
Petrify:    5
Peerless:   6
Manipulate: 7
Darkness:   8
Regen:      9
Slow-Numb:  10

The activator mentioned is also what prioritizes which shader gets used in the event of multiple shading statuses. It can be optimized a little to perhaps include a new status/shader combo.
« Last Edit: 2015-12-15 15:52:42 by NFITC1 »

Sega Chief

  • *
  • Posts: 4086
  • These guys is sick
    • View Profile
Re: FF7: Visual Effect for Shield
« Reply #3 on: 2015-12-15 16:18:57 »
 ;D This looks really promising; if the shaders themselves can be adjusted then this could be helpful for people with colour-blindness too (there was a streamer playing NT that had a lot of trouble distinguishing between Peerless, Regen, and Poison because of that).

I'll start looking at it tonight and see if I can make some changes; thanks for pin-pointing these for us, NFITC1.