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 07-17-2001, 05:13 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Board Scripting?

I was wondering if anyone here with AIM or ICQ would teach me how to use the 'board' command in GScript. I have no clue how to use it. My email is [email protected] if anyone will help, or just post on here.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #2  
Old 07-18-2001, 12:25 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Here is a script that will dig a hole in grass (like shovel)
This uses board scripting... under the if (empty==1) part of the script, there are 4 lines for board.. each is one tile on the board.
The putx puty part of the line is where the tile will be placed, and the equation at the end is which tile should be used.. changing the equation will change the tile.. so experiment =)



NPC Code:

if (weaponfired) {
putx = playerx + 1.5;
puty = playery + 2;
if (playerdir==0) puty -= 1;
if (playerdir==1) putx -= 1;
if (playerdir==2) puty += 1;
if (playerdir==3) putx += 1;
putx = int(putx/2)*2;
puty = int(puty/2)*2;
emtpy = 1;
for (i=0; i<2; i++) for (j=0; j<2; j++) {
b = board[putx+i+64*(puty+j)];
bx = b % 16;
by = int(b / 16);
if (!(bx==15 && (by==31 || by==63 || by==127)))
emtpy = 0;
}
if (emtpy==1) {
board[putx+64*puty] = 10+114*16;
board[putx+1+64*puty] = 11+114*16;
board[putx+64*(puty+1)] = 10+115*16;
board[putx+1+64*(puty+1)] = 11+115*16;
updateboard putx,puty,2,2;
if (i == 0) {
destroy;
}
}
}

__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #3  
Old 07-19-2001, 03:49 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
lol that script when you hold down D makes it look like you have dirty feet!
Reply With Quote
  #4  
Old 07-19-2001, 04:09 AM
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 Poogle
lol that script when you hold down D makes it look like you have dirty feet!
???
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #5  
Old 07-19-2001, 11:26 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
LOL, what is the board command or whatever used for? I read a post that said its useless so i never bothered to learn
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
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 11:13 PM.


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