etioplmld Advanced Cheater
Reputation: 0
Joined: 09 Feb 2021 Posts: 77
|
Posted: Sun Oct 19, 2025 10:50 pm Post subject: Concerning the Lua script modification issue in Hades2 |
|
|
The main program of Hades2 seems to be made in lua, and the game can be modified by modifying lua files.
In file TraitData_Keepsake.lua, the values of Keepsake can be modified, and most of them are valid.But Only in SkipEncounterKeepsake , it made the value of the souvenir cabinet change in reality, but it remained the same during the battle.
cfemen has created a script that enables the game to execute the user's lua file in real time.
The format is as follows
| Code: |
{$STRICT}
{$lua}
if syntaxcheck then return end
[ENABLE]
local s = [[
AddTraitToHero( { TraitName= "skipEncounterTrait", Rarity="Epic"} )
]]
Exec(init_script)
Exec(s)
[DISABLE]
|
All functions that appear in the lua script of the game can be used.It can call a bunch of graphic functions and execute them in real time, which is very beneficial for learning lua.
A lua code that allows for incorrect results
| Code: |
{$STRICT}
{$lua}
if syntaxcheck then return end
[ENABLE]
local s = [[
local objId = CreateScreenObstacle({ Name = "rectangle01", X = 1400, Y = 500})
SetColor({ Id = objId, Color = {0, 0, 0, 0.5} })
SetScaleX({ Id = objId, Fraction = 300 / 480 })
SetScaleY({ Id = objId, Fraction = 800 / 267 })
for k, traitData in ipairs( CurrentRun.Hero.Traits ) do
CreateTextBox({Id = objId,Text = traitData.Name,FontSize = 20,Color = {1,1,1,1},OffsetY = -380 + k * 25})
end
]]
Exec(init_script)
Exec(s)
[DISABLE]
|
Can the number of the souvenir FIG leaf be modified through ce or other methods?
| Description: |
|
| Filesize: |
152.66 KB |
| Viewed: |
285 Time(s) |

|
|
|