Jump to content

scripting help


krimzin

Recommended Posts

How do you make an effect script that removes an NPC's entire inventory and drops it at their feet, including equipped items. So say i used the script on a weapon. when the npc was hit, their current inventory would be unequipped and dropped on the ground and they would be standing there, with nothing on them, and nothing in their inventory
Link to comment
Share on other sites

Getting the equipped item to drop wouldn't be so hard, but getting the inventory items might be.

 

They way to go about it from my perspective would be to have the weapon add a scripted token (like an unusable piece of armor) to the target. Then the script on the token could cycle through all of the equipped items using the FOSE command "GetEquippedObject" and the "Drop" command.

 

Getting the inventory items is another story as the drop command needs the Base ID of the item to drop. The only way I can think of doing this would be to use a GetitemCount for every droppable Item in the game or create a form list that has all the itmes listed in it and use that in a loop with getitemcount or GetListCount. That is no small task.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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