Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   A Weird NPC Bug in Level Editor Mode (https://forums.graalonline.com/forums/showthread.php?t=10865)

BocoC 09-01-2001 12:24 AM

A Weird NPC Bug in Level Editor Mode
 
1 Attachment(s)
There is a bug in the Level Editory Mode. It deals with NPCs. In case Stefan reads this thread, I will explain everthing in detail. I made this level called mines00.graal. I finished it, and started work on mines01.graal. I wanted to use the lights from mines00.graal, so I copied the npc to mines01.graal. Then, I right-clicked the npc and made multiple copies of it and positioned them in different places in the level. I ran the level, and they blinked once and stopped working. Here is the light code:
NPC Code:

// NPC made by Boco
//#CLIENTSIDE
if (playerenters || created) {
dontblock;
drawaslight;
setcoloreffect 1,1,0,0.5;
timeout=0.1;
}
if (timeout) {
if (this.flash) {
unset this.flash;
setzoomeffect 1.25;
} else {
set this.flash;
setzoomeffect 1;
}
timeout=0.1;
}


I was perplexed, because this was an EXACT copy of the light npc's in mines00.graal, which worked perfectly. I went back and forth through the levels through the link I made, and the light npc's in mines00.graal worked, and the ones in mines01.graal didn't. Now for the confusing part. I right-clicked on of the lights in mines01.graal and created another light npc. The lights suddenly worked! Then I deleted the npc. The lights stopped working.:confused:

If anybody wants to try it out, I attached the level. Don't worry about the blank npcs. They are just little rocks that add detail.


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

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