"
Terrain Types" in GUI are not really variables. They are
integers. They are denoted by two single quotes ' ', and inside them are 4 characters (a-z or 0-9). They form a rawcode (just like the ones in the object editor)
For example, "
Lordaeron Summer - Grassy Dirt" is represented by
'Ldrg'
. Since these variables are just integers, you don't need to worry about them leaking. You can safely overwrite the variable without having to "destroy" the previous terrain type.
Basically:
-
Set TerrainTypeVariable = Lordaeron Summer - Grass Dirt
-
//do a lot of actions
-
Set TerrainTypeVariable = Northrend - Snow
That won't leak.