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
  #16  
Old 08-02-2001, 02:08 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 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.
Attached Files
File Type: zip randomlevel.zip (448 Bytes, 170 views)
__________________
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
  #17  
Old 08-02-2001, 02:12 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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?
Reply With Quote
  #18  
Old 08-02-2001, 02:12 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 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~!
__________________
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
  #19  
Old 08-02-2001, 02:36 PM
Guest
Posts: n/a
hmm that zip works for me but thats some crapy as level ;/
Reply With Quote
  #20  
Old 08-02-2001, 02:39 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
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...
Attached Thumbnails
Click image for larger version

Name:	sarcasm.png
Views:	208
Size:	3.9 KB
ID:	2929  
__________________
the sky is falling
Reply With Quote
  #21  
Old 08-02-2001, 02:43 PM
Guest
Posts: n/a
Quote:
Originally posted by SkooL
Uhh...it's not meant to make quality levels...
Oh i didnt know that
Reply With Quote
  #22  
Old 08-02-2001, 03:33 PM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
There is no point in that script it woul dbe good if it looked right
__________________
Reply With Quote
  #23  
Old 08-02-2001, 05:36 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
works for me
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #24  
Old 08-02-2001, 06:46 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
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.
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #25  
Old 08-02-2001, 10:57 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 Knightoffrost


Some crapy level seems to be the story of your life.
Yes it makes better levels then IcePick.
__________________
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
  #26  
Old 08-03-2001, 04:17 AM
RICEJERRRY4 RICEJERRRY4 is offline
Registered User
Join Date: Jul 2001
Location: VA
Posts: 133
RICEJERRRY4 is on a distinguished road
Send a message via AIM to RICEJERRRY4
Cool hey nice

Hey Liquid Ice nice code
__________________
Graal Nick Name:Rice
E-Mail:Forgot
Aim:Nothing5001

Reply With Quote
  #27  
Old 08-03-2001, 04:45 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
hai everyone
Reply With Quote
  #28  
Old 08-03-2001, 05:54 AM
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
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 ..
__________________
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
  #29  
Old 08-03-2001, 06:58 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
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....
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #30  
Old 08-03-2001, 07:20 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
replace timereverywhere with //#CLIENTSIDE for online use
Reply With Quote
  #31  
Old 08-03-2001, 08:51 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
IcePiick is not the level stealer you ***got! Its Jedi!
Reply With Quote
  #32  
Old 08-03-2001, 10:26 AM
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 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 ?
__________________
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
  #33  
Old 08-03-2001, 10:27 AM
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 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.
__________________
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
  #34  
Old 08-03-2001, 05:17 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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;
__________________

Reply With Quote
  #35  
Old 08-04-2001, 12:31 AM
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 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
__________________
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
  #36  
Old 08-04-2001, 02:52 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Stop flaming eachother! Ice was just doing a joke by posting this thread....RIGHT!!!
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #37  
Old 08-04-2001, 02:57 AM
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 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
__________________
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
  #38  
Old 08-04-2001, 03:07 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
SEE!!!!! You people dont know how to tell if someone is jokeing!
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #39  
Old 08-07-2001, 01:18 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Exclamation SHUT UP ICE PICK !!!

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
Attached Images
 
Reply With Quote
  #40  
Old 08-07-2001, 01:19 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Scratch that .gif

That was a mistake but i think it looks kool .
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 06:54 PM.


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