Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   onwall options (https://forums.graalonline.com/forums/showthread.php?t=65468)

Yen 04-17-2006 11:22 PM

onwall options
 
Just a reminder..
Could the next Graal version implement 'options' for the onwall command, like the showstats and enablefeatures commands?
We really, really, REALLY need it for Aetherforge.

For example:
enableonwall(allonwall-1-2-4-8);
allonwall = sum of all options
1 = takes players out of onwall check
2 = takes npcs out of onwall check
4 = takes tiles out of onwall check
8 = takes throw-through tiles out of onwall check

Tyhm 04-18-2006 12:17 AM

Or onwall2(x,y,bitflag), or integer onwall2(x,y)=bitflag for on wall, on land, on throwthrough, on water, on shallow water, on chair, on bed, on lava, on shallow lava, +8=on player, +16=on NPC...

The "simple" solution in the meantime is to make a string for all the onwall tiles (It's easy!...if you make an NPC do it for you...), then check if the tile at that location is in that list...but yeah, Stefan coding something is always more efficient than my workarounds. :-P

Yen 04-18-2006 12:19 AM

onwall2 already exists. :O
onwall2(x,y,width,height);

Checking tiles isn't viable, because I'm moving the player as little as 1/16th of a tile. :(

Tyhm 04-18-2006 08:43 AM

onwall3 then.

I meant checking tiles for discerning which Onwall's are on account of Onwall tiles...and if you're using an Era-format tileset it's not TOO hard to figure out which ones are throw-through off their Tile Index...then if it's Onwall and not Onwall on a Tile, it's Onwall on an NPC. Unfortunately, that doesn't tell you much if it IS Onwall on a Tile, if it is or isn't also Onwall on an NPC...

jake13jake 04-19-2006 04:06 AM

I already have made such a function!
http://graal.net/snippet/detail.php?type=snippet&id=88

KuJi 04-19-2006 04:48 AM

Woah, nice.


All times are GMT +2. The time now is 08:14 AM.

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