/* * 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); } }