Author Topic: Shootval?  (Read 3525 times)

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Shootval?
« on: March 27, 2005, 10:07:13 PM »
Is there a command that would allow the bot to read any incomming shot's value? I was thinking that an identifier could be attached to a shot (-1,-6) in shootval, to identify the species a shot is comming from. I don't normally mess with this area too much so not really sure on the ref's we have here.

Endy B)
« Last Edit: March 27, 2005, 10:07:44 PM by Endy »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Shootval?
« Reply #1 on: March 27, 2005, 10:10:32 PM »
I'm not sure.  This would be tricky.  You could use a shot to write to a variable in the target bot's memory that would tell it who you are.

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Shootval?
« Reply #2 on: March 27, 2005, 10:41:52 PM »
I was thinking that shflav could tell the place to check and then a sort of readback for a readback function would tell the shootval. Not sure of actual difficulty involved... :unsure:

Endy B)

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Shootval?
« Reply #3 on: March 28, 2005, 09:31:52 AM »
*.shup, *.shdn, *.shdx and *.shsx already return the flavor of a shot.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Shootval?
« Reply #4 on: March 28, 2005, 09:33:37 AM »
Reading the species that fired the shot would be easy to program but I'm not sure how much good it would do.

After a few mutations, the species division becomes somewhat blurred but the name remains the same.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D