Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Recruiting Minsc looks like it will involve freeing him from a mindflayer's control:
- //REGION Minsc version
- // Minsc is not in party: set him as the one being controlled
- // If mind flayer dies, set minsc neutral to thralls
- PROC
- PROC_CRA_MinscRecruitment_SetMinscNeutralToThralls()
- AND
- DB_CRA_MinscRecruitment_Minsc(_Char)
- AND
- DB_CRA_MinscRecruitment_MinscsParty(_Thrall)
- AND
- GetFaction(_Char, _MinscFaction)
- AND
- GetFaction(_Thrall, _ThrallFaction)
- THEN
- PROC_SetRelationMutual(_MinscFaction, _ThrallFaction, 50);
- //END_REGION
- //REGION Combat with controlled characters
- // Combat starts and characters (Minsc/Thralls) are controlled by the mind flayer, get combat ID
- IF
- EnteredCombat(_Char, _CombatID)
- AND
- DB_CRA_MinscRecruitment_ControlledCharacters((CHARACTER)_Char)
- AND
- GetFlag((FLAG)CRA_MinscRecruitment_State_CharacterControlled_cc1c7989-da17-4b96-b016-c179d7ec5613, _Char, 1)
- THEN
- DB_CRA_MinscRecruitment_Combat(_CombatID);
- // Fallback for if by any chance players start fighting them without triggering the intro dialog, set the flag as if they normally started the combat
- SetFlag(CRA_MinscRecruitment_Event_StartFight_63048f4f-d237-4d9a-b43d-9cb685fa79f1, NULL_00000000-0000-0000-0000-000000000000);
- // If Minsc's HP goes below a threshold, snap him out of the mind flayer's control and help the players
- IF
- HitpointsChanged(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _)
- AND
- DB_CRA_MinscRecruitment_ControlledCharactersWithFlag(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba)
- AND
- IsImmortal(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, 1)
- AND
- GetHitpoints(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _HP)
- AND
- _HP <= 5
- THEN
- PROC_CRA_MindFlayerControl_TryRemoveCharmedStatus(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba);
- PROC_CRA_MinscRecruitment_SetMinscHostileToThralls();
- // If Minsc's HP goes below a threshold, start mind meld
- IF
- HitpointsChanged(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _)
- AND
- DB_CRA_MinscRecruitment_ControlledCharactersWithFlag(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba)
- AND
- IsImmortal(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, 1)
- AND
- GetHitpointsPercentage(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _HP)
- AND
- _HP < 75.0
- THEN
- PROC_CRA_MinscRecruitment_StartMindMeld();
- Looks like it's the event near the start with the mind controlled fishers:
- // Case for when we have to hide the fishers (arrive to the Den, finish the confrontation and the crash scene wasn't solved)
- PROC
- PROC_CRA_MindFlayerControl_EndCrashScene(1)
- AND
- DB_CRA_MinscRecruitment_ControlledCharactersWithFlag(_)
- THEN
- PROC_CRA_MindFlayerControl_HideThralls();
- PROC
- PROC_CRA_MindFlayerControl_HideThralls()
- AND
- DB_CRA_MinscRecruitment_ThrallParty(_Thrall)
- THEN
- SetOnStage(_Thrall, 0);
- //END_REGION
- Seems that's where you'll eventually recruit Minsc. Quite early on.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement