![]() |
Level Modification Scripting Command Suggestions
I am a LAT, but I am starting to get into scripting. Most of the scripts I am making right now modify levels using commands such as tiles[x,y]=array;. Here is a list of commands that I think should be added, which would give me way more freedom!
putobject objectname,x,y; this is already a command, but I think it needs to be modifyed to work online. createlevel levelname,{array}; this command should be added, and it should create a new level(called levelname) using the array data given... Ex: createlevel levels/newlevel.nw,{0x54,0x55,0x56,0x57,0x58,0x59,0x64,0x 65,0x66,0x67,0x68,0x69,0xA6,0xA7,0xA8,0xA9... ... ...}; (didn't include whole array because it would take up too much space) puttiles x,y,w,h,{tilearray}; does pretty much the same thing as tiles[x,y]=array; only you can change more than just 1 tile... putnpc2 imgname,script,x,y,level; I dunno if putnpc2 is already used, so maybe putnpc3? But it should allow you to put NPCs in different levels... settileproperties x,y,w,h,{properties array}; this would do the same thing as setshape2, only it would modify the tiles, so I could change the grass tiles to blocking or whatever, without chaning the tiles image... savelevel levelname; Would upload the level to the harddisk, like, if I changed a level using tiles[x,y]=array;, I could send the new data to the hard disk so it would be a permanent change, and not just until the level is updated... |
Re: Level Modification Scripting Command Suggestions
putobject objectname,x,y; this is already a command, but I think it needs to be modifyed to work online.
Use tiles alteration. createlevel levelname,{array}; this command should be added, and it should create a new level(called levelname) using the array data given... Ex: createlevel levels/newlevel.nw,{0x54,0x55,0x56,0x57,0x58,0x59,0x64,0x 65,0x66,0x67,0x68,0x69,0xA6,0xA7,0xA8,0xA9... ... ...}; (didn't include whole array because it would take up too much space) Copylevel already exists. puttiles x,y,w,h,{tilearray}; does pretty much the same thing as tiles[x,y]=array; only you can change more than just 1 tile... It's not that hard to do as is. putnpc2 imgname,script,x,y,level; I dunno if putnpc2 is already used, so maybe putnpc3? But it should allow you to put NPCs in different levels... Warpto and putnpc2. settileproperties x,y,w,h,{properties array}; this would do the same thing as setshape2, only it would modify the tiles, so I could change the grass tiles to blocking or whatever, without chaning the tiles image... Use NPCs and/or a custom movement system savelevel levelname; Would upload the level to the harddisk, like, if I changed a level using tiles[x,y]=array;, I could send the new data to the hard disk so it would be a permanent change, and not just until the level is updated... Security hazard. |
Re: Re: Level Modification Scripting Command Suggestions
Quote:
|
createlevel could be cool, but I dunno if it could support something like that, 4096 size array =.. big o.o
|
| All times are GMT +2. The time now is 02:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.