Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-08-2010, 05:48 PM
firefighter firefighter is offline
Registered User
Join Date: Jan 2009
Location: Germany
Posts: 70
firefighter is on a distinguished road
Online Level Editor

Hello,

I scripted a simple Online Level Editor in GraalScript2 and I think that it is useful for many LAT's (I'm not so good in doing this ). Simply add the attached script to a weapon (e.g. "-Staff/LevelEditor"). It has the following features:
  • select tiles from tileset (rectangular selection by dragging)
  • select tiles from level (rectangular selection by dragging)
  • selected tiles are showed semi-transparent
  • leveleditor GUI automatically hides while being in "placing mode"
  • (re)place tiles in the level with selected ones on mouse position by pressing left mouse button
  • cancel placing tiles by pressing right mouse button
  • create levels online (simply type a level name with or without .nw extension and it will be created in "levels/_test" (by default - can by changed in serverside part))
  • please make sure that you have set "savelevels=true" (and optionally "savelevelsmessage=false" to disable RC messages when saving levels) in the server options
  • to be able to create levels online and use them you also need to have "rw levels/_test" in (npcserver) rights folder configuration and "level _test/*.nw" in normal folder configuration

You can add accounts (for staffs that should be able to edit and/or create levels online) to the account arrays defined in the serverside part of the script.
Attached Thumbnails
Click image for larger version

Name:	leveleditor_screenshot.png
Views:	767
Size:	63.0 KB
ID:	51472  
Attached Files
File Type: txt leveleditor.txt (10.8 KB, 1133 views)
Reply With Quote
 


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 05:31 PM.


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