Graal Forums

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

Spyder13 06-12-2002 02:36 PM

editNPC
 
Can someone please explain to me how the editNPC reads the tilesets. I want to understand how it gets teh location of teh tiles. Please email me or post it here.
Email:[email protected]

-SLaG- 06-12-2002 08:30 PM

Re: editNPC
 
Quote:

Originally posted by Spyder13
Can someone please explain to me how the editNPC reads the tilesets. I want to understand how it gets teh location of teh tiles. Please email me or post it here.
Email:[email protected]

WTF IS TEH?! ITS THE, god damn now no i wont help.

VampiricTutorNewHD 06-12-2002 08:42 PM

This is better suited for the NPC forum.

zallus-k 06-16-2002 05:00 AM

Here
 
Well, here goes:
The hex number is derived from three seperate hex numbers, giving it the variable representation of 0xABC.
Now, the A is derived by splitting the pics1.png file into 16 sections, like so:

http://img.z0.ca/pub/pics1a.png

Then, we divide each section into 256 peices, by tile, like so:

http://img.z0.ca/pub/pics1b.png

The tiles of each plane start at zero. The B variable is defined as the Y plane, and the C variable being the X plane. So, 0x001 would give you the second side of the first row, the right blade of grass. Right? Wrong! You also delete beginning zeros, to give you 0x1 as the answer.

Here's another one:

0x1FF. What is this? Well, it would be the #1 section of Chart A, and the last tile in the last row in Chart B, giving you empty grass.


Did you understand all that, or is there a point I need to clarify?

Xbob42 06-16-2002 05:56 AM

wtf. I was trying for a couple hours the other day to figure it out and I was nowhere near being close. I wish they could have made it simpler. :(


All times are GMT +2. The time now is 05:11 PM.

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