Decimals in leveled list chance

Feedback on past, current, and future development.
Post Reply
User avatar
Posts: 1150
Joined: 29 Jun 2015, 09:08

Decimals in leveled list chance

Post by DestinedToDie » 28 Sep 2018, 10:43

Hey. So have a look at this image.

As you can see, there is a 99% chance that 100 gold and a 6th house bell hammer will not spawn as loot. That is to say, that there is a 1 in a 100 chance that you get 100 gold richer and a new weapon.

However. If I want to change it to 1 in a 1000 chance, I would need to add a decimal to write 99.9%. OpenMW-CS here does not allow decimal points. Meaning that 1 in a 100 is the lowest chance that you can get a drop. But why don't we allow anything lower than that? It feels like I could play around much more with making super-rare drops if OpenMW only allowed decimal numbers for chance none.

I don't see any apparent backwards compatibility issues with Morrowind, so I'm making this post with the hope of getting Zini's blessing to add it to the list of OpenMW-CS issues on GitLab.
Zini wrote:
13 Jun 2018, 17:38

User avatar
Posts: 634
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Decimals in leveled list chance

Post by akortunov » 28 Sep 2018, 10:49

Currently Chance None is an unsigned char. If want to store it as a float, it will require to change a ESM format.

Post Reply