Jump to content



Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  Oblivion Knight : (26 February 2024 - 11:30 AM) Whoa I can edit a typo. The technology.
@  Oblivion Knight : (26 February 2024 - 11:29 AM) Obligatory message.
@  Elwood : (02 January 2024 - 04:19 AM) Happy New Year!!!
@  Aaron : (13 February 2023 - 09:19 PM) I'm still out here alive. If you remember me, I hope you're doing well!
@  Aaron : (13 February 2023 - 09:09 PM) 2023 and this place is still up huhh
@  Elwood : (05 January 2023 - 07:58 AM) Ah a Christmas greeting from Wolfie! Even if I saw it way late Merry Christmas and Happy New Year to everybody!
@  Cero : (31 December 2022 - 09:27 PM) Man that bot went crazy
@  Whitewolf8 : (24 December 2022 - 10:02 AM) I return once more on the eve of Christmas to haunt you all again!... Mainly Elwood. Hello!
@  Elwood : (25 November 2022 - 04:58 AM) A bot! Ah the nostalgia!
@  Elwood : (02 November 2022 - 02:30 PM) Yo ho ho ho! Thar be the white wolf!
@  Whitewolf8 : (24 October 2022 - 12:29 AM) Well, blimey it's been a while. Hoy there! If anyone's still alive here anyway.
@  Valke : (21 April 2022 - 12:12 PM) im taking the 2nd shout of 2022 😂
@  Elwood : (03 March 2022 - 10:12 PM) Mwuhahaha! The first shout of 2022 is mine!
@  Fire Blazer : (12 November 2021 - 05:22 PM) *also stretches arms a little*
@  xcrash1998 : (07 November 2021 - 08:42 PM) "streches arms"
@  Ezra : (07 May 2021 - 05:20 AM) Maybe I'll pop on the discord soon
@  Fire Blazer : (01 April 2021 - 08:08 PM) Aaaaaaand done~ :P
@  xcrash1998 : (29 March 2021 - 08:52 AM) I guess we are one more post away from counting to 2500
@  Fire Blazer : (10 March 2021 - 11:39 PM) but I have bad memory and can't remember ;(
@  Elwood : (15 February 2021 - 10:23 AM) I'd like to but I've told you about my issues with discord before.

Photo

Map TileChanges with EA


  • Please log in to reply
No replies to this topic

#1 Fire Blazer

Fire Blazer

    You ready?

  • Creator
  • 12,103 posts
  • Gender:Male
  • Location:U.S.A.
  • Interests:Too many to list. =P

Posted 10 June 2010 - 10:39 AM

FE7

org 0xC9C9C8+(4*0x59)

POIN TileChanges

org 0xCB1F00

TileChanges:
TileMap(0x0,0x03,0x02,0x01,0x01,VillageGate)
TileMap(0x01,0x03,0x08,0x01,0x01,VillageGate)
TileMap(0x02,0x02,0x0B,0x01,0x01,VillageGate)
TileMap(0x03,0x01,0x0E,0x01,0x01,VillageGate)
TileMap(0x04,0x09,0x0E,0x02,0x01,TownGate)
CODE $FF
CODE $00
CODE $00

VillageGate:
CODE 0x80 0x00 0x00 0x00

TownGate:
CODE 0x24 0x08 0x28 0x08

CODE
[u]Format[/u]

org 0xC9C9C8+(4*0x59) // - Pointer to tile map changes (change the 0x59)

POIN TileChanges // - puts a pointer to "event" TileChanges

org 0xCB1F00 // - where to place the data for tile changes

TileChanges: // - name of event
Tilemap(Sequential #, Top Left X, Top Left Y, Length (# of tiles to right), Height (# of tiles down), TilePointer)
// - (Insert as many as you need)
CODE $FF // - Needed to end a list of tile changes, do not remove these 3 CODE things
CODE $00
CODE $00

MapTiles: // - name of list of tiles to replace old tiles
CODE 0x80 0x00 0x00 0x00 // - tiles to use (use the CODE to just insert hex, get the tile #s from reference tilesets or some other method)


Tested and working, it makes it so that you can do tile changes with EA so you don't have to do them separately in a hex editor. It's not all that easier than doing it in hex but it can be faster, less of a hassle, and save you some brain power if you're not so good with repointing or editing things in hex. Then again, all of the input values have to be in hex for the code to properly work (so you're forced to convert co-ordinates to hex--yeah, sucks, too bad huh).

BUT WAIT! You need this macro for it to work--you can add it to EAstdlib if you are lazy (just use a text editor to edit it and paste it there) or you can make your own macro file (which is better, because you'll have to re-add the macro to EAstdlib everytime NL makes an update to the program).

CODE
//TileMapChangeMacro
#ifdef _FE7_
#define TileMap(TCN,X1,X2,L1,L2,TilePointer) "CODE TCN X1 X2 L1; CODE L2 0x00 0x00 0x00; POIN TilePointer"
#endif


Once you have that everything should work. Enjoy!

----------------

If there are any questions, go ahead and ask.

Bblazer2.png

Signature thanks to Shu.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users