Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2002, 04:23 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Tiles...

Ok, I need to know how to find thevalues of tiles on pics1.png:
NPC Code:

NPC Code:

function laydetail() {
brick={0x8A9, 0x8AA};
tiles[px,py] = brick[0];
tiles[px2,py2] = brick[1];
updateboard px-1,py-1,3,3;
updateboard px2-1,py2-1,3,3;
}




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 ...
Reply With Quote
  #2  
Old 03-26-2002, 08:07 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
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.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #3  
Old 03-26-2002, 08:58 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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 ^-^
__________________
No Webhost at the moment
Reply With Quote
  #4  
Old 03-26-2002, 09:15 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
why would u want to use hex??

just use tiles[x,y] to find out the number of the tile??
__________________
[signature]insert here[/signature]
Reply With Quote
  #5  
Old 03-27-2002, 04:12 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by screen_name
why would u want to use hex??

just use tiles[x,y] to find out the number of the tile??
I did that ...

So what I do is just add that to the script ?
NPC Code:

NPC Code:

function laydetail() {
brick=0x8A9;
tiles[px,py] = brick[0];
updateboard px-1,py-1,3,3;
}




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...
Reply With Quote
  #6  
Old 03-27-2002, 05:51 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #7  
Old 03-27-2002, 08:24 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Saga2001
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...
OMFG!

Thank you so much.
Reply With Quote
  #8  
Old 03-27-2002, 09:57 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
put the tile on 0,0 and then do this


if (playerenters) {
say2 #v(tiles[0,0]);
}

:P
__________________
[signature]insert here[/signature]
Reply With Quote
  #9  
Old 03-27-2002, 10:12 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by screen_name
put the tile on 0,0 and then do this


if (playerenters) {
say2 #v(tiles[0,0]);
}

:P
yea i'd get the decimal value then change it to Hex and now it works ...
Reply With Quote
  #10  
Old 03-27-2002, 10:21 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by nyghtGT

yea i'd get the decimal value then change it to Hex and now it works ...
well, thats good, hope u get what u want
__________________
[signature]insert here[/signature]
Reply With Quote
  #11  
Old 03-27-2002, 11:01 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by screen_name


well, thats good, hope u get what u want
Oh, I did ...

http://forums.graal2001.com/forums/s...threadid=26384
Reply With Quote
Reply


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 07:00 AM.


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