From my experience, the system that the Aurora Toolset says works -- doesn't work. You are supposed to put a 'Base Container' somewhere and all containers of a certain type - Low, Medium, High, or Unique will select from it to determine what to put in. This script fix makes it really work -- no more stacks of 8 potions because you wanted to weight the probability of getting those potions.
Posted by JXai at 2004-11-19 15:37:06 Voted 10.00 on 11/19/04
Posted by AU_Armageddon ( 138.217.xxx.xxx ) at 2004-05-31 19:23:00
Or you can just put in 9 CLW potions as separate items instead of stacked which is what I did with everything I wanted higher probabilities of. Works as intended.
Down side is that the chests have an inconsistent limit to how many items can be put in them and when you cross whatever the limit happens to be you crash back to desktop, and corrupt your mod if you try and recover for the icing. Mine 4 all have different limits ranging from approx 250 to 500 items each. Still, at least it does work like it says it is supposed to which I find to be a bit of a rarity with NWN :P
Posted by Xai ( 68.12.xxx.xxx ) at 2004-05-25 12:14:00
I understand that is how it is supposed to work, and it *APPEARS* to work that way. The problem is that if you put 9 CLW potions and one longsword in then you SHOULD have a 10% chance of getting a long sword and a 90% chance of getting a potion.
Unfortunately, at least in the version I have - SoU 1.62 - the Base Treasure containers stack the stackable items. The way it is coded by default treats the entire stack as one item...SO...you have a 50% chance of getting a longsword and a 50% chance of getting NINE CLW potions!
This code assigns a probability to each stack item based on its stack size, then it creates ONE item from the stack based on its ResRef. This still allows creation of multiple items by creating the stack from a ResRef that has a default stack size greater than one.
Finally, for arrow, bolts, throwing axes, shurikens, and darts, it creates a random number based on the default stacksize of the ResRef -- so you don't always get 99 or 50.
Hope that clarifies things for you!
Xai
Posted by Just Helping ( 204.174.xxx.xxx ) at 2004-05-25 09:51:00
Actually the chests are called Module Treasure "insert type"
Low
Medium
High
Unique
The are special containers in the Toolset, you place items in them, corresponding to there value. And the treasure system will randomly pull items from them.
Im not sure if this was what you were doing, but it sounds like you were doing something else. But I've never had trouble with the Bioware system.
You must be Logged In to post comments in this section.