Jump to content

Dialouge item check


Windwhistle

Recommended Posts

In a dialouge quest, how would one of the dialouge topics check for a specific item before removing it and giving another item?

 

Example:

 

Courier has 9mm pistol.

 

Courier asks npc to modify.

 

NPC runs a script or whatever to check for the item in inventory, if there, it will remove it, and give the modified version.

Link to comment
Share on other sites

This would be the result script in the topic.

Additionally you'd want to put a GetItemCount condition in the repair dialogue so it won't come up unless the player has that item.

If Player.GetItemCount ObjectID != 0
  Player.RemoveItem ObjectID 1
  Player.AddItem NewObjectID 1
EndIf
Edited by DizzasterJuice
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...