Author Topic: Teriyaki(F1)(Spike43884Shadowgod2)11-02-2014  (Read 2489 times)

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Teriyaki(F1)(Spike43884Shadowgod2)11-02-2014
« on: November 02, 2014, 04:56:48 AM »
Ok, heres my second bot being entered, some credit to shadowgod2 for fixing the deadly bug where it only fired backwards (I think he also re-orded a small bit of the poison code...Not sure what difference it did to the poison though)
Its, VERY Aggressive and I struggle to run sims with it for very long, but yeah...its a nasty bug.
Code: [Select]
'Teriyaki
'By: Spike43884
'Taste like chicken - Both .sexrepro and
'.repro in nessisary circumstances for
'amazing survival, will poop on enemies.
'Really aggressive, and quite energy efficient in current sims, though personally
'I cant run the sims for to long w/ this in as it starts to lag the sims a bit!
'Firing backwards bug fixed by SHADOWGOD2

' Gene 1 Some stuff to do with poison

cond
 *.robage 0 =
start
 2 rnd 498 mult 491 sub 1 floor .ploc store
 0 *.ploc .eye5 sub sgn 1 add mult
 -50 *.ploc .up sub sgn -1 mult 1 add mult add
 -2 *.ploc .shoot sub sgn abs -1 mult 1 add mult add
 .pval store
stop

' Gene 2 Food Finder
cond
 *.eye5 0 >
 *.eye4 0 > or
 *.eye6 0 > or
 *.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 40 add .up store
stop

' Gene 3 Mate Finder
cond
 *.eye5 0 >
 *.refeye *.myeye =
 *.nrg 15000 >
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop

' Gene 4 Eat Food
cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
 0 .aimshoot store
 0 .backshot store
1 rnd 5 mult 6 sub .shoot store
 -6 .shootval store
 *.refvelup .up store
stop

' Gene 5 Avoiding Family
cond
 *.eye5 0 =
 *.refeye *.myeye = or
 *.refnrg 15000 <
start
 314 rnd .aimdx store
stop

' Gene 6 DONT EAT ME. I DONT TASTE GOOD!
cond
 *.poison 500 <
start
 50 .strpoison store
stop


' Gene 8 Shoot Sperm
cond
 *.eye5 50 >
 *.refeye *.myeye =
 *.refnrg 15000 >
start
-8 .shoot store
 *.refvelup .up store
stop

' Gene 9 Reproduce
cond
 *.nrg 15000 >
 *.fertilized 0 >
start
 10 .sexrepro store
stop

' Gene 10 Reproduce 2
cond
 *.nrg 30000 >
start
 10 .repro store
stop

' Gene 11 Poop on others Waste
cond
 *.eye5 0 >
 *.eye4 0 > or
 *.eye3 0 > or
 *.refeye *.myeye !=
 *.waste 20 > and
start
 *.refveldx .dx store
 *.refvelup 40 add .up store
stop

' Gene 12 Poop on others Continuted
cond
 *.waste 50 >
 *.eye5 50 >
 *.refeye *.myeye !=
start
 -4 .shoot store
 *.waste .shootval store
stop

' Gene 13 Nobody to poop on CONSTIPATION Waste
cond
 *.waste 100 >
start
 .backshot inc
 -4 .shoot store
 *.waste .shootval store
stop

' Gene 14 OUCH! Nobody likes a bully.
cond
 *.shflav 0 !=
 *.shflav -2 !=
 *.shflav -8!=
start
 *.shang .setaim store
stop

end

Those mults though seriously, couldn't you bother with a more understandable name?
« Last Edit: November 18, 2015, 10:45:16 AM 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.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Teriyaki(F1)(Spike43884)(Assisted by Shadowgod2)(Tastes Like Chicken)
« Reply #1 on: November 02, 2014, 11:50:19 AM »
Ok, heres my second bot being entered, some credit to shadowgod2 for fixing the deadly bug where it only fired backwards (I think he also re-orded a small bit of the poison code...Not sure what difference it did to the poison though)
Its, VERY Aggressive and I struggle to run sims with it for very long, but yeah...its a nasty bug.

Those mults though seriously, couldn't you bother with a more understandable name?

mult is multiply which can be used as part of a condition-less code at which i have used it for to shorten the code a bit

i modified the poison because it wouldn't work otherwise the way you had it.