DMH-Online

Dungeon Masters Helper · Est. 2005

Conversation Scripts

NWN Script: give_item.htm

FatalT, here's the script to get the NPC to give the PC an item to the PC that's speaking to him. Just replace the note tag with your own. It works great! Enjoy...

// Created by: Scott Hollingsworth
// Date: 6/24/02
////////////////////////////
void main()
{
object oPC = GetPCSpeaker();
object oNote = GetItemPossessedBy (OBJECT_SELF, "note_to_sarlin");
if (GetIsObjectValid (oNote))
{
ActionGiveItem (oNote, GetPCSpeaker());
}



}

⌂ All Scripts ← PreviousNext → 👁 Category List

All Conversation Scripts

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