Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Ladder! (https://forums.graalonline.com/forums/showthread.php?t=29227)

aesquivel 05-15-2002 08:19 PM

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;
}
}


Saga2001 05-15-2002 10:38 PM

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...

aesquivel 05-19-2002 06:36 AM

I havent ever used call npc either

nyghtGT 05-19-2002 10:04 AM

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.

aesquivel 05-19-2002 11:51 AM

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...

nyghtGT 05-19-2002 12:55 PM

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...

aesquivel 05-19-2002 01:14 PM

yeah something...

Saga2001 05-20-2002 11:14 PM

Actually its npcscount if my memory serves me correctly...
*crosses fingers*

screen_name 05-21-2002 01:25 AM

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???

Saga2001 05-21-2002 10:56 PM

Ok well exaplin what you really need, and try fixing it on your own...

Projectshifter 05-23-2002 08:20 PM

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


All times are GMT +2. The time now is 01:10 PM.

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