Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-16-2002, 09:54 PM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
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
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
  #2  
Old 01-16-2002, 10:56 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
removetiledefs levelstart;
You forgot the levelstart part.
In this example it'd be removetiledefs levelname.graal;
__________________

Reply With Quote
  #3  
Old 01-17-2002, 06:13 PM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
Thanks Grim.
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
  #4  
Old 01-17-2002, 06:24 PM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
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 =\
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
  #5  
Old 01-17-2002, 07:47 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
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
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #6  
Old 01-17-2002, 09:33 PM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
Maybe a little example will help because im still braindea on what to do....

Maybe its the new editor thats not working.....
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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