Author Topic: Ness Spawn and merchant based loot system question  (Read 358 times)

Legacy_GIANTSWORD

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
Ness Spawn and merchant based loot system question
« on: September 13, 2014, 02:04:48 pm »


               

Hey guys, 


 


I'm working with treasure chests right now and using Ness to spawn them in using the merchant based loot table which works nicely.  However I can't figure out how to change the probability of getting 1, 2, or 3 items.


 


Any ideas?


 


Here's the spawn_cfg_loot


http://pastebin.com/Pg8g5Q3G



               
               

               
            

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
Ness Spawn and merchant based loot system question
« Reply #1 on: September 13, 2014, 02:52:17 pm »


               

Where are you specifying the probabilities?  


 


If you don't already have it, download this NESS guide.  From that, there's this (~page 56):


 


"If the general formula for the flag is LtnAmBqCr, then:

· the probability of three items in inventory of creature/container = r% (parameter of C),

· the probability of two items in inventory of creature/container = r% + q% (parameter of B+C),

· the probability of one item in inventory of creature/container = r%+q%+m% (parameter of A+B+C), and

· all items will be randomly selected from merchant named LOOT_n.

 

LT501A30B20C10 would put three items in inventory 10% of the time, two items 30% of the time (20%+10%) and one 60% (30%+20%+10%), and none 40% of the time from merchant LOOT_501.

 

LT502A0B0C100 would put three items into the creature/container inventory 100% of the time. The parameters on the A and B subflags are irrelevant in this case.

 

LT503A100B50C50 would put three items on the creature/container 50% of the time and two 100% of the time; the parameter on the A subflag is irrelevant.

 

If no A, B, or C subflag is used, the defaults are A50B15C5. "


               
               

               
            

Legacy_GIANTSWORD

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
Ness Spawn and merchant based loot system question
« Reply #2 on: September 14, 2014, 01:02:51 am »


               

I'll give that a shot, thanks!



               
               

               
            

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
Ness Spawn and merchant based loot system question
« Reply #3 on: September 15, 2014, 04:09:43 am »


               

You might find the Spawn Waypoint Generator helpful as well.  The SWG can help create flags for you.


 


I believe the file is also available here at the neverwintervault.org, but it looks like it is wrapped in the NWN2 NESS version.  It probably deserves to be its own upload there.