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 12-08-2001, 10:24 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
walking

how do u make an npc that is like over water be walk able?
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #2  
Old 12-08-2001, 10:28 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to ShockwaveISTHEBEST
Im not sure but I think
{setani walk;}
__________________
[img]http://rick.*******ers.net/ss/users/jerrytyrrell64/Shockwave%20Sig%2003.jpg[/img]
Reply With Quote
  #3  
Old 12-08-2001, 10:36 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
i dont think it is that
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #4  
Old 12-08-2001, 10:42 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
im trying 2 make it like the dustari one
i got everything exepct the walking on thing
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #5  
Old 12-08-2001, 10:52 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to ShockwaveISTHEBEST
Im sorry im not exactly a great scripter so Im not sure.
Reply With Quote
  #6  
Old 12-08-2001, 11:16 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
ok i think i know how but i dont know how to do the setshape2
where it says {tiletypes....}
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #7  
Old 12-08-2001, 02:25 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
for players to walk on water it would be:
NPC Code:

NPC Code:

if (playerenters) {
replaceani walk,swim;
}



Reply With Quote
  #8  
Old 12-09-2001, 02:19 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
but how do u make it walk over deep water?
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #9  
Old 12-09-2001, 02:51 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
you'd probably use tile[] crap to check for the deep water tiles, then allow them to walk over it.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #10  
Old 12-09-2001, 03:18 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
Unhappy

this is what i got


if (created) { setshape2 14,18,{
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20}; dontblock; drawoverplayer; timeout=0.1; } if (playertouchsme&&!playerattached) { if (playerx<=x||playerx>=x+width) attachplayertoobj 0,id; } if (timeout) { if (playerx<x||playerx>x+width) detachplayer; timeout=0.1; }
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #11  
Old 12-09-2001, 03:34 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
im not sure if everything is right with it
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #12  
Old 12-09-2001, 03:51 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
if (created) { setshape2 14,18,{
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20,
20,20,0,0,0,0,0,0,0,0,0,0,20,20}; dontblock; drawoverplayer; timeout=0.1; } if (playertouchsme&&!playerattached) { if (playerx<=x||playerx>=x+width) attachplayertoobj 0,id; } if (timeout) { if (playerx<x||playerx>x+width) detachplayer; timeout=0.1; }
That's insane! It's like 20,20,0,0,0,0,0,0,0,0,20 repeated a kagillion times! I'm not saying it won't work, it's just too many numbers make my head spin...
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #13  
Old 12-09-2001, 03:51 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
actually there is 252 numbers there
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #14  
Old 12-09-2001, 04:00 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
wouldn't it be better to use a second npc u can walk on using

if(created){
setshape 1,10*16,18*16;
}
if(playertouchsme &&!playerattached){
...
}

so u wouldn't need all the numbers for every tile of the bridge...
__________________
No Webhost at the moment
Reply With Quote
  #15  
Old 12-09-2001, 04:02 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
hmm... interesting. That'd be a lot shorter for a script, easier to find any bugs/glitches etc without having to change 252 numbers... Or at least use tile[] or board[]
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #16  
Old 12-09-2001, 04:07 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
so it would be like

if(created){
setshape 1,14*16,18*16;
timeout=0.1}
if (playertouchsme&&!playerattached) {
if (playerx<=x||playerx>=x+width){ attachplayertoobj 1,id; }}
if (timeout) { if (playerx<x||playerx>x+width) {detachplayer; timeout=0.1; }}
__________________
Everyone is human.
Nobodys perfect
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 01:21 AM.


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