Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-17-2006, 11:22 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
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
Reply With Quote
  #2  
Old 04-18-2006, 12:17 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #3  
Old 04-18-2006, 12:19 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
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.
Reply With Quote
  #4  
Old 04-18-2006, 08:43 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #5  
Old 04-19-2006, 04:06 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
I already have made such a function!
http://graal.net/snippet/detail.php?type=snippet&id=88
Reply With Quote
  #6  
Old 04-19-2006, 04:48 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Woah, nice.
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 06:49 PM.


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