Page 1 of 1

[P5] Help with adding party members.

Posted: Sat Apr 17, 2021 3:17 pm
by Maegix
So I'm creating a mod that alters a bit the story and I need to add Akechi to the party after he "dies" in Shido's Palace. I tried doing PARTY_IN( 9 ) and it does add him to my party, but then if I remove him, he gets removed from my party and I can't add him back. Anyone can tell me how to fix this?

Re: [P5] Help with adding party members.

Posted: Sat Apr 17, 2021 4:34 pm
by DeathChaos
PARTY_IN only adds the unit to your party, it does not mark them as unlocked or usable.

You can use this code to permanently toggle Akechi as unlocked;

Code: Select all

BIT_ON( 0 + 0x0800 + 0x0800 + 0x1000 + 0x0100 + 48 + 9 );
Please let me know if it worked as my math might be off.

Re: [P5] Help with adding party members.

Posted: Sun Apr 18, 2021 5:14 am
by Maegix
DeathChaos wrote: Sat Apr 17, 2021 4:34 pm PARTY_IN only adds the unit to your party, it does not mark them as unlocked or usable.

You can use this code to permanently toggle Akechi as unlocked;

Code: Select all

BIT_ON( 0 + 0x0800 + 0x0800 + 0x1000 + 0x0100 + 48 + 9 );
Please let me know if it worked as my math might be off.
Sorry to take your time,
it doesn't seem to work.
in the normal code of the event there is

Code: Select all

BIT_ON( 0 + 0x0800 + 0x0800 + 0x1000 + 0x0100 + 216 );
could that be the cause of it?

I recall the mod menu does something like this:

Code: Select all

int var161 = SEL_GENERIC_NOT_HELP( 216, 218 ) + 48;
    
    if ( var161 == 47 )
    {
        return;
    }

    BIT_ON( 0 + 0x0800 + 0x0800 + 0x1000 + 0x0100 + var161 );
but I can't seem to figure out what part does what.

Re: [P5] Help with adding party members.

Posted: Sat Apr 24, 2021 7:19 pm
by DeathChaos
Ok I figured out the exact flag you need, it's flag 0x2137.

So calling BIT_ON with this flag should permanently unlock Akechi.