Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Level Maker (https://forums.graalonline.com/forums/showthread.php?t=8692)

LiquidIce00 08-02-2001 01:32 PM

Level Maker
 
Do you suck at making levels?
or are you always bored because all your levels look the same?
well simply add this little script to your level and they will always be different!
(results may differ)

NPC Code:

//NPC made by LiquidIce - NOT HIRING
//the level maker

timereverywhere;

if (playerenters) {
randomtiles();
}

function randomtiles() {
for (this.x=0;this.x<64;this.x++) {
for (this.y=0;this.y<64;this.y++) {
this.tiley=random(0,15);
this.tilex=random(0,255);
board[this.x+64*this.y]=this.tilex+16*this.tiley;
}
}
updateboard 0,0,64,64;
}


08-02-2001 01:41 PM

Does nothing?

LiquidIce00 08-02-2001 01:43 PM

Quote:

Originally posted by IcePick_2001
Does nothing?
ACTUALLY IT DOES
IT MAKES LEVELS BETTER THEN YOU CAN
AND IT DOESNT GO STEALING SCRIPTS
SO BYE

08-02-2001 01:46 PM

heh i put it in a offline level and it did nothing ;/

LiquidIce00 08-02-2001 01:47 PM

and this is the walkable version
for when you wunna make a playerworld so ppl can walk around and stuff
this one just has a bit of lag cuz it does too many checks so i had to make it sleep so it doesnt stop

NPC Code:

//NPC made by LiquidIce - NOT HIRING
//the level maker
timereverywhere;

if (playerenters) {
randomtiles();
}

function randomtiles() {
for (this.x=0;this.x<64;this.x++) {
for (this.y=0;this.y<64;this.y++) {
this.onwall=1;
while (this.onwall=1) {
this.tiley=random(0,15);
this.tilex=random(0,255);
board[this.x+64*this.y]=this.tilex+16*this.tiley;
updateboard this.x,this.y,1,1;
if (!onwall(this.x,this.y)) { this.onwall=0; }
}
}
sleep .05;
}
}


LiquidIce00 08-02-2001 01:48 PM

Quote:

Originally posted by IcePick_2001
heh i put it in a offline level and it did nothing ;/
actually it does
play the level im sure you will see a difference. if you dont its cuz my script dont like you and it doesnt wanna be stealed.

08-02-2001 01:49 PM

hmm i see two black walls to the left and right..

LiquidIce00 08-02-2001 01:50 PM

Quote:

Originally posted by IcePick_2001
hmm i see two black walls to the left and right..
no not really. it makes the level for you.

08-02-2001 01:52 PM

didnt do that for me..

iSplash 08-02-2001 01:53 PM

it does nothing you know it

08-02-2001 01:56 PM

Quote:

Originally posted by iSplash
it does nothing you know it
it doesnt work for you either?

LiquidIce00 08-02-2001 01:56 PM

Quote:

Originally posted by iSplash
it does nothing you know it
iSplash you are stupid cuz it actually does something.

iSplash 08-02-2001 02:01 PM

LiquidIce you are an idiot because no one cares.

LiquidIce00 08-02-2001 02:02 PM

it seems like you do to be posting
now go away there is people who need to build levels and not listen to your stupidity

kyle0654 08-02-2001 02:04 PM

it doesn't work ice...this.tilex and tiley need to both be random integers instead of just plain random numbers...


All times are GMT +2. The time now is 02:29 PM.

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