WARNING: There's a special random algorithm inside the engine. It is impossible to use lua or any other random inside the script without breaking a game while running your script.
IMPORTANT - set of mandatory player buffs changed. Check updated example scripts and update your scripts correspondingly
transformTarget now properly changes card face on the board
nuUndoEffect renamed to noUndoEffect
createNoStunSlot added
createNoDamageSlot added
onZeroHealthTrigger added
onLeavePlay trigger added
drawToLocation can now directly accept integer
createLayout(t) is now only way to create layouts for all types of items - cards, abilities, choices
deck management fixed and should be more flexible now. you may easily clear hero deck on start now. See example_script_vs_ai_advanced_deck_management.lua for reference
more frames. Frames with faction icon on another side added
storytelling effects section added
coop scenarios development support(see coop_pirates_example.lua)
new card formatting option in“xmltext” field. See examples below. You may still use“text” for simple things, but for complex formatting - only xmltext
new arts available
Requirements
Minimal requirements:
Steam - no other platform supports development mode
basic knowledge of script programming
any text editor(notepad works just fine)
Optimal requirements:
Steam - no other platform supports development mode
LUA scripting language experience
text editor with syntax highlight support(notepad++, sublime)
How to start
Development
Have a text editor installed. Any editor works for this, but better grab one with LUA syntax highlight support.
Set up a folder for your scripts on hard drive. For best results, try not to include any special symbols in either directory name/path and file name. Do not rename or move the folder after creation, as path to the script on your hard drive is used for versioning. If your script changes path of file name, it will be recognised as a new script.
Put a sample script into that folder
in the app, open settings and navigate to game tab. There - set development mode to ON. NOTE: it’s visible only on desktop.
Changes in 1.4
Changes in 1.3
Changes in 1.2
Changes in 1.1
Requirements
How to start
Development