Add an onLoad.init-example file

Closes #1093
develop
lethosor 2017-07-12 16:30:49 -04:00
parent e3cd820fb1
commit 3103d697d9
3 changed files with 10 additions and 1 deletions

@ -268,3 +268,10 @@ view-item-info enable
# a replacement for the "load game" screen
gui/load-screen enable
##############################
# Extra DFHack command files #
##############################
# Run commands in this file when a world loads
sc-script add SC_WORLD_LOADED onLoad.init-example

@ -411,7 +411,7 @@ endif()
install(FILES xml/symbols.xml
DESTINATION ${DFHACK_DATA_DESTINATION}) #linux: share/dfhack
#install the example autoexec file
install(FILES ../dfhack.init-example
install(FILES ../dfhack.init-example ../onLoad.init-example
DESTINATION ${DFHACK_BINARY_DESTINATION})
install(TARGETS dfhack-run dfhack-client binpatch

@ -0,0 +1,2 @@
repeat -name warn-starving -time 10 -timeUnits days -command [ warn-starving ]
repeat -name warn-stuck-trees -time 10 -timeUnits days -command [ warn-stuck-trees ]