Feature probability is invalid
#1
Posted 20 August 2009 - 07:59 PM
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
#3
Posted 21 August 2009 - 01:07 AM
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
#4
Posted 21 August 2009 - 01:23 AM
0-1 and 1-2 don't overlap.
0-1 is 1%
1-2 is another 1%
no room for overlap.
0-2 would be 2% entirely covering the previous 2.
0-0 is not happening
1-1 is not happening
You could fill your effect block with 0-0, 1-1, ... 100-100, and you wouldn't see a damn effect happening.
I know it is difficult to comprehend 0 based counting, but computers are like that.
#5
Posted 31 August 2009 - 09:18 AM
Avenger, on Aug 21 2009, 05:23 AM, said:
0-1 and 1-2 don't overlap.
I made an item that has a bunch of different effects and set them all up this way. So for example, from probability 26-32, it inflicts disease. From 32-39 it inflicts blindness. According to your definition, there should not be an overlapping chance to get both - but I've managed to do it, presumably on a roll of 32. And since all the effects were set up this way, I've managed to get an overlap where I get hit with 2 effects fairly frequently.
Edit:
Moreover, I made a test item that stacked a bunch of effects with 0-0, 1-1, 2-2 probability etc. I got some of them to fire, disproving this:
Quote
1-1 is not happening
You could fill your effect block with 0-0, 1-1, ... 100-100, and you wouldn't see a damn effect happening.
Edited by Miloch, 31 August 2009 - 10:23 AM.
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
#7
Posted 31 August 2009 - 10:25 AM
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
#9
Posted 31 August 2009 - 12:41 PM
Miloch, on Aug 31 2009, 02:25 PM, said:
Incidentally, when you create an item with zero charges, it makes it unlimited charges for all practical purposes, but also creates an occasional bug that creates 65535 copies of the item in one stack (weighing several tonnes for a 1lb item). Is this a known issue? Maybe it's related to the bugs with "unlimited" stacking/bags of holding components (I don't have those installed, but folks have reported similar things).
Also, as long as I'm reporting weird random stuff I'm not completely sure of, is it just me or does UseItem only work for certain items, like potions? I tried making the test item a wand at first and it did nothing in scripting until I changed it to a potion.
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
#11
Posted 25 March 2012 - 11:50 PM
However, we made an interesting discovery in BG1 (with and without TotSC). I'm not sure if this is known but it doesn't appear to be documented anywhere. The engine either pretty much ignores probabilities or it causes bugs at best. If, for example, you have an item with staggered effect probabilities from 0-33, 34-66, 67-99 or even 0-4, 5-9, 10-14, all three effects will fire regardless. I think I have seen only 2 fire, but never just 1 or 0. It is perhaps not surprising that there are no such items in the vanilla game (except slimed2.itm and sw1h99.itm, both unused).
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
#13
Posted 26 March 2012 - 02:13 AM
Miloch, on 25 March 2012 - 11:50 PM, said:
I have been aware of the example you use since I began working on FotD. I think Ghreyfain explained to me a long time ago how it actually works. You cannot make the effects mutually exclusive because prob2 has to be 0 but you can still add some random element. . If you want a spell that improves AC by 1D4, make four AC +1 effects with probabilities 0-25, 0-50, 0-75 and 0-100.
#14
Posted 26 March 2012 - 03:48 AM
Avenger, on 26 March 2012 - 02:11 AM, said:
And 0-99 is exactly the same as 0-100.
Echon, on 26 March 2012 - 02:13 AM, said:
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











