Author Topic: Snake [F1][Spike43884]2-12-2015  (Read 3371 times)

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Snake [F1][Spike43884]2-12-2015
« on: February 15, 2015, 10:49:36 AM »
Its a nice little one to observe mainly, though i've only tested it against animal minimalis and alga minimalis it works as it should roughly. It utilises venom to hopefully disable enemy retaliation. Then it also has a bit of fun with the rarely used now-a-days .dn command, where-as if your able to see it, then it'll reverse away from you, stopping you getting to close. Soon to make a double range version to attack from 25
Code: [Select]
'Snake
'By Spike
'It will hunt till its seen, then will run...Also,
'if anyone got the MGS reference then kudos. Brilliant
'Games they were.
'Key Functions used: Memloc | Memval


def visible 51
def venomcounter 52
def virusping 53


'Gene 1 Food Finder
cond
*.eye5 0 >
*.refeye *.myeye !=
*.visible 0 =
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop


'Gene 2 Eat Food
cond
*.eye5 50 >
*.refeye *.myeye !=
*.visible 0 =
start
4 .shootval store
-1 .shoot store
-6 .shoot store
.venomcounter inc
*.refvelup .up store
stop


'Gene 3 Venom shooting
cond
*.eye5 51 >
*.refeye *.myeye !=
*.visible 0 =
*.venocounter 19 >
start
50 .shootval store
-3 .shoot store
0 .venomcounter store
stop


'Gene 4 Avoiding Family
cond
*.eye5 0 =
*.refeye *.myeye = or
*.visible 0 =
start
314 rnd .aimdx store
stop


'Gene 5 Reproduce
cond
*.nrg 5000 >
start
10 .repro store
10 .repro store
stop


'Gene 6 Venom Creation
cond
 *.venom 500 <
start
 50 .strvenom store
stop


'Gene 7 Check-Set for visual
cond
*.eye5 0 !=
*.refeye *.myeye !=
start
504 .memloc
*.memval .visible store
stop


'Gene 8 Singulise + Venomset
cond
*.robage 0 =
start
1 .tie store
.backshot .vloc store
1 .venval store
stop


'Gene 9 Singulise part 2
cond
*.robage 1 =
start
1 .deltie store
stop


'Final Gene Run-away
cond
*.visible 1 =
start
15 .dn store
stop


end
« Last Edit: June 08, 2015, 04:18:40 PM by Botsareus »
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.