Author Topic: Knotbot v2 (MB)(Interesting)(F2) (MysticalDumpling) 2.6.14  (Read 1028 times)

Offline MysticalDumpling

  • Bot Destroyer
  • ***
  • Posts: 205
  • Kurwa chuj!
    • View Profile
Knotbot v2 (MB)(Interesting)(F2) (MysticalDumpling) 2.6.14
« on: June 02, 2014, 04:01:18 PM »
Code: [Select]
'Revamped Knotbot w/ processing

def havnrg 21
def stillneednrg 22
def seenothing 23

'tout1, tout2 conspec
'tout3- ask for nrg
'tout4- X-cord of target
'tout5- Y-cord of target

cond
*.robage 0 =
start
123 .tout1 store
-32000 32000 rnd .tout2 store
stop

start
.tie inc
stop

cond
*.body 200 >
*.nrg 9100 > or
start
50 .repro store
stop

cond
*.tin1 *.tout1 !=
*.tin2 *.tout2 = or
*.numties 0 >
start
*.eyef 50 <
0 .seenothing store
*.trefxpos *.trefypos angle .setaim store
*.refvelup 30 add .up store
*.refveldx .dx store
0 .fixpos store
clearbool
*.eyef 50 >
-6 .shoot store
.fixpos inc
stop

cond
*.myup *.refup =
*.eye5 0 = or
start
0 .fixpos store
.seenothing inc
stop

'Get rid of waste
cond
*.waste 100 >
start
*.waste .shootval store
-4 .shoot store
stop

'=====================================
'Social Aspects
'=====================================
'Can I give nrg?
cond
*.nrg 7500 >
start
.havnrg inc
stop

'Do I need nrg?
cond
*.nrg 500 <
*.multi 1 =
start
.tout3 inc
.stillneednrg inc
stop

'Do I still need nrg
cond
*.nrg 2000 >
*.stillneednrg 0 >
start
0 .stillneednrg store
stop

cond
*.stillneednrg 0 =
start
0 .tout3 store
stop

'Donate nrg
cond
*.tout3 0 >
*.havnrg 0 >
start
-2 .sharenrg store
stop

'Do I see something interesting?
cond
*.eyef 0 >
*.myup *.refup !=
start
*.refxpos .tout4 store
*.refypos .tout5 store
stop

'If I see nothing interesting, head towards the target
cond
*.seenothing 0 >
*.tin4 *.tin5 mult 0 !=
start
*.tin4 *.tin5 angle .setaim store
20 .up store
*.tin4 .tout4 store
*.tin5 .tout5 store
stop

« Last Edit: August 01, 2014, 10:51:46 AM by Botsareus »
To być albo nie być, oto jest ze pytanie

Offline spork22

  • Bot Destroyer
  • ***
  • Posts: 328
    • View Profile
Re: Knotbot v2 (MB)(Interesting)(f3) (MysticalDumpling) 2.6.14
« Reply #1 on: June 02, 2014, 05:14:52 PM »
What's it supposed to do?
Hubba Jubba Lollywash!

Offline MysticalDumpling

  • Bot Destroyer
  • ***
  • Posts: 205
  • Kurwa chuj!
    • View Profile
Re: Knotbot v2 (MB)(Interesting)(f3) (MysticalDumpling) 2.6.14
« Reply #2 on: June 02, 2014, 07:01:32 PM »
To put it simply, it forms a blob. The blob then flies around, entangling veggies, growing, and sometimes splitting
To być albo nie być, oto jest ze pytanie

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Re: Knotbot v2 (MB)(Interesting)(f3) (MysticalDumpling) 2.6.14
« Reply #3 on: June 03, 2014, 02:32:34 PM »
It misses any check for hardened ties before doing anything, so does it work according to the Numsgil description for a multibot?  :P (check if *.multi is 1 in conditions is a MB-league requirement, or used to be anyway) ...I don't know how many currently named multibots's" actually use it. Wouldn't be surprised if most don't have it.

Also not a F3 bot, F3 league doesn't allow ties.
Oh my god, who the hell cares.

Offline MysticalDumpling

  • Bot Destroyer
  • ***
  • Posts: 205
  • Kurwa chuj!
    • View Profile
Re: Knotbot v2 (MB)(Interesting)(f3) (MysticalDumpling) 2.6.14
« Reply #4 on: June 30, 2014, 12:18:48 PM »
I meant f2... but it is not really a league bot.
To być albo nie być, oto jest ze pytanie