Author Topic: Negative Protection?  (Read 902 times)

Offline kage

  • Bot Neophyte
  • *
  • Posts: 49
    • View Profile
    • http://www.strikeforceclan.com
Negative Protection?
« on: November 28, 2006, 05:41:49 PM »
If a virus were to set the value of for example slime in an enemy bot to a value under 0, would that make a bot more vulnerable than usual to viruses and ties because the slime would have an opposite effect?

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Negative Protection?
« Reply #1 on: November 28, 2006, 07:21:08 PM »
The code doesn't allow bots to make negative slime, be it on their own initiative or forced upon them.  For substances, it's pretty much the rule that they can't go negative.
Many beers....

Online Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7714
    • View Profile
Negative Protection?
« Reply #2 on: November 28, 2006, 10:55:33 PM »
But a virus could cause a bot to not be able to make more slime, or maybe even destroy the slime it has (I don't remember if the code allows bots to unmake slime or not).

Offline Henk

  • Bot Destroyer
  • ***
  • Posts: 110
    • View Profile
    • http://www.henkx.net
Negative Protection?
« Reply #3 on: November 29, 2006, 03:46:14 AM »
Quote from: Numsgil
But a virus could cause a bot to not be able to make more slime, or maybe even destroy the slime it has (I don't remember if the code allows bots to unmake slime or not).

It is if I remember correctly. It's a weapon of one of PY's earlier F1 bots.
cond
*.DBbugs 0 =
start
.rejoice inc
stop

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Negative Protection?
« Reply #4 on: November 29, 2006, 11:32:38 AM »
Quote from: Numsgil
But a virus could cause a bot to not be able to make more slime, or maybe even destroy the slime it has (I don't remember if the code allows bots to unmake slime or not).
A bot's total slime is not allowed to go negative, but bots can unmake slime they have (or be forced to do so) by storing a neagitive number in mem 820.  You don't get any nrg back, but you aren't charged for unmakign slime either.
Many beers....