[P5] Help with adding party members.

Describe your problem in as much detail as you can. Other users might help.
Post Reply
User avatar
Maegix
Posts: 29
Joined: Sat Feb 27, 2021 3:31 am
Has liked: 4 posts
Been liked: 6 posts

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: 12
Joined: Sun Jun 07, 2020 4:40 pm
Been liked: 6 posts

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: 29
Joined: Sat Feb 27, 2021 3:31 am
Has liked: 4 posts
Been liked: 6 posts

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: 12
Joined: Sun Jun 07, 2020 4:40 pm
Been liked: 6 posts

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
cron

ShrineFox 2020 - 2023
Support | Progress | Labs | Privacy | Terms
This site is NOT affiliated, associated, authorized, endorsed by, or in any way officially connected with Atlus Co., Ltd, Atlus U.S.A., Inc. or Sega Games Co., Ltd, or any of its subsidiaries or its affiliates.