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...

LiquidIce00 08-02-2001 02:08 PM

1 Attachment(s)
Quote:

Originally posted by kyle0654
it doesn't work ice...this.tilex and tiley need to both be random integers instead of just plain random numbers...
it works ..
ILL ATTACH THE LEVEL so you people can see IT WORKS!
and it does not matter if you use int() or not.

kyle0654 08-02-2001 02:12 PM

Quote:

Originally posted by LiquidIce00


it works ..
ILL ATTACH THE LEVEL so you people can see IT WORKS!
and it does not matter if you use int() or not.

there is no tile with an index of 123.15253251 is there?

LiquidIce00 08-02-2001 02:12 PM

Quote:

Originally posted by kyle0654

there is no tile with an index of 123.15253251 is there?



AHHHH IT WORKS!!!
LOOK ATI T OAJDASKLDASKD
ASDASKLDK
ASD
S
DS

S

U CAN MAKE INT IF IT MAKES YOU HAPPY BUT IT DOES NOT MATTER!!!!! AT LEAST NOT IN THIS CASE~!

08-02-2001 02:36 PM

hmm that zip works for me but thats some crapy as level ;/

SkooL 08-02-2001 02:39 PM

1 Attachment(s)
Quote:

Originally posted by IcePick_2001
hmm that zip works for me but thats some crapy as level ;/
Uhh...it's not meant to make quality levels...

08-02-2001 02:43 PM

Quote:

Originally posted by SkooL
Uhh...it's not meant to make quality levels...
Oh i didnt know that

Aknts 08-02-2001 03:33 PM

There is no point in that script it woul dbe good if it looked right

entravial 08-02-2001 05:36 PM

works for me

Knightoffrost 08-02-2001 06:46 PM

Quote:

Originally posted by IcePick_2001
hmm that zip works for me but thats some crapy as level ;/
Some crapy level seems to be the story of your life. :rolleyes:

LiquidIce00 08-02-2001 10:57 PM

Quote:

Originally posted by Knightoffrost


Some crapy level seems to be the story of your life. :rolleyes:

Yes it makes better levels then IcePick.

RICEJERRRY4 08-03-2001 04:17 AM

hey nice
 
Hey Liquid Ice nice code

Slaktmaster 08-03-2001 04:45 AM

hai everyone

LiquidIce00 08-03-2001 05:54 AM

I could make it actually do stuff but then it would just be a level generator npc that generates random levels every time u go on it .
and IcePick would make Delteria 2k1 which every level is new every time u goto ..

prozac424242 08-03-2001 06:58 AM

maybe why
 
the top two lines are commented out.
when you copy and paste to graal everything is on one line.
Go to the timereverywhereand press enter before it.
that made it work for me....

kyle0654 08-03-2001 07:20 AM

replace timereverywhere with //#CLIENTSIDE for online use

Poogle 08-03-2001 08:51 AM

IcePiick is not the level stealer you ***got! Its Jedi!

LiquidIce00 08-03-2001 10:26 AM

Quote:

Originally posted by kyle0654
replace timereverywhere with //#CLIENTSIDE for online use
hey kyle,
can you explain me some timereverywhere uses. because sometimes it works for leader only . so i put timereverywhere and then it might work for everyone.
can you tell me like the best you can of how it works ?

LiquidIce00 08-03-2001 10:27 AM

Quote:

Originally posted by Poogle
IcePiick is not the level stealer you ***got! Its Jedi!
plz no homophobic comments and also Ice pick = script stealer . i didnt say level ;) i said random levels cuz of the script . hooked on phonics.

grim_squeaker_x 08-03-2001 05:17 PM

Quote:

Originally posted by LiquidIce00


hey kyle,
can you explain me some timereverywhere uses. because sometimes it works for leader only . so i put timereverywhere and then it might work for everyone.
can you tell me like the best you can of how it works ?

You need to put in the timereverywhere with playerenters.
if (playerenters) timereverywhere;

LiquidIce00 08-04-2001 12:31 AM

Quote:

Originally posted by grim_squeaker_x
You need to put in the timereverywhere with playerenters.
if (playerenters) timereverywhere;

no that doesnt matter
you dont even need to put timeout in if player enters ;)
it just makes it a constant

wetferret1 08-04-2001 02:52 AM

Stop flaming eachother! Ice was just doing a joke by posting this thread....RIGHT!!!

LiquidIce00 08-04-2001 02:57 AM

Quote:

Originally posted by wetferret1
Stop flaming eachother! Ice was just doing a joke by posting this thread....RIGHT!!!
we are not . only Poogle is .
but yeah it was a joke .. at least to ppl who know how to script ;)

wetferret1 08-04-2001 03:07 AM

SEE!!!!! You people dont know how to tell if someone is jokeing!

nyghtGT 08-07-2001 01:18 PM

SHUT UP ICE PICK !!!
 
1 Attachment(s)
Ice Pick,

For once can you shut the hell up !!! You act like you know so much about scripting when you hire hacking NAT's to do it for you ... So it may not work but show Liquid some creativity !!!


- Nyght a.k.a. Legend Xero

nyghtGT 08-07-2001 01:19 PM

Scratch that .gif
 
That was a mistake but i think it looks kool .


All times are GMT +2. The time now is 02:18 AM.

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