DMH-Online

Dungeon Masters Helper · Est. 2005

Conversation Scripts

NWN Script: flee_from_conversation.htm

Ok, simple lil script here. Attach this to an action in a dialogue and you'll have an NPC run away to wherever you place your waypoint, screaming.

void main()
{
object oNPC = GetObjectByTag("Survivor"); //Tag your NPC with whatever name you wish. I tagged mine Survivor.
object oExit = GetObjectByTag("Exit"); // Paint a Waypoint and tag it Exit.
AssignCommand(oNPC, ActionMoveToObject(oExit, TRUE));
PlaySound("as_pl_screamm1"); // You can play any sopund you wish here.
SpeakString("Noooooo!!! I'm Too young to diiieee!!!"); // Any dialogue you place here will float over the NPCs head as he/she runs away.
}

You can also have your NPC exit by adding that command in as well.

Enjoy!

⌂ All Scripts Next → 👁 Category List

All Conversation Scripts

📄 flee_from_conversation 📄 give_item 📄 guards 📄 level_up 📄 lower_faction 📄 merchant 📄 open_store 📄 start_combat 📄 start_conv