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-03-2001, 02:39 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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;
}

Reply With Quote
  #2  
Old 08-03-2001, 03:03 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
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 =(
__________________
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
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 03:27 AM.


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