I can't believe I've forgotten this much, but here is the code first:
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
// Set all Tilesets where needed
removeTileDefs("");
temp.haha= {
"world_bb01.nw","world_bb02.nw","world_bb03.nw",
"world_bc01.nw","world_bc02.nw","world_bc03.nw",
"world_bd01.nw","world_bd02.nw","world_bd03.nw",
"world_be01.nw","world_be02.nw","world_be03.nw"
};
//make haha tileset on world_aa01(top left) through
//world_bf03(bottom right).
if (player.level.name in temp.haha) {
addTileDef("haha-tileset.gif", "world_", 1);
}else{
addTileDef("regular-tileset.gif", "world_", 1);
}
}
I can't even really think of a different way, but I know even I used to do it a different way. Obvously I need world_aa01 through world_bf03 one tileset and then the rest of world_ the regular tileset. Crappy doing it in onPlayerEnters too. :/