Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Map Converter


Dzastin
 Share

Recommended Posts

Hi, i download alatar Converter to Quest system, but i have problem with Tile.

This:

```
                .Name = Map2.Name
                .Music = Map2.Music
                .Revision = Map2.Revision
                .Moral = Map2.Moral
                .Up = Map2.Up
                .Down = Map2.Down
                .Left = Map2.Left
                .Right = Map2.Right
                .BootMap = Map2.BootMap
                .BootX = Map2.BootX
                .BootY = Map2.BootY
                .MaxX = Map2.MaxX
                .MaxY = Map2.MaxY

            For x = 1 To MAX_MAP_NPCS
                .NPC(x) = Map2.NPC(x)
                Next
            End With
```
And Add to this:

```
For x = 0 To Map(mapNum).MaxX
        For y = 0 To Map(mapNum).MaxY
            For i = 1 To MapLayer.Layer_Count - 1
                Map(mapNum).Tile(x, y).Layer(i).x = Buffer.ReadLong
                Map(mapNum).Tile(x, y).Layer(i).y = Buffer.ReadLong
                Map(mapNum).Tile(x, y).Layer(i).Tileset = Buffer.ReadLong
                Map(mapNum).Tile(x, y).Autotile(i) = Buffer.ReadByte
            Next
            Map(mapNum).Tile(x, y).Type = Buffer.ReadByte
            Map(mapNum).Tile(x, y).Data1 = Buffer.ReadLong
            Map(mapNum).Tile(x, y).Data2 = Buffer.ReadLong
            Map(mapNum).Tile(x, y).Data3 = Buffer.ReadLong
            Map(mapNum).Tile(x, y).DirBlock = Buffer.ReadByte
        Next
    Next
```
Thanks.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...