I am trying to figure out if there is a way to make weapons and armor dropped by killed enemies be damaged. So instead of everything being "New" it could either be a random condition or allways be "Broken".
SetEnemyEquipment defines what equipment the enemy is carrying and using (as far as I can understand).
Is there some way to either randomize or set the condition at creation?
Alternatively, is there away to affect the items contained in a dead enemy? To change their condition when they get put in the loot container?
Modify codition of enemies equipment?
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Modify codition of enemies equipment?
This seems to call ItemBuilder methods, that builds DaggerfallUnityItem objects; In those classes, check how DaggerfallUnityItem's currentCondition is set (compared to maxCondition); It seems to be set to item's template hitPoints, except for magic items where it's set using number of uses and arrows that have a currentCondition of 0 ("to match what classic does").
I guess some "post processing" could be done on loot items to lower their currentCondition based on context (loot piles, corpse loot,...)
I guess some "post processing" could be done on loot items to lower their currentCondition based on context (loot piles, corpse loot,...)
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart