Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Throwing npcs and playerenters... (https://forums.graalonline.com/forums/showthread.php?t=38397)

Dach 09-23-2002 02:01 AM

Throwing npcs and playerenters...
 
Put an npc like this in a level and see what happens:
NPC Code:

if (playerenters) {
canbecarried;
message Hello!;
sleep 1;
message ;
}


You should notice that when it is thrown the playerenters event is called again. This is bad.

AlexH 09-23-2002 02:14 AM

You don't turn the message off so it would display it all the time.
You would need to put

message;

After your sleep.

Graal2001_NAT 09-23-2002 03:17 AM

Quote:

Originally posted by AlexH
You don't turn the message off so it would display it all the time.
You would need to put

message;

After your sleep.

its still doing that bug even when you hide the message
and as it would be nice to fix the bug, noone really uses canbecarried anymore, its all about the ganis

Dach 09-23-2002 03:23 AM

Doesn't matter how often canbecarried is used, we don't need npcs that reinitialise after being thrown. Even worse, I don't want my hockey puck to return to the center of the rink when I throw it.

Besides it didn't do this the last time I checked (don't remember when exactly) so something is buggy and needs to be fixed.

Tyhm 09-23-2002 07:52 AM

Quick story, once upon a time there was a flag called wasthrown

if(playerenters&&!wasthrown) might be just what you need, assuming they trigger simultaneously.

Oh, and in your animated sig, the rupees keep going up and down. It's weird.

Dach 09-23-2002 09:56 AM

Heh, that was too long ago Tyhm, I forgot. I dunno about the rupees, I found the img in my temporary internet files. Thanks though, now I don't have to worry about my hockey arena that I'll be sending your way soon along with my baseball field and whatelse.


All times are GMT +2. The time now is 12:18 AM.

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