Advertisement
Chubblot

Minsc recruit

Nov 19th, 2020
2,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. Recruiting Minsc looks like it will involve freeing him from a mindflayer's control:
  2.  
  3. //REGION Minsc version
  4. // Minsc is not in party: set him as the one being controlled
  5.  
  6. // If mind flayer dies, set minsc neutral to thralls
  7. PROC
  8. PROC_CRA_MinscRecruitment_SetMinscNeutralToThralls()
  9. AND
  10. DB_CRA_MinscRecruitment_Minsc(_Char)
  11. AND
  12. DB_CRA_MinscRecruitment_MinscsParty(_Thrall)
  13. AND
  14. GetFaction(_Char, _MinscFaction)
  15. AND
  16. GetFaction(_Thrall, _ThrallFaction)
  17. THEN
  18. PROC_SetRelationMutual(_MinscFaction, _ThrallFaction, 50);
  19. //END_REGION
  20.  
  21. //REGION Combat with controlled characters
  22. // Combat starts and characters (Minsc/Thralls) are controlled by the mind flayer, get combat ID
  23. IF
  24. EnteredCombat(_Char, _CombatID)
  25. AND
  26. DB_CRA_MinscRecruitment_ControlledCharacters((CHARACTER)_Char)
  27. AND
  28. GetFlag((FLAG)CRA_MinscRecruitment_State_CharacterControlled_cc1c7989-da17-4b96-b016-c179d7ec5613, _Char, 1)
  29. THEN
  30. DB_CRA_MinscRecruitment_Combat(_CombatID);
  31. // 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
  32. SetFlag(CRA_MinscRecruitment_Event_StartFight_63048f4f-d237-4d9a-b43d-9cb685fa79f1, NULL_00000000-0000-0000-0000-000000000000);
  33.  
  34. // If Minsc's HP goes below a threshold, snap him out of the mind flayer's control and help the players
  35. IF
  36. HitpointsChanged(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _)
  37. AND
  38. DB_CRA_MinscRecruitment_ControlledCharactersWithFlag(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba)
  39. AND
  40. IsImmortal(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, 1)
  41. AND
  42. GetHitpoints(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _HP)
  43. AND
  44. _HP <= 5
  45. THEN
  46. PROC_CRA_MindFlayerControl_TryRemoveCharmedStatus(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba);
  47. PROC_CRA_MinscRecruitment_SetMinscHostileToThralls();
  48.  
  49. // If Minsc's HP goes below a threshold, start mind meld
  50. IF
  51. HitpointsChanged(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _)
  52. AND
  53. DB_CRA_MinscRecruitment_ControlledCharactersWithFlag(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba)
  54. AND
  55. IsImmortal(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, 1)
  56. AND
  57. GetHitpointsPercentage(S_Player_Minsc_0de603c5-42e2-4811-9dad-f652de080eba, _HP)
  58. AND
  59. _HP < 75.0
  60. THEN
  61. PROC_CRA_MinscRecruitment_StartMindMeld();
  62.  
  63.  
  64.  
  65. Looks like it's the event near the start with the mind controlled fishers:
  66.  
  67. // Case for when we have to hide the fishers (arrive to the Den, finish the confrontation and the crash scene wasn't solved)
  68. PROC
  69. PROC_CRA_MindFlayerControl_EndCrashScene(1)
  70. AND
  71. DB_CRA_MinscRecruitment_ControlledCharactersWithFlag(_)
  72. THEN
  73. PROC_CRA_MindFlayerControl_HideThralls();
  74.  
  75. PROC
  76. PROC_CRA_MindFlayerControl_HideThralls()
  77. AND
  78. DB_CRA_MinscRecruitment_ThrallParty(_Thrall)
  79. THEN
  80. SetOnStage(_Thrall, 0);
  81. //END_REGION
  82.  
  83. Seems that's where you'll eventually recruit Minsc. Quite early on.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement