YesNoOk
avatar

How do I add EX Flash? (Read 21715 times)

Started by daonlylonely, June 12, 2024, 05:59:51 pm
Share this topic:
How do I add EX Flash?
#1  June 12, 2024, 05:59:51 pm
  • **
    • USA
I'd like to know how exactly do I add an EX Flash to my supers.
Re: How do I add EX Flash?
#2  June 15, 2024, 12:20:00 am
  • **
    • Colombia
    • arfercon@gmail.com
with a BGPalFX you can get a full screen flash, or with AfterImage some shadows in the body.
there is a way to create an aura with  AfterImage. But you'll have to Google it because I don't remember what it is like.
Re: How do I add EX Flash?
#3  June 15, 2024, 05:47:33 pm
  • ****
    • Brazil
    • lyricasky.neocities.org
You'll need to be more specific. Showing examples of what you want also helps.
Re: How do I add EX Flash?
#4  June 15, 2024, 05:58:35 pm
  • **
    • USA
Something similar to this.

Re: How do I add EX Flash?
#5  June 15, 2024, 06:31:38 pm
  • ****
    • Brazil
    • lyricasky.neocities.org
This is done with PalFX. Luckily I posted an example of a rainbow PalFX I created a while ago here. Or you can also download Jmorphman's Demitri and borrow some of his codes. ;P
Re: How do I add EX Flash?
#6  June 16, 2024, 03:54:07 pm
  • **
    • USA
So I decided to try and use the codes from Demitri but I'm not entirely sure which ones I should be using. And also if they require a variable which the character I'm trying to apply it to doesn't have, does that mean I have to create one?
Re: How do I add EX Flash?
#7  June 17, 2024, 07:04:02 am
  • *****
  • Shame on you!
    • USA
Yes. Create a variable if the source needs one. You may get lucky; the source's variable might not be used in your char. So you'd be able to copy and paste it right in. Otherwise you'll have to edit it.

You can use Fighter Factory to just use ctrl+f to search for
PalFX
Then look to see if any of the results are in an activation state, or statedef -2. Ctrl+D while using him, do the activation move to see what state it is.
vVv Gouken718 vVv
Re: How do I add EX Flash?
#8  June 17, 2024, 01:08:15 pm
  • **
    • USA
I take it these the are the code strings from Demitri which I have to add.

Taken from his System.st file
Code:
[State -3, EX Flash]
type = PalFX
trigger1 = var(24)
time = 1
mul = 256 + ceil(cos(GameTime / 10.0 * pi) * 128), 256 + ceil(sin(GameTime / 10.0 * pi) * 128), 256 + ceil(-cos(GameTime / 10.0 * pi) * 128)
color = 0
ignoreHitPause = 1

Taken from his Super.st file
Code:
[State 3000, EX Flash]
type = VarSet
triggerAll = !var(40)
trigger1 = !Time
var(24) = 40

Unfortunately, the character I'm editing does not have a Var(40) which is a SuperPause flag so I'm not sure what I have to change to make the flash work with supers as well. (It works just fine for EX moves)
Last Edit: June 17, 2024, 01:11:25 pm by daonlylonely
Re: How do I add EX Flash?
#9  June 21, 2024, 06:10:54 am
  • *****
  • Shame on you!
    • USA
Search for how/when Demitri sets var 40. There's more than 1 way to set var 40 so try to find all of them. ctr;+f and make sure you remove spaces and add spaces. FF3 can be a pain on looping, so make sure you have the loop button checked.
vVv Gouken718 vVv
Re: How do I add EX Flash?
#10  June 22, 2024, 12:33:33 pm
  • **
    • USA
So I decided to try adding a PalFX into Morrigan's Supers.cns file and this is what it looks like so far...



For some reason it doesn't have the "rainbow" effect and I'm not sure why.

This is what I used
Code:
[State 3000, EX Flash]
type = PalFX
trigger1 = Time = 0
time = 120
mul = 256 + ceil(cos(GameTime / 10.0 * pi) * 128), 256 + ceil(sin(GameTime / 10.0 * pi) * 128), 256 + ceil(-cos(GameTime / 10.0 * pi) * 128)
color = 0
ignoreHitPause = 1
persistent = 1
Re: How do I add EX Flash?
#11  June 22, 2024, 06:07:55 pm
  • ****
    • Brazil
    • lyricasky.neocities.org
That's because the PalFX must be "active" on all ticks. Right now it is only active in the first tick (because of the trigger = time = 0), and it will stay like this for 120 more ticks (because of time = 120). Time = 120 is useless here, it should be 1, and you need to set something on the negative states to keep the PalFX running.
That's what I think var(24) is for on Demitri, it is probably a timer, it is set to a certain number (the number of ticks the move has) before the actual PalFX comes in, then in negative states it decreases itself until it reaches 0. So while var(24) is not 0, the PalFX is activating every tick.
Last Edit: June 22, 2024, 06:17:16 pm by DeathScythe
Re: How do I add EX Flash?
#12  June 22, 2024, 06:46:23 pm
  • **
    • USA
Thanks for the pointers, the only thing I'm not looking forward to whenever I'm transferring code from one character to another is making up new state/variable numbers lol
Re: How do I add EX Flash?
#13  July 08, 2024, 03:49:01 pm
  • **
    • USA
So this is what I've been able to achieve so far...



I tested it by assigning the PalFX to Morrigan's Soul Phoenix Super and it works fine. But for some reason, her sprites have become all messed up and I'm not sure why.

This is all the "new" code which I added into her system.cns file:

Code:
; Var(1) - PalNo Time
; Var(2) - PalNo
; Var(40) - Ticks to Apply Super FX
; Var(41) - Super pause flag (0 = Off; 1 = On)

[State -2, PalNo Time Add]
type = VarAdd
trigger1 = !var(40)
trigger2 = ((GameTime % 14) = 0) && var(40)
var(1) = 1
ignoreHitPause = 1

[State -2, RemapPal: 2 palettes, 2 tick interval]
type = RemapPal
triggerAll = var(2) != 4
triggerAll = var(1) % 2 = 0
trigger1 = !var(40)
trigger2 = ((GameTime % 14) = 0) && var(40)
source = 1,1
dest = var(2), floor((var(1) % 4) / 2)
ignoreHitPause = 1

[State -2, RemapPal: 3 palettes, reversing, 4 tick interval]
type = RemapPal
triggerAll = var(2) = 4
triggerAll = var(1) % 4 = 0
trigger1 = !var(40)
trigger2 = ((GameTime % 14) = 0) && var(40)
source = 1,1
dest = var(2), cond(var(1) % 16 < 8, floor((var(1) % 16) / 4) , 2 - floor((var(1) % 16 - 8) / 4))
ignoreHitPause = 1

[State -3, EX FX Decrement]
type = VarAdd
trigger1 = var(40) > 0
var(40) = -1

[State -3, EX FX Reset]
type = VarSet
trigger1 = (StateNo != [3000,4999]) || MoveType = H
var(40) = 0

[State -3, EX Flash]
type = PalFX
trigger1 = var(40)
time = 1
mul = 256 + ceil(cos(GameTime / 10.0 * pi) * 128), 256 + ceil(sin(GameTime / 10.0 * pi) * 128), 256 + ceil(-cos(GameTime / 10.0 * pi) * 128)
color = 0
ignoreHitPause = 1

[State -3, EX Flash Blink]
type = PalFX
trigger1 = ((GameTime % 14) = 0 || (GameTime % 14) = 13) && var(40)
time = 1
ignoreHitPause = 1

And this is all I added into the Soul Phoenix section of her Supers.cns file:

Code:
[State 3000, EX Flash]
type = VarSet
trigger1 = !Time
var(40) = 40
Re: How do I add EX Flash?
#14  July 09, 2024, 12:06:08 am
  • *****
  • Shame on you!
    • USA
[State -3, EX Flash Blink]
type = PalFX
trigger1 = ((GameTime % 14) = 0 || (GameTime % 14) = 13) && var(40)
time = 1
ignoreHitPause = 1

What is stopping
 ((GameTime % 14) = 0
from activating every 14 tics?
vVv Gouken718 vVv
Re: How do I add EX Flash?
#15  July 09, 2024, 09:06:43 am
  • **
    • USA
I honestly have zero idea :/

I recorded myself using ctrl + D to see if it helps in any way. I kinda tried pressing at different times so you might to rewind it a few times but I made sure to make every as clear as possible now.

Re: How do I add EX Flash?
#16  July 09, 2024, 09:54:59 pm
  • *****
  • Shame on you!
    • USA
So if nothing is stopping the flash from occurring, and you're getting P1 flashing a lot, that's probably your problem.
GameTime % 14 = 0 means Every 14 tics, Activate.

You might want to go through all of your code you posted with comments. Like
triggerAll = var(2) != 4  ;PalNo doesn't equal her special palette. idk I made this up to demonstrate

trigger2 = ((GameTime % 14) = 0) && var(40)  ; when gametime is 14/28/42/56/70 AND there's time on the clock for Super FX

Once you can read it like that, you should be able to spot the glitch. But GameTime%14 is a weird trigger imho. You're not going to be doing a particular move when game time = 84,014 and not 84,013 or 84,015. It's improbable.

trigger1 = !var(40)
trigger2 = ((GameTime % 14) = 0) && var(40)   
These two, when I read them without knowing what var40 is/does. I automatically think "So almost ALL of the time"
No var 40 activates
Var 40 on the 14th tic Activates
It'll never NOT activate, almost. 13 tics. 4 times a second.
vVv Gouken718 vVv
Re: How do I add EX Flash?
#17  July 11, 2024, 11:11:09 am
  • **
    • USA
If it helps in any way, I'll also post what the code looked like originally since I did change it a tiny bit when I tried applying it to Morrigan.

Code:
;var(0)  : PalNo
;var(1)  : PalNo Time
;var(24) : Ticks to Apply EX FX
;var(25) : Ticks to Apply ES FX (I didn't use this one but I might as well include it since it's used in the OG code)
;var(40) : Super pause flag (0 = Off; 1 = On)

[State -2, PalNo Time Add]
type = VarAdd
trigger1 = !var(24) && !var(25)
trigger2 = ((GameTime % 14) = 0) && var(24)
trigger3 = ((GameTime % 8) = 0) && var(25)
var(1) = 1
ignoreHitPause = 1

[State -2, RemapPal: 2 palettes, 2 tick interval]
type = RemapPal
triggerAll = var(0) != 4
triggerAll = var(1) % 2 = 0
trigger1 = !var(24) && !var(25)
trigger2 = ((GameTime % 14) = 0) && var(24)
trigger3 = ((GameTime % 8) = 0) && var(25)
source = 1,1
dest = var(0), floor((var(1) % 4) / 2)
ignoreHitPause = 1

[State -2, RemapPal: 3 palettes, reversing, 4 tick interval]
type = RemapPal
triggerAll = var(0) = 4
triggerAll = var(1) % 4 = 0
trigger1 = !var(24) && !var(25)
trigger2 = ((GameTime % 14) = 0) && var(24)
trigger3 = ((GameTime % 8) = 0) && var(25)
source = 1,1
dest = var(0), cond(var(1) % 16 < 8, floor((var(1) % 16) / 4) , 2 - floor((var(1) % 16 - 8) / 4))
ignoreHitPause = 1

[State -3, EX FX Decrement]
type = VarAdd
trigger1 = var(24) > 0
var(24) = -1

[State -3, EX FX Reset]
type = VarSet
trigger1 = (StateNo != [3000,4999]) || MoveType = H
var(24) = 0

[State -3, EX Flash]
type = PalFX
trigger1 = var(24)
time = 1
mul = 256 + ceil(cos(GameTime / 10.0 * pi) * 128), 256 + ceil(sin(GameTime / 10.0 * pi) * 128), 256 + ceil(-cos(GameTime / 10.0 * pi) * 128)
color = 0
ignoreHitPause = 1

[State -3, EX Flash Blink]
type = PalFX
trigger1 = ((GameTime % 14) = 0 || (GameTime % 14) = 13) && var(24)
time = 1
ignoreHitPause = 1

Perhaps removing the var(25)'s from the triggers could've messed something up though I kinda doubt it since that variable controls a separate PalFX from what I can tell.
Re: How do I add EX Flash?
#18  July 12, 2024, 08:09:48 am
  • *****
  • Shame on you!
    • USA
I think what I'm slowly gathering is that you don't have palettes set up the same way Demitri does.

I would comment out the 2 RemapPals. See what you get.

Use DisplayToClipboard to watch all the Vars being used and see if they get set correctly, and if they reset when you dont want them to.
vVv Gouken718 vVv
Re: How do I add EX Flash?
#19  July 12, 2024, 10:31:01 am
  • **
    • USA
Removing the RemapPals worked out, thanks!