Where do I look for putting random things in containers?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Where do I look for putting random things in containers?

Post by HaunterV »

I want to somewhat randomize what is in say a sack found in my dungeon, how do I randomize the contents? Apparently lootDrop or whatever monsters do doesn't work. Now I don't necessarily need a direct answer so much as a direction to look so I can learn by doing.

otherwise ima make like 20 sacks and roll a d20 every time i place one.
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
User avatar
Edsploration
Posts: 104
Joined: Wed Sep 19, 2012 4:32 pm

Re: Where do I look for putting random things in containers?

Post by Edsploration »

The last two code examples of Ixnatifual Tome Library post are almost exactly what you're looking for. Just use your own items instead of that list of tomes, and a sack instead of an alcove. If you still want a challenge you could expand on his method if you want and add multiple loot table functions, or a dynamic one that accepts a parameter for the chance to spawn really good loot or really bad loot.

viewtopic.php?f=14&t=3338
Open Project -> Community FrankenDungeon: viewtopic.php?f=14&t=4276
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: Where do I look for putting random things in containers?

Post by HaunterV »

Yeah i was in that thread and figured that that last scrip of the OP was exactly what i was looking for.
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
Post Reply