Hi,

i think you have to read some Tutorials or the Manual...
There some big mistakes in your Script...

First:
scope_on = (scope_on == off);

is Scope_on a Var? why do you write (scope_on==off)
You could write scope_on=0;

Second:

if(scope_on == on)
{
bmap = scope;

}

Here you have to wirte if(scope_on==1) /1=on / 0=off

bmap=scope.....
Write Scope.visible=on;


Third:

If / Else in a Panel Definition? This must be declared in a Function...


You have to Learn much, so read Tutorials and the Manual !

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE