🍁
FF12 Lua Loader
  • Home
  • Getting Started
    • Resources
  • General
    • Functions
      • Get Lib Version
      • Check Min Version
  • Events
    • Types
    • Events
      • Exit
      • On Init Done
      • On Flip
      • On Map Jump
      • On Save Load
      • On Open File
    • Functions
      • Sleep
      • Get Clock
      • Execute After Ms
      • Register Event Sync
      • Unregister Event Sync
      • Register Event Async
      • Unregister Event Async
      • Register Save Handler
        • Callback
      • Unregister Save Handler
      • Register Load Handler
        • Callback
      • Unregister Load Handler
      • Create Flag
      • Set Flag
      • Get Flag
      • Delete Flag
      • Delete All Flags
      • Wait Flag
      • Register Flag Callback
      • Unregister Flag Callback
      • Get My Flags
      • Get All Flags
  • Memory / Save
    • Tables
      • Arg
    • Functions
      • Create Trampoline
      • Remove Trampoline
      • Create Hook
      • Remove Hook
      • Alloc Exe
      • Dealloc Exe
      • Alloc
      • Dealloc
      • Load File
      • Parse
      • Assemble
      • Execute
      • Execute A
      • Read S8
      • Read U8
      • Read S16
      • Read U16
      • Read S32
      • Read U32
      • Read S64
      • Read U64
      • Read Float
      • Read Double
      • Read Array
      • Write S8
      • Write U8
      • Write S16
      • Write U16
      • Write S32
      • Write U32
      • Write S64
      • Write U64
      • Write Float
      • Write Double
      • Write Array
      • Get Symbol
      • Register Symbol
      • Register Global Symbol
      • Unregister Symbol
      • Unregister Global Symbol
      • Unregister All Symbols
      • Unregister All Local Symbols
      • Unregister All Global Symbols
  • Message
    • Functions
      • Convert
      • Print
      • Print W
      • Close
  • Config
    • Functions
      • Save Json
      • Load Json
    • Tables
      • Path
  • Input
    • Tables
      • Key
    • Functions
      • Get Key Pressed
Powered by GitBook
On this page
  • Signature
  • Description
  • Arguments
  • Notes
  1. Events
  2. Events

On Map Jump

Signature

u32 onMapJump(u32 locationId, u32 posIndex, u32 flags, u32 unknown)

Description

Is fired once a location is entered.

Arguments

Location Identifier

The identifier of the location.

Position Index

Determines at which position the party will spawn. In some locations, it can also have additional effects such as a foe spawning or not (e.g. trial stage).

If a value of -1 is passed, it will be changed to that of telepoIndex in the location script (ebp section 0).

If a value of -2 is passed, it will be changed to that of saveIndex in the location script (ebp section 0).

If a value of -3 is passed, it will be changed to that of anchorIndex in the location script (ebp section 0).

Flags

Controls fade out and teleport animation.

Bit
Name
Description

0

No Fade Out

Do not use a fade out.

1

Fade Out Color

Use black (0) or white (1) as fade out color.

2

Default Fadeout Time

Use default fade out duration instead of 0,8 seconds.

3

Teleport Animation

Use teleport animation on arrival.

Unknown

The purpose of this argument is unknown.

Notes

Starting a new game or loading a save game does not trigger a map jump, even though the location technically changes.

For a list of location identifiers, you can view the location spreadsheet in Resources.

PreviousOn FlipNextOn Save Load

Last updated 2 months ago