-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.mlog
24 lines (24 loc) · 956 Bytes
/
message.mlog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
print "[pink]Vela Attack logIc[]\nUnits are "
sensor isEnabled switch1 @enabled
jump 5 notEqual isEnabled 0
print "[green]idle[]"
jump 6 always 0 0
print "[red]attacking[]"
print "\n\nPress the [orange]switch[] to toggle [red]attack[]/[green]idle[]. Units are repaired at repair turrets within 1 minute with power > 0. You can control units via the [orange]arc turret[] and change the bomb type in the [orange]sorter[]\n\n made by [orange]testt[] in "
print "2024-12-23\n\nSource code: [cyan]"
print "github.com/limonovthesecond2/vela-ai"
printflush message1
set i 0
sensor controlled arc1 @controlled
jump 14 notEqual controlled 2
control enabled switch1 1 0 0 0
getlink block i
sensor blockType block @type
jump 18 equal blockType @unloader
jump 20 notEqual blockType @item-source
sensor bombType sorter1 @config
control config block bombType 0 0 0
op add i i 1
jump 11 lessThan i @links
end
print "Compiled by Mindcode - github.com/cardillan/mindcode"