Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-13-2001, 03:36 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
test 4 tiles

Mr. Chik asked me to see if anyone knows how to make an NPC only show on certain tiles and make it work on only certain tiles ...
He is studying and cant post so he asked me too ...
Reply With Quote
  #2  
Old 12-13-2001, 04:30 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
something like this

NPC Code:

if(created){
showcharcter;
}

if(playerenters){
this.tilelist={*tilenumbers you got with tile[] or board};
timeout=.1;
}

if(timeout){
if(tiles[x+1.5,y+2] in this.tilelist){show;}
else {hide;}

//something like movement here
timeout=.1;
}



U don't need showcharacter it's just an example
__________________
No Webhost at the moment

Last edited by TDO2000; 12-13-2001 at 05:12 AM..
Reply With Quote
  #3  
Old 12-13-2001, 05:02 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Thanx ...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:15 PM.


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