Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2006, 08:05 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Googi
...
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.
Reply With Quote
  #2  
Old 04-08-2006, 08:43 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
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;
__________________
Reply With Quote
  #3  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.