Scripting Grass
nwfan87
Member Posts: 99
Is there anyway to turn of the grass within a certain area, either by using scripting or some other mechanism within the toolset that I've missed? Or perhaps there is a way to control the toggle grass on and off like you can with the menu, using scripts?
0
Comments
There are some new functions which let you change tiles. It seems you have to explicitly recompute grass (perhaps for performance reasons). You could experiment - I wonder whether you can change the entire area to tiles with no grass, recompute grass, then change all the tiles back without recomputing grass.
If that works, test what happens if the player toggles grass off then on - it might undo your hard work.
https://nwnlexicon.com/index.php?title=SetTile
https://nwnlexicon.com/index.php?title=ReloadAreaGrass
https://nwnlexicon.com/index.php?title=SetTileJson
Personally I find grass a PITA which I advise players to turn off, but that's just me.