Ask a simple question, get a simple answer

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
The_Morlock
Posts: 9
Joined: Sun Jun 02, 2024 6:15 am

Re: Ask a simple question, get a simple answer

Post by The_Morlock »

Hello,

When using an altar or table, is there a way to randomly place items around the table (asset addon)? For instance, if I add three items, they all show in the center, all sort of through each other.

Thank you!
My Project(s): Grimstone Keep, a reimagining of the 1995 Interplay game, Stonekeep.
Discord: https://discord.gg/6w42HuxB
Patreon: https://patreon.com/GrimstoneKeep
User avatar
Isaac
Posts: 3179
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

Use :setSubtileOffset(x, y) to influence the placement of individual objects in a tile.

A way to do this for groups is to iterate through the items and randomly nudge them around.
Alternately the items could be placed in formations based upon how many items are present.
Post Reply

Return to “Mod Creation”