TheHordeOrcs_PRC8/_module/nss/0c_if_convo.nss
Jaysyn904 0e9e2c6950 2025/07/18 Update
Added PEPS.
Full compile.
2025-07-18 12:13:13 -04:00

22 lines
836 B
Plaintext

/*//////////////////////////////////////////////////////////////////////////////
Script: 0e_if_convo
Programmer: Philos
////////////////////////////////////////////////////////////////////////////////
Text Appears When script that check if oCreature has a linked conversation.
Only checks for Henchman.
Allows use of ai_conversation for henchman in other modules.
*///////////////////////////////////////////////////////////////////////////////
#include "nw_inc_gff"
#include "0i_messages"
int StartingConditional()
{
object oHenchman = OBJECT_SELF;
if(GetAssociateType(oHenchman) == ASSOCIATE_TYPE_HENCHMAN)
{
json jHenchman = ObjectToJson(oHenchman);
string sConversation = JsonGetString(GffGetResRef(jHenchman, "Conversation"));
if(sConversation != "") return TRUE;
}
return FALSE;
}