Jump to content

Home

Juhani party scripts.


Darth Balor

Recommended Posts

I need a script that would return the function "Juhani is dead & in the party" so that I can use it as a conditional script to determine if you killed juhani but her tag is used by an available party member.

 

This would probably work, it checks if the Juhani quest on Dantooine has ended in violence and if there is someone in Juhani's party table slot:

int StartingConditional() {
   return (GetGlobalNumber("DAN_JUHANI_PLOT") == 2) && IsAvailableCreature(NPC_JUHANI);
}

Link to comment
Share on other sites

If I understand your request correctly, this script should work.

int StartingConditional()
{
   if ((GetGlobalNumber("Dan_Juhani_Plot") == 2) && (IsAvailableCreature(5) == TRUE))
   {
       return TRUE;
   }
   return FALSE;
}

If you want to check if the character that has Juhani's place is in your current party, replace the "IsAvailableCreature" with "IsNPCPartyMember"

 

I hope this helps.

 

Edit: Ah, you beat me to it Stoffe. :)

Link to comment
Share on other sites

Thanks guys. Also I'm creating scripts to fire banters between belaya and the other party members; will something like this work?

 

Script that determins availability.

 

//:: k_hbanter12
/*
    Checks conditions for banter 12(Belaya and Jolee)
*/
//:: Created By:
//:: Copyright (c) 2002 Bioware Corp.

int StartingConditional()
{
   int iResult;

   iResult = GetGlobalBoolean("G_Banter12")==FALSE && ((GetGlobalNumber("Dan_Juhani_Plot") == 2)
   IsNPCPartyMember(NPC_JUHANI)==TRUE:
   IsNPCPartyMember(NPC_JOLEE)==TRUE;
   return iResult;
}

 

Script that fires at end of dialog to keep it from firing again.

 

#include "k_inc_utility"

void main()
{
   SetGlobalBoolean("G_Banter12",TRUE);

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...