Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-02-2001, 01:32 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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;
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #2  
Old 08-02-2001, 01:41 PM
Guest
Posts: n/a
Does nothing?
Reply With Quote
  #3  
Old 08-02-2001, 01:43 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #4  
Old 08-02-2001, 01:46 PM
Guest
Posts: n/a
heh i put it in a offline level and it did nothing ;/
Reply With Quote
  #5  
Old 08-02-2001, 01:47 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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;
}
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #6  
Old 08-02-2001, 01:48 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 08-02-2001, 01:49 PM
Guest
Posts: n/a
hmm i see two black walls to the left and right..
Reply With Quote
  #8  
Old 08-02-2001, 01:50 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #9  
Old 08-02-2001, 01:52 PM
Guest
Posts: n/a
didnt do that for me..
Reply With Quote
  #10  
Old 08-02-2001, 01:53 PM
iSplash iSplash is offline
Banned
Join Date: Jun 2001
Location: california
Posts: 238
iSplash is on a distinguished road
Send a message via ICQ to iSplash Send a message via AIM to iSplash Send a message via Yahoo to iSplash
it does nothing you know it
Reply With Quote
  #11  
Old 08-02-2001, 01:56 PM
Guest
Posts: n/a
Quote:
Originally posted by iSplash
it does nothing you know it
it doesnt work for you either?
Reply With Quote
  #12  
Old 08-02-2001, 01:56 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by iSplash
it does nothing you know it
iSplash you are stupid cuz it actually does something.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #13  
Old 08-02-2001, 02:01 PM
iSplash iSplash is offline
Banned
Join Date: Jun 2001
Location: california
Posts: 238
iSplash is on a distinguished road
Send a message via ICQ to iSplash Send a message via AIM to iSplash Send a message via Yahoo to iSplash
LiquidIce you are an idiot because no one cares.
Reply With Quote
  #14  
Old 08-02-2001, 02:02 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #15  
Old 08-02-2001, 02:04 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
it doesn't work ice...this.tilex and tiley need to both be random integers instead of just plain random numbers...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:35 PM.


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