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-28-2004, 09:04 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Tiles[x,y] On Pics1?

Ok question i've reached a brain cramp.
If you need to say, showimg a part of the tileset that replicates a current section of the tiles on ground how would i find the changepart 1,x,y,16,16;
for each tile?
the x and y that is how would i use tiles[playerx,playery] that variable and turn it into an x and y for the pics1?
Or is that possible? I was thinking something on the lines of

y=int(tiles[playerx,playery]/64);
x=tiles[playerx,playery]-y;

But thats not working my god my heads hurting O_O
*Edit*
My wording is probably confusing sorry
How would I turn a tiles[x,y] into a position x,y for the tileset ?
BTW im using new order format which has not much to do with it other than it seems to work different from regular tiles. Pulling up variables and what not O_O
__________________

To the sun of your age, I arise
Reply With Quote
  #2  
Old 03-28-2004, 09:21 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Oh YAY NEVERMIND I FOUND OUT HOW AND OMG NEW ORDER TILESET CHANGES EVERYTHING ABOUT HOW TILES ARE HANDLED BEWARE!!!
*edit*
I have created a layering system its quite simple , anyone ever see the Newworld backtile system? well I have scripted something similar it was realy realy easy
I will post a version of it l8r tonight after work
However it only does transparencies for foreground objects however I will add more to it tonight
__________________

To the sun of your age, I arise
Reply With Quote
  #3  
Old 03-28-2004, 10:21 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
new order and original seem to be the same, all except for the first five lines in the first segment (15 width block) those numbers are all crazy

but yeah, tile numbers go from left to right then down, in increments of fifteen across (goes to fifteen, then jumps down to next line) even though you already seem to have figured it out...
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #4  
Old 03-28-2004, 10:25 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Look at my script in the NPC Showoff Thread.
__________________
-Kjetil Valen
Reply With Quote
  #5  
Old 03-30-2004, 09:08 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Finished what I was working on its here
http://forums.graal2001.com/forums/s...threadid=52019
__________________

To the sun of your age, I arise
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 08:17 PM.


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