Thread: Tile replacing
View Single Post
  #7  
Old 04-08-2006, 08:57 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by ZeLpH_MyStiK
Using the word "only" is kind of harsh as well as incorrect. It can be easily done.
-Create a dbnpc
-Create a list of levels that you want to change, and set it to a string such as this.levels
-Have the dbnpc warpto each level on creation with a for loop.
-In every instant of the loop, have the dbnpc check for each tile on the level
-If the tile is what you're searching for use tiles[tx,ty] to set the tile
-Now you can either update the tile each time the dbnpc sets it by doing updateboard2 tx,ty,1,1; or you can have the dbnpc update the whole level at the end of each for loop instance by doing updateboard2 0,0,64,64;
But you cannot do any of this in the editor, which is what he was saying.
Quote:
Originally Posted by Andy0687
updateboard2 is serverside, the way you are doing it on the editor is the only way you will be able to do it, the only way to save those level changes is with the save button.
__________________
Skyld
Reply With Quote