Stage & Position #

Stage ID and fighter X/Y positions on the current stage.

getStageId #

getStageId()

Returns the current stage ID.

Demo:

local stage = getStageId()
print("Stage ID:", stage)
1
2

getLocalPosX #

getLocalPosX()

Returns local player world X/Y.

Demo:

local x = getLocalPosX()
local y = getLocalPosY()
print(string.format("Local pos: %.1f, %.1f", x, y))
1
2
3

getLocalPosY #

getLocalPosY()

Returns local player world Y coordinate (pair with getLocalPosX()).

Demo:

print("Y:", getLocalPosY())
1

getOpponentPosX #

getOpponentPosX()

Returns opponent world X/Y.

Demo:

local x = getOpponentPosX()
local y = getOpponentPosY()
print(string.format("Opponent pos: %.1f, %.1f", x, y))
1
2
3

getOpponentPosY #

getOpponentPosY()

Returns opponent world Y coordinate.

Demo:

print("Opp Y:", getOpponentPosY())
1