Modify a map tile via script

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
jxjxjf
Posts: 33
Joined: Fri Oct 24, 2014 6:26 am

Modify a map tile via script

Post by jxjxjf »

Hey, I'm so sorry if this is actually explained in the scripting reference, but I didn't see anything that seemed to answer my question. I'd wait for more updates, but I'm hoping for a quicker answer so I can scrap the idea if it's impossible.

So, is there any way to modify either the individual tiles in a map or the map itself via script? The Map object didn't seem to have any functions allowing this the last time I looked, but it seems like something that could be possible.

I'm hoping to do something with changing water levels, so something as simple as setting underwater to false would work for me, but changing the tiles to something different entirely would also work. I don't need any kind of animation, as it happens "off screen", but it does need to happen live.

So, did I miss something simple or is this not possible?

Thanks! :D
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

Re: Modify a map tile via script

Post by MrChoke »

This was a huge limit to the ideas on had on custom dungeons. You cannot change the actual square definition in game. Once you define it as a wall in the editor, its a wall. You can strip all of the textures off of it if you want and its still a wall. Same goes for elevation.
Post Reply