Jump to content

Photo

Quest scripting help request - take item from player, equip on quest-giver

quest scripting quests scripts papyrus items inventory

  • Please log in to reply
10 replies to this topic

#11
Darklocq

Darklocq

    Cat o' Chocolate

  • Premium Member
  • 2,616 posts

Ah so! Thank you!  I would not have thought to stack up ".GetReference().GetBaseObject()" in a row like that.  I learned a lot from this, including that you can do local variables in Papyrus fragments to avoid repetitive long strings.

 

Ironically, I think I'm going to remove this gear-swapping part and just have the player manually give the (non-quest-flagged) gear to the NPC, since the gear is found right next to an armoring bench, and if someone smiths it up they'll be frustrated that the transferred version loses the improvements.  Plus it occurs to me that different follower frameworks handle follower-worn gear completely differently (put in inventory, put in special inventory, build outfit, etc.).

 

But I needed to learn this basic "get item away from player and into NPC inventory" process anyway, since I'll need it for a journal transfer later.  So, thanks again. :-)







Also tagged with one or more of these keywords: quest, scripting, quests, scripts, papyrus, items, inventory

IPB skins by Skinbox
Page loaded in: 1.256 seconds