Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   test 4 tiles (https://forums.graalonline.com/forums/showthread.php?t=18810)

nyghtGT 12-13-2001 03:36 AM

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 ...

TDO2000 12-13-2001 04:30 AM

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 ;)

nyghtGT 12-13-2001 05:02 AM

Thanx ...


All times are GMT +2. The time now is 12:51 PM.

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