Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I love my baby back ribs (https://forums.graalonline.com/forums/showthread.php?t=8800)

Brady2 08-03-2001 02:39 PM

I love my baby back ribs
 
Jadis:

Well LiquidIce just posted some script for a random
nonblocking tile level which reminded me of a script I
made to "get familiar" with the board[] command and
all the other good stuff. Enjoy.

NPC Code:

//NPC made by Jadis
if (playerenters) {
init();
for (this.x=0;this.x<64;this.x+=1) {
for (this.y=0;this.y<64;this.y+=1) {
this.1 = int(random(0,17));
if (this.1==0||this.1==8) {this.bx=0;this.by=0;}
if (this.1==1||this.1==9) {this.bx=1;this.by=0;}
if (this.1==2) {this.bx=0;this.by=1;}
if (this.1==3||this.1==11) {this.bx=7;this.by=42;}
if (this.1==4||this.1==12) {this.bx=7;this.by=43;}
if (this.1==5||this.1==13||this.1==10) {this.bx=8;this.by=42;}
if (this.1==6||this.1==14) {this.bx=8;this.by=43;}
if (this.1==7||this.1==15||this.1==16) {this.bx=15;this.by=31;}
board[this.x+64*this.y]=this.bx+16*this.by;
updateboard this.x,this.y,1,1;
}
sleep .05;
}
}
function init() {
this.1 = 0;
this.x = 0;
this.y = 0;
this.bx = 0;
this.by = 0;
}


LiquidIce00 08-03-2001 03:03 PM

hi guy
i might actually get serious and do like random rocking and bushing and stuff and grass and all that junk. that would be cool to see.
i liek ur script tho it looks alot better then mine but mine is l33ter cuz i use all diff. tiles but Its ugly =)

and gimme some of ur baby back ribs cuz im hungry =(


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

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