Author Topic: The nudist PC (or How to resolve these armor issues?)  (Read 756 times)

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« on: November 21, 2010, 04:50:20 pm »


               I've got this problem that whenever I create custom clothing for my PC he needs at least the Light Armor Proficiency which he doesn't have, so I created an item that gives it to him. However, when I load the character into the module - even though he already wears both the item giving him the Light Armor feat, as well as the clothing - he unequips his clothing again and you'd have to equip it manually. I tried to make him equip the clothing by scripting at the start of the module but apparantly it didn't work. Any ideas on how to make it work? It's just clothing g**d***it!
':pinched:'
               
               

               
            

Legacy_Balduvard

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #1 on: November 21, 2010, 05:09:27 pm »


               The chest appearance will determine the type of armor you are creating. Appearances closer to 0 are clothing (0 base armor) whilst appearances near the end of the list are heavy (8 base) armor. You can tell what the base armor is when you are changing the item's appearance.


               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #2 on: November 21, 2010, 05:50:27 pm »


               Yes, I figured that out but I still want to choose appearances freely. Any idea on how to make the PC comfortable with an armor type he usually can't wear?
               
               

               
            

Legacy_Balduvard

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #3 on: November 21, 2010, 06:05:55 pm »


               I believe you can apply the item property constants for armor proficiency to the PC's skin. I have not personally tested doing such, so I am unsure of how it would interact with the equipping process on client enter.
               
               

               
            

Legacy_Xenovant

  • Full Member
  • ***
  • Posts: 182
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #4 on: November 21, 2010, 06:07:57 pm »


               If is for singleplayer and you don't mind to cheat... you could use Leto to give the character the armor proficiency '<img'>



 Have you added a "ClearAllActions()" before the equip command? If not, add it '<img'>



 Maybe adding a "DelayCommand" to the equip command may work too. The idea it's to wait until the  game checks the item with the armor proficiency and then equip the armor
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #5 on: November 21, 2010, 06:40:44 pm »


               Strange. When you equip the NPC in the toolset, it should give you a warning of what armor proficiencies the NPC does not have. Click YES to give them the ones they require to wear the gear.



FP!
               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #6 on: November 21, 2010, 08:21:55 pm »


               It's not an NPC but the PC himself. I created him, let him equip the items and saved the character, then started the mod with him (both items already equipped). Although one item grants him the required feat, the engine removes his light armor.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #7 on: November 21, 2010, 11:53:15 pm »


               The reason this is happening (and its also why equipped items that boost spell bionuses or grant spells fail on relogging) is that your PC actually spawns in nude first. Then the game creates any items equipped and in inventory after you spawn in. This all happens before you actually appear IG though. So because the item granting you the light armor feat needs to be created at the same time your armor is, your armor automatically unequips. Hope this makes sense. I'd just Leto the PC and give him/her the darned feat.
               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
The nudist PC (or How to resolve these armor issues?)
« Reply #8 on: November 22, 2010, 03:10:35 pm »


               The mod has to follow the rules of the GOG contest and I don't know if using Leto would be okay, so I just gave up and created another set of clothing with AC 0; doesn't look too bad either. But all your input has been very helpful to make me understand how NWN works. Thank you, kalbaern, FP, Xenovant and Balduvard!
:happy:
               
               

               


                     Modifié par olivier leroux, 22 novembre 2010 - 03:10 .