Freedom Reborn

Freedom Force Forums => Scripting Forum => Topic started by: Jimaras8 on December 23, 2025, 01:08:56 PM

Title: Problem swapping stun for blind for a specific power only
Post by: Jimaras8 on December 23, 2025, 01:08:56 PM
Hey guys. I'm having a problem swapping stun for blind in a hero file for one power only. I have added the character, went to ffxedit2 and put state swap for stun to blind to a specific attack. However in-game he blinds with every attack that has a stunt chance. Its the first time i encounter that. Even in ffxcustom.py in the carriers sections it has his stun state swap only to the power i assigned. Any ideas?
Title: Re: Problem swapping stun for blind for a specific power only
Post by: oktokels on December 24, 2025, 01:31:56 PM
if you swap stun, it will work in all stun attacks, not just the one you assigned. I don't even know how you could assign the stun swap to only one power, i don't think that's possible.
Title: Re: Problem swapping stun for blind for a specific power only
Post by: Jimaras8 on December 24, 2025, 02:28:28 PM
In the ffxcustom2 in the end of the fioe there is a section with all the state swaps and they have the character name, the states and an entry called either "all" which applies to all attacks or the soecific name of the attack. Is that possible for a stun swap attack? Im trying to make wide piercing attack that has a chance to blind temporarily multiple opponents.
Title: Re: Problem swapping stun for blind for a specific power only
Post by: Jimaras8 on December 29, 2025, 04:13:01 PM
So there is no way to assign a stun state swap to a single power and have standard stun chances to the rest of the powers?
Title: Re: Problem swapping stun for blind for a specific power only
Post by: Epimethee on January 01, 2026, 06:22:48 AM
Quote from: Jimaras8 on December 29, 2025, 04:13:01 PMSo there is no way to assign a stun state swap to a single power and have standard stun chances to the rest of the powers?
Yes, but only for built-in characters (created in FFEdit). Custom characters (created in-game) don't communicate a unique power ID, so for them, the swap cannot be power-specific.
Title: Re: Problem swapping stun for blind for a specific power only
Post by: Jimaras8 on January 01, 2026, 11:41:38 AM
What if i create a custom character and add him in the dat with the add to dat function? That won't work either? The character has to be made from scratch in the FFEdit?

I have added unique powers id to characters created in game and then added to dat. For example my graviton has a gravity increase state swap to the stun of his beam power but not in the stun value of his other abilities. His beam can increase gravity and pin down a target and progressively damage him but his direct or other beam powers don't.
Title: Re: Problem swapping stun for blind for a specific power only
Post by: Epimethee on January 01, 2026, 09:36:00 PM
IIRC, it should work. After exporting to DAT from EZ Hero, if you open FFEdit, the corresponding entries should appear; make sure you have the right mod path in both apps. Opening the FFX Control Centre should register the character and complete the process.

(Hopefully someone with more recent – i.e., less than twenty years ago – experience can probably tell you more. I also cannot test this at the moment, as my FFX Control Centre is having compatibility issues with DLLs, 32- vs 64-bit, and running through a Linux app core on a non-Intel Mac... :blink: At least, the game itself runs fine.)

Quotehis direct or other beam powers don't
Direct powers won't work with swaps, as the game engine doesn't expose them. The usual workaround is to use an invisible beam instead.
Title: Re: Problem swapping stun for blind for a specific power only
Post by: Jimaras8 on January 05, 2026, 08:00:03 PM
I'm saying this because the character appeared in FFXCC and i was able to assign the blind swap to the specific power. I even went to ffxcustom.py and made sure instead of "all" i specified which power i wanted in the carriers section. It still applied blind to all powers with a stun chance