Aantioch_Infernum/_module/nss/npc2npcconvo.nss
EpicValor 80bc1e0c92 hopefully fixed the no death panel problem
The rest were creature and area changes I got around to doing
2023-09-06 17:57:36 -05:00

35 lines
798 B
Plaintext

/*
* Script generated by LS Script Generator, v.TK.0
*
* For download info, please visit:
* http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
*/
// Put this script OnPerceived (of a creature).
void main()
{
// We are only interested in "seen" events.
if ( !GetLastPerceptionSeen() )
return;
// Get the creature who triggered this event.
object oPC = GetLastPerceived();
// Only fire for (real) PCs.
if ( GetIsDMPossessed(oPC) )
return;
// Abort if failed a 1% chance.
if ( Random(100) >= 1 )
return;
// If the local int is more than 0.
if ( GetLocalInt(oPC, "NPCTalk") > 0 )
{
// Have us strike up a conversation with the PC.
ActionStartConversation(oPC, "convohere", FALSE, FALSE);
}
}