Introduction #

TekkenScript — Lua 5.2 automation for Tekken 8.

Scripts use SDK2 (require("_SDK.sdk2") + Register:submit()). Each frame you can read frame advantage, attack types, positions, and fire input macros; onMenu builds the in-game settings panel.

What you can build #

  • Automated offense — combos and punishes from frame / distance logic
  • Automated defense — counters when isCounterAttackPossible opens a window
  • Live tuning — sliders and toggles in the script menu

Minimal script (SDK2) #

local sdk2 = require("_SDK.sdk2")
local enums = sdk2.enums

local script = sdk2.Register:New("My Script")

script:onTick(function(self, enemy)
    local fa = getLocalFrameAdvantage()
    if not isCounterAttackPossible(fa) then
        return
    end
    DisableKeyboardInput()
    executeMacro(enums.Input.FORWARD, enums.Input.R_HAND, 3, enums.InputType.KEY_PRESS)
    EnableKeyboardInput()
end)

script:onMenu(function()
    sdk2.Menu.text("My Script — ImGui settings")
end)

script:submit()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Lifecycle callbacks #

Method When
onTick(fn) Every combat frame — main fight logic
onMenu(fn) ImGui settings panel
onDraw(fn) Overlay draw (non-blocking)
onMessage(fn) Background worker thread
submit([out]) Register the script with the engine

Details: SDK2 Register · full copy-paste demo: Quick Start · SDK API.