temnix Posted November 24, 2016 Share Posted November 24, 2016 I wanted to write a simple trick in an NPC's script - take off her helmet when not in combat, put it on when fighting starts. But I looked through the actions list and none seem to allow that. Or did I miss something? Link to comment
Ardanis Posted November 24, 2016 Share Posted November 24, 2016 FillSlot() can equip an item, but taking it off is complicated. If you have the exact item code then destroy/re-create should do the trick, but as a general routine - no luck. Link to comment
temnix Posted November 25, 2016 Author Share Posted November 25, 2016 Item code? Do you mean the filename? It's a particular helmet she wears, so I could supply that. Link to comment
Ardanis Posted November 25, 2016 Share Posted November 25, 2016 Then yes, DestroyItem("helmet") CreateItem("helmet",1,0,0). Link to comment
temnix Posted November 25, 2016 Author Share Posted November 25, 2016 Hm, I suppose it could work. Thanks. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.