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 05-15-2002, 08:19 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Ladder!

okay im have some problems with my ladder script i jus wanna know what im doing wrong with it heres the script

NPC Code:

if (playertouchsme) {
if (keydown(0)&&!(keydown(2)) {
playery+=1;
}
if (keydown(2)&&!(keydown(0)) {
playery-=1;
}
}

__________________
Reply With Quote
  #2  
Old 05-15-2002, 10:38 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Timeouts should be used...
playertouchsme is triggered once, when the player touchs the npc the FIRST time, you could just callnpc i, playertouchsme,; should work...in every timeout... I think I haven't ever used call npc...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #3  
Old 05-19-2002, 06:36 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
I havent ever used call npc either
__________________
Reply With Quote
  #4  
Old 05-19-2002, 10:04 AM
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
Quote:
Originally posted by aesquivel
I havent ever used call npc either
NPC Code:

for (i=0;i<npcscount;i++) {
callnpc i,blah;
}


I'm not sure if it's npcscount or npccount.
Reply With Quote
  #5  
Old 05-19-2002, 11:51 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Quote:
Originally posted by nyghtGT

NPC Code:

for (i=0;i<npcscount;i++) {
callnpc i,blah;
}


I'm not sure if it's npcscount or npccount.

its npccount you dont ever use the "s" for some reason which is beyond meh sence its on the commands.rtf with an s so...
__________________
Reply With Quote
  #6  
Old 05-19-2002, 12:55 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
Quote:
Originally posted by aesquivel



its npccount you dont ever use the "s" for some reason which is beyond meh sence its on the commands.rtf with an s so...
probably from an older version of commands.rtf never updated...
Reply With Quote
  #7  
Old 05-19-2002, 01:14 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
yeah something...
__________________
Reply With Quote
  #8  
Old 05-20-2002, 11:14 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Actually its npcscount if my memory serves me correctly...
*crosses fingers*
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 05-21-2002, 01:25 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Re: Ladder!

Quote:
Originally posted by aesquivel
NPC Code:

if (playertouchsme) {
if (keydown(0)&&!(keydown(2)) {
playery+=1;
}
if (keydown(2)&&!(keydown(0)) {
playery-=1;
}
}

why the opening brackets???
__________________
[signature]insert here[/signature]
Reply With Quote
  #10  
Old 05-21-2002, 10:56 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Ok well exaplin what you really need, and try fixing it on your own...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 05-23-2002, 08:20 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
LOL, you could be simple about it, and if (playertouchsme) setgani ladderup.gani; timeout=0.5;
if (timeout)playery+=0.5;
and set the gani to walking UP the ladder.
---Shifter
__________________
Who has time for life these days?
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 06:44 PM.


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