Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   x=+.5 (https://forums.graalonline.com/forums/showthread.php?t=19991)

DarkPyro_2001 12-31-2001 12:26 AM

x+=0.5
 
I heard Stefan was working on it, but has anyone noticed how NPCs with x=+.5 in the script move .5 to the right every time someone interacts with them? Just curious.

konidias 12-31-2001 01:10 AM

Re: x=+.5
 
Quote:

Originally posted by DarkPyro_2001
I heard Stefan was working on it, but has anyone noticed how NPCs with x=+.5 in the script move .5 to the right every time someone interacts with them? Just curious.
x+=0.5;
not
x=+.5;

DarkPyro_2001 12-31-2001 01:25 AM

Re: Re: x=+.5
 
Quote:

Originally posted by konidias


x+=0.5;
not
x=+.5;

Argh, I always get it wrong. I could have sworn I did it the first one, rather than the latter. >_<

You know, you should be able to change the subject of the thread when you edit it so it shows on other pages like it does when you change it on the thread's pages.

kyle0654 12-31-2001 01:33 AM

It's not Stefan's problem. The scripts are the problem. If you have something like this:
NPC Code:

x+=.5;
if (playertouchsme) {
message hi;
}



Then every action that triggers that npc (playertouchsme, washit, playerenters, etc.) will move it, since it will run past the x+=.5 part every time, which has no conditions for running.

Falcor 12-31-2001 04:29 AM

888 POSTS!! OMG LIKE KYLE IS A LUCKY PERSON! GO VEGAS NOW!

Tyhm 12-31-2001 07:23 AM

Kyle: We're talking about if(created) x+=0.5;

For the last two versions, if(created) runs the first time any given player enters the level, or whenever a person logs on in that level, or something. Since I, for one, do not particularly like the idea of going through all 5000 levels on Classic and changing x+=0.5 to x=30.5, I'd much rather Stefan fix if(created)

LiquidIce00 01-01-2002 01:48 PM

Quote:

Originally posted by Tyhm
Kyle: We're talking about if(created) x+=0.5;

For the last two versions, if(created) runs the first time any given player enters the level, or whenever a person logs on in that level, or something. Since I, for one, do not particularly like the idea of going through all 5000 levels on Classic and changing x+=0.5 to x=30.5, I'd much rather Stefan fix if(created)

maybe since the npc is moved it logs the position of the npc and when a player comes back it loads that then moves it ??
or something?
well just do
if (playerenters) { x=30.5; }
or something

btedji 01-03-2002 12:32 AM

Quote:

Originally posted by Falcor
888 POSTS!! OMG LIKE KYLE IS A LUCKY PERSON! GO VEGAS NOW!
I think 777 is more lucky

IceFire_TK 01-03-2002 05:42 AM

Re: x+=0.5
 
Quote:

Originally posted by DarkPyro_2001
I heard Stefan was working on it, but has anyone noticed how NPCs with x=+.5 in the script move .5 to the right every time someone interacts with them? Just curious.
LOL!

it's x+=0.5;
not x=+0.5;
jessh!

IceFire_TK 01-03-2002 05:44 AM

Quote:

Originally posted by Tyhm
Kyle: We're talking about if(created) x+=0.5;

For the last two versions, if(created) runs the first time any given player enters the level, or whenever a person logs on in that level, or something. Since I, for one, do not particularly like the idea of going through all 5000 levels on Classic and changing x+=0.5 to x=30.5, I'd much rather Stefan fix if(created)

WHAT?!?! NOOO! I have to fix that on ALL my NPC characters on my playerworld! NOOO.. please fix this stefan!

IceFire_TK 01-03-2002 05:45 AM

Quote:

Originally posted by btedji


I think 777 is more lucky

or 666...

Bhala 01-05-2002 11:13 AM

I like 666 the best

BlKnight 01-05-2002 11:35 AM

Quote:

Originally posted by Bhala
I like 666 the best
*sprays with holyness spray can*

Slaktmaster 01-06-2002 06:23 AM

Quote:

Originally posted by LiquidIce00


maybe since the npc is moved it logs the position of the npc and when a player comes back it loads that then moves it ??
or something?
well just do
if (playerenters) { x=30.5; }
or something

Hello, thanks for repeating what Tyhm said. Try reading the posts you reply to before answering.

mikepg 01-06-2002 06:28 AM

hmm
 
that does suck. if created should be for the whole server, not just a single account. thats what if playerenters is for :(


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

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