Add decompiled Lua AI scripts + full datasheet findings report

This commit is contained in:
DSR Extractor
2026-09-23 20:57:16 -05:00
parent 587838dfcd
commit 32b8542ac9
290 changed files with 69055 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
REGISTER_GOAL(GOAL_COMMON_If, "If")
REGISTER_GOAL_UPDATE_TIME(GOAL_COMMON_If, 0.5, 1)
REGISTER_DBG_GOAL_PARAM(GOAL_COMMON_If, 1, "ޝ•Ê—pƒR�[ƒhNo", 0)
function If_Activate(ai, goal)
local battleId = goal:GetBattleGoalId()
local codeNo = goal:GetParam(0)
local funcName = "OnIf_"
function _loadstring(str)
local f, err = loadstring("return function (arg) " .. str .. " end", str)
if f then
return f()
else
return f, err
end
end
local f = _loadstring(funcName .. battleId .. "(arg.ai, arg.goal, arg.codeNo)")
local local0 = {}
local0["ai"] = ai
local0["goal"] = goal
local0["codeNo"] = codeNo
class = local0
f(class)
return
end
function If_Update(ai, goal)
if goal:GetSubGoalNum() <= 0 then
return GOAL_RESULT_Success
else
return GOAL_RESULT_Continue
end
end
function If_Terminate(ai, goal)
return
end
REGISTER_GOAL_NO_INTERUPT(GOAL_COMMON_If, true)
function If_Interupt(ai, goal)
return false
end
return