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
+42
View File
@@ -0,0 +1,42 @@
REGISTER_GOAL(GOAL_COMMON_TopGoal, "TopGoal")
REGISTER_GOAL_NO_UPDATE(GOAL_COMMON_TopGoal, 1)
function TopGoal_Activate(ai, goal)
return
end
function TopGoal_Update(ai, goal)
return GOAL_RESULT_Continue
end
function TopGoal_Terminate(ai, goal)
return
end
function TopGoal_Interupt(ai, goal)
if ai:IsInterupt(INTERUPT_CANNOT_MOVE) then
local idAction = ai:GetExcelParam(AI_EXCEL_THINK_PARAM_TYPE__CannotMoveAction)
if ai:IsTouchBreakableObject() and 0 <= idAction and ai:IsLookToTarget(POINT_CurrRequestPosition, 90) then
goal:ClearSubGoal()
goal:AddSubGoal(GOAL_COMMON_NonspinningAttack, -1, idAction, TARGET_NONE, DIST_None)
return true
end
end
if ai:IsInterupt(INTERUPT_CANNOT_MOVE_DisableInterupt) then
local idAction = ai:GetExcelParam(AI_EXCEL_THINK_PARAM_TYPE__CannotMoveAction)
if ai:IsTouchBreakableObject() and 0 <= idAction and ai:IsLookToTarget(POINT_CurrRequestPosition, 90) then
goal:AddSubGoal_Front(GOAL_COMMON_NonspinningAttack, -1, idAction, TARGET_NONE, DIST_None)
return true
end
end
if ai:IsInterupt(INTERUPT_HitEnemyWall) then
local backhome_life = ai:GetExcelParam(AI_EXCEL_THINK_PARAM_TYPE__BackHomeLife_OnHitEnemyWall)
if 0 < backhome_life then
goal:ClearSubGoal()
goal:AddSubGoal(GOAL_COMMON_BackToHome, backhome_life, 0)
return true
end
end
return false
end
return