![]() |
Tiles...
Ok, I need to know how to find thevalues of tiles on pics1.png:
NPC Code: The part above in bold is what i need to know how to find ... Those are for the two tiles at the top of the castle stairs. I want to know how to find the value like that for any tile on pics1.png ... Please help ... |
The simplest way is just placing it somewhere and then checking in the board array at that tiles position.
Another way is just by checking up on the numbers at the bottom of the tileset screen, one of them is the x,y position of the tile on the tileset, take it's x and y and do the following calculation: x+y*16 and you have the tiles index. It's probably not as efficient as making Graal make use of the tiles hex value, but it does work. |
he probably wants to know hoe to get the hex value of this...
get some prog which is able to make normal values to hex-values ^-^ |
why would u want to use hex??
just use tiles[x,y] to find out the number of the tile?? |
Quote:
So what I do is just add that to the script ? NPC Code: What I dont understand is '0x8A9.' How do I achieve this value ? Cause when I do the 'tiles[x,y]' thing it does not even look remotely like that does... |
Do This on windows:
Start > Run (Type calc) > OK In Calculator, type in the tile number as a decimal, make sure your calculator is in scientific mode, and than press hex, there is your hexidecimal value, however those numbers look octal to me... |
Quote:
Thank you so much. |
put the tile on 0,0 and then do this
if (playerenters) { say2 #v(tiles[0,0]); } :P |
Quote:
|
Quote:
|
Quote:
http://forums.graal2001.com/forums/s...threadid=26384 |
| All times are GMT +2. The time now is 09:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.