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.