Jump to content

Small Modding Question - Force Equipped Items


Recommended Posts

Posted

Asking here because google keeps giving me methods to force companions to wear stuff they wouldn't normally equip.

 

How does NV enforce item locks like Elijahs bomb collar or the explosive collar from the Brotherhood? Looking at it in xedit, I can't see anything special about the item record, and I haven't been able to find a script that forces them to be equipped either.

Thanks in advance for any help!

Posted

actor.equipitem ObjectID NoUnequipFlag{0, 1} HideMessageFlag(0, 1)

For example this is how vanilla game gives out explosive collar in Hidden Valley when you accept quest to deal with ranger (with my comments)

player.additem HVExplosiveCollar 1 1     ;Adds 1 item to player, will suppress message pop up
player.equipitem HVExplosiveCollar 1 1   ;Equips item on player, can't unequip through regular means, message is suppressed (NoUnequipFlag and HideMessageFlag is set to 1)



To unequip this item
actor.unequipitem ObjectID NoEquipFlag{0, 1} HideMessageFlag{0, 1}

Same example, but after quest is done

player.unequipitem HVExplosiveCollar 1 1 ; Unequips item from player, won't allow to equip this item again unless used equip item command to reset the state, message is suppressed (NoEquipFlag and HideMessageFlag is set to 1)
player.removeItem HVExplosiveCollar 1 0  ; Removes 1 item from player, message is not suppressed



Links, if need better description how this commands work
https://geckwiki.com/index.php?title=EquipItem

https://geckwiki.com/index.php?title=UnequipItem
https://geckwiki.com/index.php?title=AddItem
https://geckwiki.com/index.php?title=RemoveItem

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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