Need help on item-spawning for mod


#21

allright… thanks for the info…

wow, turns out i missed the vital core of the mod. luckily its still in alpha test so fixing is main priority.
lots of things to learn in JSON than typing the code.


#22

just to make sure, is this right? or wrong?


#23

Your format looks good. I’m assuming those are all vanilla groups. Be aware, when you add the “ammo” flag you’re adding it to the entire item_group, or overwriting what was there. This is probably an unintended consequence and will yield results you don’t expect. To get around this, you could nest them inside another group. So it’d be “guns_shotgun_rare” [ group: RV_shotguns", 100] and then rv_shotguns whould be the entry you have above.

edit: sorry for the sloppy psuedo code, I’m tired and too lazy to do it right.
edit2: don’t make it 100 percent chance if it’s going into a distribution, I think that’ll bork things. Collections are ok though.


#24

:smile: its ok, yeah im intended to do that as to give it a little bit compensation for the rare spawn weight.

yeah… im just goona use default method as of now, for testing purpose…

thanks.


#25

Happy to be of assistance.

Lol, fuck you 20 character limit.


#26

:smile: not enough character limit.