Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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:	681
Size:	63.0 KB
ID:	51472  
Attached Files
File Type: txt leveleditor.txt (10.8 KB, 1032 views)
Reply With Quote
  #2  
Old 08-08-2010, 08:06 PM
PowerProNL PowerProNL is offline
Retired Zone Manager
PowerProNL's Avatar
Join Date: Feb 2008
Location: Holland
Posts: 266
PowerProNL can only hope to improve
Send a message via AIM to PowerProNL
Nice BUMP BUMP
__________________
Graal Mail: [email protected]
McPowerProNL, I'm loving it
Reply With Quote
  #3  
Old 08-25-2010, 04:48 AM
LordOfPi13 LordOfPi13 is offline
Classic iPhone LAT
LordOfPi13's Avatar
Join Date: Jul 2010
Location: California
Posts: 45
LordOfPi13 is an unknown quantity at this point
Send a message via AIM to LordOfPi13
Cool!

Nice
Reply With Quote
  #4  
Old 08-25-2010, 10:35 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Tried it a thousand times, it's really useful, I recommend it.
Reply With Quote
  #5  
Old 08-28-2010, 11:59 PM
N01ze N01ze is offline
Level Designer
N01ze's Avatar
Join Date: Aug 2010
Posts: 46
N01ze is on a distinguished road
Uhm It dosent seem to be opening :o
Reply With Quote
  #6  
Old 08-29-2010, 09:06 PM
firefighter firefighter is offline
Registered User
Join Date: Jan 2009
Location: Germany
Posts: 70
firefighter is on a distinguished road
You only need to say /leveleditor to open it
Reply With Quote
  #7  
Old 09-01-2010, 08:19 PM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
Very nice !
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
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:38 PM.


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