mobotium Posted March 5, 2010 Share Posted March 5, 2010 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 More sharing options...
pkleiss Posted March 5, 2010 Share Posted March 5, 2010 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 More sharing options...
Cipscis Posted March 6, 2010 Share Posted March 6, 2010 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 EndYou 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 EndWith 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 More sharing options...
mobotium Posted March 6, 2010 Author Share Posted March 6, 2010 Thanks guys, that makes my idea much easier to accomplish. :thumbsup: +Kudos Link to comment Share on other sites More sharing options...
Recommended Posts