GeorgNihilus Posted June 21, 2008 Share Posted June 21, 2008 Hi people I'm wondering if there's a way to equip an armor-robe on a party member from another NPC dialog, i.e. if I want to equip on the Handmaiden with a "a_robe_03" tunic. Using something like this ... void main() { ActionEquipItem(CreateItemOnObject("a_robe_03"), INVENTORY_SLOT_BODY, TRUE); } ... works but only in the owner of the dialog itself. I need to equip the Handmaiden from, let's say, the Khoonda building receptionist dialog for example. any ideas-script?? thanks on advance ... Link to comment Share on other sites More sharing options...
stoffe Posted June 21, 2008 Share Posted June 21, 2008 Using something like this ... ... works but only in the owner of the dialog itself. I need to equip the Handmaiden from, let's say, the Khoonda building receptionist dialog for example. You can use the AssignCommand() function to queue actions for other objects than the one running the script. Like: void main() { object oNPC = GetObjectByTag("Handmaiden"); AssignCommand(oNPC, ActionEquipItem(CreateItemOnObject("a_robe_03"), INVENTORY_SLOT_BODY, TRUE)); } Link to comment Share on other sites More sharing options...
GeorgNihilus Posted June 23, 2008 Author Share Posted June 23, 2008 Thanks Stoffe it worked but for some reason only after setting the party leading to the handmaiden ... good modding! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.