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.
|
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;