![]() |
Createing Levels
I need help making a script to create a level every time a new player logs on.
I have a first log on script that checks if the player has been on before, so I will just add it to that. I want it to create level with the players account name in it. For example, i8bit logs on, so it creates: i8bit.nw |
Quote:
[levelexists(str) - returns boolean] and if it doesn't, you could do plenty of things to create an entire level, but the easiest might be to use [copylevel(str, str) - parameters are the source level filename and the destination filename; the destination is relative to the levels/ folder] to draw from one level to another. Plenty of ways to do this part though. |
you might want to use escapefilename(player.account) when creating levels using the account/communityname and give it a nicer name for better script detections in the future.. like temp.lvl = "privatelevel_" @ escapefilename(player.account);
|
| All times are GMT +2. The time now is 10:41 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.