View Single Post
  #5  
Old 11-17-2013, 07:53 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Quote:
Originally Posted by Todd45 View Post
Thanks for the responses. Right now im having trouble loading the maps I create. they always load with a default tileset. Anyway to change that?
Make a new NPC script and add the code enclosed in the PHP tags below. It will add the Graal Kingdoms tileset and terrain markers for the map, but make sure you delete the NPC script before you upload it to any server because it will spam RC text with errors when anyone enters the level.

PHP Code:
//#CLIENTSIDE  
if (created) {  
  
removetiledefs;  
  
addtiledef picso2.png,,0;  
  
loadmap <mapname>; 

If you are working on inside levels add the script below to the level:

PHP Code:
//#CLIENTSIDE
if (playerenters) {
  
addtiledef tiles_inside.png,inside,1;
  
addtiledef2 tiles_wallspirates.png,#L,1024,224;

This will add the GK inside tiles to any level that starts with the word "inside" and the pirate wall tiles. If you want different wall tiles just change the "tiles_wallspirates.png" string to your preferred tileset. Also, unlike the outside tileset you won't need to delete this script from the level if you upload it to any servers.

If this script doesn't work add a new script and add the code in the PHP tags below to clear the current tileset and then delete it again.

PHP Code:
//#CLIENTSIDE  
if (created) {  
  
removetiledefs;


Last edited by cyan3; 11-17-2013 at 09:45 PM..
Reply With Quote