Manuals/LuaScripting.pdf
Posted: Thu Apr 08, 2021 4:47 pm
This document is out of date (e.g. nothing about the Hero type or the campaign variable's properties).
Is there anywhere that has more up-to-date information on the current API/object model?
In particular, the PC2 Lua API functions used in the DLC scripts:
Also, the details of how the data in a .pz2scn file can be accessed from a .lua script.
Is there anywhere that has more up-to-date information on the current API/object model?
In particular, the PC2 Lua API functions used in the DLC scripts:
Code: Select all
world:Exec(action)
world:MakeNewHeroAction(player, hero)
world:MakeAssignHeroAction(unit, hero.id)
world:MakePurchaseAction(owner, u[1], u[2], u[3])
world:MakeDeployAction(unit, zone[cur_hex])
world:MakeRevealAction( player )
world:MakeDeathAction( unit )
world:MakeChooseAction(0, message, title)