//1. Name: SightSpeak
//
//2. What it does: This script makes an NPC talk to the player as soon as he sees him. No triggers required.
//
//3. Notes: My NPC's tag is Pathal, change it to whatever your NPC's tag is for you. Put this in the NPC's OnPerceive Event.
//
//4. The Script itself
//
.nwscript
void main()
{
string sTag = "Pathal";
object oNPC = GetObjectByTag("Pathal");
object oPC = GetLastPerceived();
if(GetIsPC(oPC) &&
GetLocalInt( oPC,"SR_Init" + GetTag(oNPC)) == FALSE &&
IsInConversation(oNPC) == FALSE)
{
AssignCommand(oPC, ClearAllActions());
AssignCommand(oNPC, ClearAllActions());
AssignCommand(oNPC, ActionMoveToObject(oPC));
AssignCommand(oNPC, ActionStartConversation(oPC));
}
}
./nwscript

//Cyber_Bruno
//
//P.S. OrangeCoke, that script works, but it has to have the tag be a script (as pointed out above), and it's on a trigger's OnEnter event.


//Put it in a trigger on enter and the monster should be
//inside the trigger box. Orange Coke, you can do the same,
//just place an invisible object inside the trigger and
//delete the move to line also you could just use the send
//message to player like I do on entering Psychothriller.
//Uncomment the next script to use
/*void main()
{

object oPlayer;
oPlayer = GetEnteringObject();
SendMessageToPC(oPlayer,"Welcome to Psychothriller! This world is under construction and can go down at any time. I'll always try to give notice before a shutdown. Crashes are tough though :> Please send crash reports to thepsychothriller@yahoo.com");

}*/