Jump to content

scripting function for "get equipped item"?


SylvanTiw

Recommended Posts

Is there a way to find out what an actor has equipped, like the GetEquippedShield function, only for armor or boots?

 

I can only find function for weapon or shield on the creation kit wiki, which is not encouraging...

 

edit: I'm trying to write a script that removes all items(easy part) then adds back the items the player had equipped(hard part)

Edited by SylvanTiw
Link to comment
Share on other sites

There's the worn keyword count but you probably need something more specific or there's an OnEquipped event that could be used in a script attached to an item. The console has a showinventory command which would be useful if you could parse it but I don't think it's supported in Papyrus.

 

Can you provide some more information on what you're trying to do?

Link to comment
Share on other sites

There's Game.Player().GetItemCount(itemname) operator number

 

like:

If Game.GetPlayer().GetItemCount(IronDagger) >= 1

effect

EndIf

 

Edit: I may have misunderstood you if you were asking for a function that returned which peices of armor the actor is wearing, in that case idk.

Edit 2: There's also the IsEquipped function.

Edited by skizophrenic
Link to comment
Share on other sites

I'm trying to write a script that removes all items(easy part) then adds back the items the player had equipped(hard part)

 

edit: Alliteratively, it could remove everything except what the player has equipped, but I don't know how to do that ether.

Edited by SylvanTiw
Link to comment
Share on other sites

  • Recently Browsing   0 members

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