Have a great weekend!
Our community manager Kerrigan has tested a new collection of Behavior scripts and is ready to share the best of them with you! [b]Today we're optimizing the base:[/b]- Setting up a deconstruction bot
- Teaching a bot to deliver resources to two different locations
- Limiting the production of resource-intensive items
[b]Author: StS73[/b]
A multi-destructor script for bots with two deconstructors (Twinbot, Commander). Triggered by [b]red signal[/b] or [b]quick kill slots[/b]. Destroys two entities at once - helpful for destroying larger groups of buildings or robots.
Usage:
- Install two Deconstructors in the bot
- Set up a Behavior Controller
- Load the corresponding script (Multi Deconstructor Duo) into the Behavior Controller
- Link P9 and P10 to the deconstructors ([i]When using this on an early-game, single destructor bot, P9 and P10 can point to the same destructor target[/i])
- Link P1 - P8 to the targets that need to be deconstructed OR
- Set "red" in the "Signal" field of the target that needs to be deconstructed
Behavior Script:
[code] DSC1Hw1WrlV21BtI6f1gIvkS2SNYU33zSZgw2t7RSL48iLiC0sqES52kjGXQ3YlDLd1sGbq20Dt5eQ1aGxuT0KShQU2a6VA82OS4kT2OTNTA0WcYQU49qI594XIGGq2JYUEv2W4tnL19yeDM3wP2Mw44MZSJ0WNDEq4XxIFJ38Jkzy3ye1ux3UFNaz4Q2Zry3KcIoo1w1FXE1iMrXw1jYy5M4XMh1W0BBco11fEsbB0gQWfz39adNT3JZoVy2fE5kl3Sfkee0EeL2c0YZunc4S0IdX22q79U1BAWk93wFJ8s3JQCsa1TOPO32ey34109C2wy2nO2812xECma0yP9Nu0iBnaf00gXI31mvK6o0ccd9V3rZqyV3nCuTM1MspaO2DqUwV07WmDy2e8tkL1vLILq0dJSuf2nF09U0ZFoIy1evIYy3n4wmm1NDhzV2jNpex0M7t3f2uxlzd2EhgxK03s5gp1vkCzh05eJxu0Uwtqt0IYXe40j4vQ944LCeZ3fmgPz0SE8dS2jQVON3eyNsJ2V4O3223fEyz2WiWgI3ZhZ5l4WJoA42u3neA31EUUb3hND8U1NGZou3Maqmx12WlA20y7zta0As1DP4JXnpA0j4bE12on3m63bZ2JG2hD5Lu2lCUO61t5Maf1IdphB0wb9Kx3nJCYy1BHihS1X9I7I31OuIT1hkgJC0EE2qO1d05Dd4gRIB02FBcZn4277583LLutu3Z2Jv90ymSyv4CzRbl4Eh7uZ1jZpKE4WRwfZ4Xhn932k23Ty3pyBs418uqc21TfeB50O2H171ucdIQ2sYr3G4RCJgS2URacT0wjTBs2QzGWT1itGwE1Rit3j1cosPu1YnG7d3BzGeV436kTN1ONmdg3GqTiI2aZOmo3zkPvP1pWlvU3sUqd421eXv63W7NEC4R9fj32sxQnG3bLpGf3PS96L0mTtKG0ypnlH1JfA8K4WdEyP3YIG8R41GT1b0rLXrL2gYZ8X0dQIXe0m3Vh80faLEL3fQc0133pgO74bc1U31qpcCs1Mf6wC1EkDZG4e9B8I2TQRvY0CddwC13gUFz4VStlh3IUETd3K9YsY3R6vb42TGW [/code]
[b]Author: Disastrous Impact[/b]
As the title suggests this produces items only when they are below a limit in your faction inventory.
Ideal for the production of very draining items where having 100 in stock is good enough.
Typically Data Cubes. At early stages also High Density Frames.
Usage:
The behaviour writes to "Visual" register and has 3 Parameter / Variables Expected Total - INPUT - example: 40 Data-Cubes as upper limit Faction Total - OUTPUT - example: Your faction has 42 Data-Cubes Production - OUTPUT - Connect this to your Production Component eg. a Robotics Assembler - Values : "Power off" icon or "Produce 5 of the items as described in Expected Total Visual Register - Displays current state (eg. "5x Data Cubes" or "Power off")
[b]Tuning Potential:[/b]
The program utilizes "Wait Ticks" with the values "30" and "60".
It waits 30 Ticks if no production is needed
It waits 60 Ticks after setting production so that slower components get actually produced before running again.
If there were a "Wait for completing Production of 1 Item of type X" it would be nicer.
Behavior Script:
[code] DSCEw2e1I400te0o10e0D1c2tUtj80XyDM82170oe1zLHjg2Qzy7D4GoU9m48gXSJ06hmCI3YJtdA0DkNX60hMU912327lO4StcTs4Aew844KE7Wb3LKMwH1bwQJv188sg81WugWA2BtDIP1qJUZA2QTeNO2szQxU3u1Hkf15lUEW389dw434c9um0Lzxp64FcL1N35kmdE4J8a0v1yqB4A2UTLCX32J2ui11ZZYt3ebMoE1LU2OP3WvFhe2ZyYX24dAvJL4ecvCk0yqior0LKH5U1D9ZXR3P3oDM0MDTPz35fxmg0UoJMQ3Q1sk63PkfJT0a8Vf21DTA543fsQez0nxzYW0G93hw2eNC6B1RY2Bs0Z3TOI3Ne1Dz16c6vL3qp27H0npJNK2lUuGj2WnCaD4SfDtW03D5pR2gfWD53Ag4Vo1yXinR1qOHYH4bDlNS3RYiSj1RpAJC2yV4un388B8J0Sf [/code]
[b]Author: PitchBlack[/b]
This script lets you Pick up from one location (bot or storrage) waiting until bot is full, then checking 2 other Storrages or bots and fills them up. Expandable for as many parameters as you can add. or by using signal logic.
[b]Video Tutorial (English and German):[/b]
[previewyoutube=qtWVmk909j4;full][/previewyoutube]
