Jump to content

Home

Need check for party member script


Master Zionosis

Recommended Posts

  • 2 weeks later...

Try this script....

 

[color=red]//HH: Check for Kriea Script.[/color]

#include "k_inc_debug"

void main() {

[color=red] //HH: Will check if Kreia is in the party and within 25 meters.[/color]
 int hhCheck = ((IsNPCPartyMember(NPC_KREIA) == TRUE) && (GetDistanceBetween(GetPCSpeaker(), GetObjectByTag("Kreia")) <= 25.0)); 
 {
    [color=red]//HH: If FALSE exit.[/color]
    if (hhCheck) { return; } 

    [color=red]//HH: Replace dlg_name with your dialog file.
    //HH: If TRUE, start the dialog.[/color]
    ActionStartConversation(GetFirstPC(), "dlg_name");
 }
}

Link to comment
Share on other sites

Grrr, it doesn't work, i have attached the script to the first line of the dialog and it didn't work, the dialog still fires if Kriea is not a member of your party.

 

:EDIT: Well i did some fiddling around and attached the script to the actual .utc file on the OnDialog script box and that also didn't work, is that even the right one?, Whaoo, this is turning out harder than i imagined.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...