Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-01-2001, 09: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
Board Local?

I am using board[] but the only problem is that it only happens to the player who is using it. how do I make it so it shows the changed tile to everyone?
i just do

board[x+(64*y)]=2358;
updateboard x,y,1,1;

The hammer shows to everyone. and it has basically the same thing:
board[putx+64*puty] = 10+112*16;
board[putx+1+64*puty] = 11+112*16;
board[putx+64*(puty+1)] = 10+113*16;
board[putx+1+64*(puty+1)] = 11+113*16;
updateboard putx,puty,2,2;
__________________
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-01-2001, 10:08 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Board editing isnt servedr-side yet. Although were urging him to support that .and also server-side putobject.

There are a few tiels taht will show up server-side since they are supported by Gserver. Such as the Hole and the Cut Bush and the Sign hole
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 08-01-2001, 10:11 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 Falcor
Board editing isnt servedr-side yet. Although were urging him to support that .and also server-side putobject.

There are a few tiels taht will show up server-side since they are supported by Gserver. Such as the Hole and the Cut Bush and the Sign hole
okay thanx.
then i must do some ghetto level npc with timereverywhere to make it server sided =)
__________________
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-01-2001, 10:16 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
heh
__________________

subliminal message: 1+1=3
Reply With Quote
  #5  
Old 08-01-2001, 10:17 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
u know what would be a cool idea (mabie for npc servers only)...
is to allow the level to be changed (and it changes the accuall level on the screen and stays like that when you say update level)...

so it would save it to the file its self...

(it would be good for lats they can work on the spot then lol, just have to make a weapon to support the tiles and objects lol)
__________________
Thanks,
-KJL
Reply With Quote
  #6  
Old 08-01-2001, 10:38 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 KJS
u know what would be a cool idea (mabie for npc servers only)...
is to allow the level to be changed (and it changes the accuall level on the screen and stays like that when you say update level)...

so it would save it to the file its self...

(it would be good for lats they can work on the spot then lol, just have to make a weapon to support the tiles and objects lol)
well on UN im making this thing so you can choose whatever tile (from id . id is tilex+(64*tiley) ) and then the user can select whatever and can build it .. thats why i wanted to make it non-local
i did this . a npc in the level keeps checking server strings for server.clevelx , server.clevely , and server.cleveltile . and then it gets the x,y and tile id and puts it there . so every1 can see it . but there is a problem . if there is lag and such . it does get messed up . so i might just make it local .
__________________
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-01-2001, 05:25 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 KJS
u know what would be a cool idea (mabie for npc servers only)...
is to allow the level to be changed (and it changes the accuall level on the screen and stays like that when you say update level)...

so it would save it to the file its self...

(it would be good for lats they can work on the spot then lol, just have to make a weapon to support the tiles and objects lol)
Well yes indeed it would be useful, however the only problem is is that it will probably be abused...
__________________

Reply With Quote
  #8  
Old 08-02-2001, 12:53 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
Well yes indeed it would be useful, however the only problem is is that it will probably be abused...
our construction thing cant be abused cuz it only works on the level.constructable=1 levels and those levels have nothing in them (you need to say leave, to leave) =)
__________________
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:21 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
Hi liquid
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #10  
Old 08-02-2001, 01:36 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 Knightoffrost
Hi liquid
that was worthless (keep posting so i can keep replying and we keep getting more posts)
HI!
__________________
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
  #11  
Old 08-02-2001, 01:39 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
here is a script i made . .im using it on unholy nation . it lets u browse thru blocks id
I altered it a bit here so it doesnt use the blocking blocks
ill also post a image of where its used

NPC Code:

// NPC made by LiquidIce - Flooded
if (playerenters) {dontblock;}
timereverywhere;

if (playertouchsme&&this.enabled=0) {
this.tile=strtofloat(#s(constructiontile));
disabledefmovement;
showblock();
setani idle,;
this.enabled=1;
timeout=.05;
}

if (timeout) {

if (keydown(1)) {
this.tile--;
this.tile=abs(this.tile);
}

if (keydown(3)) {
this.tile=this.tile+1%4095;
}

if (keydown(5)) {
this.enabled=0;
}

if (keydown(6)) {
set();
}

show();

if (this.enabled=1) { timeout=.1; }
else { hideblock(); enabledefmovement;}

}

function show() {
board[x+(64*(y-1))]=this.tile;
updateboard x,y-1,1,1;

showimg 100,@#v(this.tile),x-(strlen(#v(this.tile))/4),y-2.5;
}

if (playerchats&&this.enabled=1) {
tokenize #c;
if (tokenscount=1) {
this.check=strtofloat(#t(0));
if (this.check=<4095&&this.check>0) { this.tile=this.check; }
}
}

function set() {
setstring constructiontile,#v(this.tile);
setplayerprop #c,Tile Set to #v(this.tile);
this.enabled=0;
}

function showblock() {
}

function hideblock() {
board[x+(64*(y-1))]=2358;
updateboard x,y-1,1,1;
hideimg 100;
}



on the image. the 'orange' old looking pins is the npc.
Attached Thumbnails
Click image for larger version

Name:	graal.png
Views:	137
Size:	21.6 KB
ID:	2917  
__________________
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:30 PM.


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