Getting Started

Some useful tips when you start modding

Debug Mode

Adding the line

DEBUGMODE 1

to the USER.TXT file in My Documents/My Games/BBCBA will turn on debug mode, which adds additional tooltips, logging, and other useful info.

Script Tools

Editing scripts is much easier if you grab the recommended tools. You get syntax highlighting, bracket checking, and it's all free! http://www.slitherinebravo.net/GameWiki/doku.php?id=stub_engine#tools

Script Logging

You can get your scripts to output information to a debug text pane. You do this by using the Log function in the script.

Log("Checking", GetUnitX(id), GetUnitY(id), GetUnitActive(id), GetTileLOS(GetUnitX(id), GetUnitY(id), 1)) ;

Note that a logging call can have between 0 and 4 numeric values after the description string, which will be output to the debug pane. To toggle the debug pane, hit F6 when in battle.

modding_tips.txt · Last modified: 2020/11/01 00:59 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki