Jump to content

Female-only armors adding to leveled lists


cp44

Recommended Posts

I've been making mods that aim to get the best custom armors into the game, in the same spirit as Immersive Armors. There is a major problem though: most of the armors are female only. Most of these turn male bodies invisible if equipped.

 

A possible solution:

 

Give each custom armor a male mesh. This option is strange because you'd have an armor like Crimson Twilight and you have to choose a vanilla armor look to represent it on males. What do you choose? Steel? So you kill a bandit who looks to be wearing steel and then look Crimson Twilight. That seems weird but it might be the best option. Before I go with that option, I wanted to ask the community.

 

Can anybody think of better solution?

Link to comment
Share on other sites

You could try making a quest with a reference alias that points to the player which then has a script attached to the player, or you could apply it directly perhaps.

Anyway, the script waits for OnObjectEquipped, checks if the armor has a certain keyword and if so, checks for the player's gender.
If the gender doesn't match your desired one, then unequip the armor. So something like:

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
Actor Player = Game.GetPlayer()

if akBaseObject as Armor
     if akBaseObject.HasKeyword(MyFemaleOnlyArmor)
          if (Player.GetSex() != 1)
               Player.UnequipItem(akBaseObject)
               Debug.Notification("Males cannot equip this armor!")
          endif
     endif
endif

Haven't tested it, but it should work in theory.

Edited by Fantafaust
Link to comment
Share on other sites

That's an interesting idea. I might have misunderstood the script but wouldn't that just make the males who would normally have that armor naked? Or would it try to give them another random outfit from the leveled lists?
Link to comment
Share on other sites

It would make them naked, yes, for whatever slot they were trying to equip. That seems reasonable to me though, since they did just take off their own armor to put this new one on, which "doesn't fit".

It would only effect armor pieces with that specific keyword though.

 

I'm sure the script could be modified to equip some other armor or just have the male mesh be some other armor instead, but I think that would look weird like you were saying in the op.

Edited by Fantafaust
Link to comment
Share on other sites

I think it really comes down to how many npcs you are adding this armor to and how you are creating/modifying them. The only other alternative I can think is make two leveled lists - 1 for males, 1 for females and assign them according to npcs based on gender.

Link to comment
Share on other sites

It would make them naked, yes, for whatever slot they were trying to equip. That seems reasonable to me though, since they did just take off their own armor to put this new one on, which "doesn't fit".

It would only effect armor pieces with that specific keyword though.

 

I'm sure the script could be modified to equip some other armor or just have the male mesh be some other armor instead, but I think that would look weird like you were saying in the op.

 

There's a small flaw in having the script try to trigger a new armor equip.

  • The npc has to have it in inventory
  • If item is added via another leveled list trigger it could potentially have the same problem
  • Repeatedly trying to get a new item to equip could result in a bloated inventory

A solution for 2 & 3 would be to have your script remove the item it's unequipping before trying to get another and equip it. Then if it equips you're good to go. If it triggers another unequip re-roll sequence the new one would remove the newly added item and try for another. So it's doable but could become cpu cycle heavy. Depending how many items are in the leveled list and how many could potentially trigger the "invalid" routine it may not really be an issue.

 

The other issue you may run into is knowing which armor list to re-roll for. Example: Did the piece you're not equipping come from a helmet, torso, boot list?

 

I think it really comes down to how many npcs you are adding this armor to and how you are creating/modifying them. The only other alternative I can think is make two leveled lists - 1 for males, 1 for females and assign them according to npcs based on gender.

Doing that will also require editing the affected NPC records to point to the proper lists. Using Fantafaust's idea of unequipping and rerolling the armor option could be better.

Edited by BigAndFlabby
Link to comment
Share on other sites

 

It would make them naked, yes, for whatever slot they were trying to equip. That seems reasonable to me though, since they did just take off their own armor to put this new one on, which "doesn't fit".

It would only effect armor pieces with that specific keyword though.

 

I'm sure the script could be modified to equip some other armor or just have the male mesh be some other armor instead, but I think that would look weird like you were saying in the op.

 

There's a small flaw in having the script try to trigger a new armor equip.

  • The npc has to have it in inventory
  • If item is added via another leveled list trigger it could potentially have the same problem
  • Repeatedly trying to get a new item to equip could result in a bloated inventory

A solution for 2 & 3 would be to have your script remove the item it's unequipping before trying to get another and equip it. Then if it equips you're good to go. If it triggers another unequip re-roll sequence the new one would remove the newly added item and try for another. So it's doable but could become cpu cycle heavy. Depending how many items are in the leveled list and how many could potentially trigger the "invalid" routine it may not really be an issue.

 

The other issue you may run into is knowing which armor list to re-roll for. Example: Did the piece you're not equipping come from a helmet, torso, boot list?

 

I think it really comes down to how many npcs you are adding this armor to and how you are creating/modifying them. The only other alternative I can think is make two leveled lists - 1 for males, 1 for females and assign them according to npcs based on gender.

Doing that will also require editing the affected NPC records to point to the proper lists. Using Fantafaust's idea of unequipping and rerolling the armor option could be better.

 

Well my intention was to have the script only run on the player, and not to have it equip any other armor, just to unequip itself automatically if the player is male. It's possible to have it do that sure, and remove the original armor from the inventory so as not to magically gain a new armor for free, but I think it would be very jarring and break immersion.

 

If I pick up some sweet looking clearly female armor, that has red and black accents or some such, that upon equipping as a male is a set of steel armor that would not work for me and I would never use such a mod in my games.

 

The best option would be to only allow female npcs to have the armor by making a gender-based leveled list(as Citadel said) but not editing the npcs directly. Instead, adding them via a script to those lists, which iirc that is possible.

So with the armors added to those lists, only female npcs have the armor now, and so we're fine and dandy there.

Then the player gets the armor and tries to equip it, and if they're female, good to go, if male they simply can't equip it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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