You can use the existing shapescript only for very basic modifications such a changing the background color, or adding a decoration.
e.g.
shape main
{
//set the fill color based on tagged value "heat map"
if(hastag("heat map","good"))
{
//light green
SetFillColor(112,255,145);
}
else if(hastag("heat map","problematic"))
{
//light yellow
SetFillColor(255,253,170);
}
else if(hastag("heat map","poor"))
{
//light red
SetFillColor(255,142,142);
}
else if(hastag("heat map","not evaluated"))
{
//white
SetFillColor(255,255,255);
}
else if(hastag("heat map","missing"))
{
//light purple
SetFillColor(227,168,255);
}
//draw the parent shape
DrawParentShape();
}For anything more complicated you probably want to completely rewrite the shapescript.
Geert