Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tile Question (https://forums.graalonline.com/forums/showthread.php?t=13592)

SSRobgeta 10-02-2001 07:42 AM

Tile Question
 
How do you script a thing that can only be used on Snow or water or something?

Shard_IceFire 10-02-2001 08:15 AM

I believe that is board[].
commands.rtf if you have questions.

entravial 10-02-2001 08:38 AM

~AlphaFlame~

Use this to check for tiles:

board[the-x+the-y*64]=tile-x+tile-y*16;

Replace the colored parts with the correct value.

[edit]Almost forgot - to check for water, use onwater(x,y)[/edit]

KJS 10-02-2001 08:59 AM

in the graal test versions there is a new command

tiles[x,y]

and if you go like

tiles[-23,72]

it will go to the next level (its really neat i think how it goes inbetween levels and all)

entravial 10-02-2001 09:01 AM

~AlphaFlame~

Oh great, KJL, look what you've started. Now he's gonna ask where the test version is, then some other people will see this and they'll ask, and then more people will see and ask, and so on and so on until all you see is "were iz test gral?!" all over the place.

It's a sad days for monkeys everywhere. ... ESPECIALLY SINCE THERES NO CRYING EMOTICION ON HERE!! *throws fit*

entravial 10-02-2001 09:04 AM

~AlphaFlame~

Alright alright! Let them WAIT for the new version! Sheesh... :p

Now they'll all be trying that and not having it work and be like "why r not this wrk!?"

btedji 10-02-2001 07:21 PM

if you want the address to the new version ill pm it to you, just ask

PresShinP2P 10-02-2001 10:29 PM

is the new version free of bugs.
i know where to get it i just want to be sure its not going to be *** and mess stuff up

JeffTL 10-03-2001 12:04 AM

I have a quick question...would anyone mind to clarify the way to check a tile with a sample script? I'm not asking anything complicated...just a quick script to check a tile and, if it's the right tile, (setplayerprop #c,yep;).

btedji 10-03-2001 12:48 AM

if(tile[x,y]=#){whatever}

btedji 10-03-2001 12:49 AM

Quote:

Originally posted by PresShinP2P
is the new version free of bugs.
i know where to get it i just want to be sure its not going to be *** and mess stuff up

i have not encountered any bugs

AlexH 10-03-2001 01:29 AM

i didnt encounter any bugs in any of the test versions

entravial 10-03-2001 04:01 AM

~AlphaFlame~

Quote:

You're not a monkey.
Never said I was, Kaimetsu. I said that it was a sad day for monkies everywhere, but I did not specifically refer to myself. Tada.

Besides, I'm a Snow Leopard. *uses Delteria as a scratching post*

btedji 10-03-2001 04:06 AM

if(board[tilex+64*tiley]=cetaintile#){do this}

entravial 10-03-2001 04:32 AM

~AlphaFlame~

Oh yes, I should probably add that the tilex and tiley must not have a decimal... it messes it up a bit.

SSRobgeta 10-07-2001 07:19 AM

Quote:

Originally posted by btedji
if(board[tilex+64*tiley]=cetaintile#){do this}
Whats the new version of graal and should this work?


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

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