scripting:samples:basicbuilding
Differences
This shows you the differences between two versions of the page.
scripting:samples:basicbuilding [2020/01/28 17:50] – external edit 127.0.0.1 | scripting:samples:basicbuilding [2020/02/01 19:44] (current) – mit | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Simple ' | ===== Simple ' | ||
- | Here is a simple script for a ' | + | Here is a simple script for a ' |
- | To use it on your own world, set a building in the Buildings Editor to be a ' | + | To use it on your own world, set a building in the Buildings Editor to be a ' |
< | < | ||
$kMaxAmountOfItemToGather = 3 | $kMaxAmountOfItemToGather = 3 | ||
+ | $kGatherBuildingNum = 5 | ||
+ | $kGatherItem = " | ||
// | // | ||
- | //------ Access script | + | //------ Access |
// | // | ||
- | Event( " | + | Event( " |
{ | { | ||
- | $ret = StandardGatherDisplay( | + | $ret = StandardGatherDisplay( |
} | } | ||
scripting/samples/basicbuilding.1580255416.txt.gz · Last modified: 2020/01/28 17:50 by 127.0.0.1