[P5] Help with adding party members.

Need help finding something? Is a program not working? Game crashing? Give us all the details you have and we'll try to sort it out!
Please be patient when waiting for a response, this is a small community staffed by a handful of busy volunteers. It may take up to a day or two.
User avatar
Maegix
Posts: 26
Joined: Sat Feb 27, 2021 3:31 am
Has liked: 4 posts
Been liked: 5 posts
Contact:

[P5] Help with adding party members.

Post 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?
Currently working on: Something useless.
User avatar
DeathChaos
Posts: 11
Joined: Sun Jun 07, 2020 4:40 pm
Been liked: 6 posts

Re: [P5] Help with adding party members.

Post 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.
User avatar
Maegix
Posts: 26
Joined: Sat Feb 27, 2021 3:31 am
Has liked: 4 posts
Been liked: 5 posts
Contact:

Re: [P5] Help with adding party members.

Post 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.
Currently working on: Something useless.
User avatar
DeathChaos
Posts: 11
Joined: Sun Jun 07, 2020 4:40 pm
Been liked: 6 posts

Re: [P5] Help with adding party members.

Post 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.
Post Reply