Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Removing Addtiledef2 (https://forums.graalonline.com/forums/showthread.php?t=21293)

Ultima_P2P 01-16-2002 09:54 PM

Removing Addtiledef2
 
How do i remove addtiledef2?

this is what i tried :(

if (playerenters) {
addtiledef2 pics1.png,levelname.graal,0,0;
}

but that dont work
i also tried

if (playerenters) {
removetiledefs;
}

thats didnt do anything either

grim_squeaker_x 01-16-2002 10:56 PM

removetiledefs levelstart;
You forgot the levelstart part.
In this example it'd be removetiledefs levelname.graal;

Ultima_P2P 01-17-2002 06:13 PM

Thanks Grim. :)

Ultima_P2P 01-17-2002 06:24 PM

Hmm i just tried it and it dont seem to work
heres what i have...

the outside level.
NPC Code:

// NPC made by ¤ U£†îmå ¤
if (playerenters) {
removetiledefs levelnameoutisde.nw;
removetiledefs levelnameinside.nw;
}



The inside level.
NPC Code:

// NPC made by ¤ U£†îmå ¤
if (playerenters) {
addtiledef2 tiles.gif,levelnameinside.nw,928,256;
}



it no work =\

konidias 01-17-2002 07:47 PM

Umm.. you need to change the inside and outside level names.. have inside level name be like "inside-levelname.nw" and the outside be named "levelname.nw" or something.. then have the tiledef set to only "inside-levelname" not the entire thing including .nw

Then you won't have to remove it from the outside when the player leaves, because it will only be changed on that inside level..

The tiledef is going to keep adding itself back when you enter the inside.. since it is adding when the player enters the room ;)

Ultima_P2P 01-17-2002 09:33 PM

Maybe a little example will help because im still braindea on what to do....

Maybe its the new editor thats not working..... :(


All times are GMT +2. The time now is 02:18 PM.

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