Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   tiletype(x,y) (https://forums.graalonline.com/forums/showthread.php?t=19475)

Faheria_GP2 12-23-2001 12:31 PM

tiletype(x,y)
 
a good idea would be

tiletype(x,y)

this way, the type of tile the player is on would be returned in a variable, thus making the onwall() and onwater() variables obsolete. the returned variables are as so


0 nonblocking
2 hurting underground
3 chair
4 bed upper side
5 bed lower side
6 swamp
7 lava swamp
8 near water
9 near lava
11 water
12 lava
20 throw-through (fences)
21 jumping stone
22 blocking tile


that way, something could be done like

if (tiletype(playerx+1.5,playery+2)=3) setani new_sit,;

one can see why this would not only replace onwater() and onwall(), but also eliminates the need for new commands like onchair() or onbed(). Anyways, hopefully stefan will see this and include it in the next version.

jeff335 12-23-2001 10:43 PM

makes sense. Hear, hear!

aesquivel 12-24-2001 02:28 AM

Re: tiletype(x,y)
 
Quote:

Originally posted by Faheria_GP2
a good idea would be

tiletype(x,y)

this way, the type of tile the player is on would be returned in a variable, thus making the onwall() and onwater() variables obsolete. the returned variables are as so


0 nonblocking
2 hurting underground
3 chair
4 bed upper side
5 bed lower side
6 swamp
7 lava swamp
8 near water
9 near lava
11 water
12 lava
20 throw-through (fences)
21 jumping stone
22 blocking tile


that way, something could be done like

if (tiletype(playerx+1.5,playery+2)=3) setani new_sit,;

one can see why this would not only replace onwater() and onwall(), but also eliminates the need for new commands like onchair() or onbed(). Anyways, hopefully stefan will see this and include it in the next version.


thats a great idea *CLAPS*:cool:

Faheria_GP2 12-24-2001 06:42 AM

wow, thanks guys! :)

BocoC 12-24-2001 09:19 AM

I got a good idea! Add the DELETE key to the list of keydowns!

Falcor 12-24-2001 06:23 PM

That exact command in implemented in the NewWorld EXE I believe. Would be nice if wee had it =(

jeff335 12-24-2001 10:45 PM

C'mon Stefan...give us tiletype(x,y)!

Admins 12-31-2001 02:35 AM

It is already supported, but only works for
the new tiles layout and newworld tiles layout

Spanko 01-01-2002 12:48 AM

Quote:

Originally posted by Stefan
It is already supported, but only works for
the new tiles layout and newworld tiles layout

Soul Blade-

THE new tiles layout? Meaning now? Present Tense? Already added?

So tell us about it!

When I look at the tile defs, I noticed something strange....

Take a look

mtiles1.png,m_outside_world,0,0,0

3 0's at the end...which means if you play with them it probably does something....


All times are GMT +2. The time now is 07:11 AM.

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