View Single Post
  #1  
Old 12-07-2011, 08:43 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Setting different tilesets

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. :/
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote