Mindustry

Mindustry

Not enough ratings
T3 AUTO
   
Award
Favorite
Favorited
Unfavorite
Tags: schematic
File Size
Posted
687.000 B
25 May, 2023 @ 2:32pm
1 Change Note ( view )

Subscribe to download
T3 AUTO

Description
Binds a poly and tags it with a number .The number gets saved in the memory cell.

In order to reset it just delete and place another memory cell beside the processor.

If you want to change the type of unit that the processor controls , open the code ,search both " unit bind " commands and change them to whatever you want and then delete and place another memory cell beside the processor.

If you want to reset all flags and items from a certain type of unit , use this https://steamproxy-script.pipiskins.com/sharedfiles/filedetails/?id=2980604381
If you want to change the type of unit that the processor controls , use the step mentioned above.

Inspired by https://steamproxy-script.pipiskins.com/profiles/76561198051765838

Code down here

read flag cell1 0
read cell cell1 1
jump 11 equal cell 1
ubind @poly
op rand flag 100 b
op floor flag flag b
ucontrol flag flag 0 0 0 0
write flag cell1 0
write 1 cell1 1
ucontrol unbind flag 0 0 0 0
end
read flag flag 0
ubind @poly
sensor flagunit @unit @flag
jump 17 equal flagunit flag
ucontrol unbind 0 0 0 0 0
end
ulocate building core false @copper corex corey 0 core
ucontrol approach corex corey 3 0 0
sensor metaglass reconstructor1 @metaglass
jump 18 greaterThan metaglass 40
ucontrol within corex corey 3 donde 0
jump 18 equal donde 0
ucontrol itemDrop core 999 0 0 0
wait 0.5
sensor cap @unit @itemCapacity
sensor silicon reconstructor1 @silicon
sensor titanium reconstructor1 @titanium
sensor metaglass reconstructor1 @metaglass
jump 31 greaterThan silicon 130
ucontrol itemTake core @silicon cap 0 0
jump 33 greaterThan titanium 80
ucontrol itemTake core @titanium cap 0 0
jump 35 greaterThan metaglass 40
ucontrol itemTake core @metaglass cap 0 0
sensor facx reconstructor1 @x
sensor facy reconstructor1 @y
ucontrol approach facx facy 4 0 0
ucontrol within facx facy 4 donde1 0
jump 37 equal donde1 0
wait 0.5
ucontrol itemDrop reconstructor1 999 0 0 0
jump 17 always x false