Aller au contenu

Photo

Ness Spawn and merchant based loot system question


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
GIANTSWORD

GIANTSWORD
  • Members
  • 88 messages

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



#2
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages

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. "


#3
GIANTSWORD

GIANTSWORD
  • Members
  • 88 messages

I'll give that a shot, thanks!



#4
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages

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.