Jump to content

question


mobotium

Recommended Posts

I've got a huge mod idea, but before I can even start doing it, I need to ask:

 

Is it possible to have a piece of armor that you cant equip with any weapon ?

If so, is it possible to have a weapon only appear in your inventory when you have that armor on?

If so, is it possible to have that weapon automatically equip itself every time you use that armor?

Finally, is it possible to have that armor un-unequipable (if you get what I mean)? - As in, when you get it you equip it automatically and cant change your armor until its removed by a script?

Link to comment
Share on other sites

1) You could use the FOSE command GetEquippedObject to determine the object equpped in the weapon slot and force the armor to be unequipped.

2) You could script the swapping of a playable versus unplayable version of the weapon. Unplayable items do not show up in pipboy inventory.

3) You could force the equipping of the unplayable item (I think). I jniow this works for NPCs, but I haven't tried it for the player.

4) Again, you could force the equipping of an unplayable armor, which would not show up in the inventory list. I believe you would also need to check if the armor was in the player's inventory and force equip it if the player chose to attempt to equip a different armor. But, I haven't tried using the GetItemCount on an unplayable item, before.

Link to comment
Share on other sites

For the second point, it would be simpler to just remove/add the weapon when the armour is equipped and unequipped. For example, by adding a scripted object effect to the armour with the following script:

Begin ScriptEffectStart
AddItem WeaponID 1
End

Begin ScriptEffectFinish
RemoveItem WeaponID 1
End

You could even extend that script to forcefully equip the weapon and not allow the player to unequip it:

Begin ScriptEffectStart
AddItem WeaponID 1 1
EquipItem WeaponID 1
End

Begin ScriptEffectFinish
RemoveItem WeaponID 1
End

With that script, the weapon will be equipped automatically when the armour is equipped, and cannot be unequipped manually. When the armour is unequipped, the weapon is removed.

 

The player can be forced to equip unplayable equipment, if you don't want it to show up in their inventory. The pip-boy is an example of an unplayable item that the player can equip.

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

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