Difference between revisions of ".shootval"
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{v221}} 8 [[.shootval]] increases the range or power of a [[.shoot]] or sets the variable that gets stored in a positive memory .shoot. | |
− | + | ==[[Sysvar]]s:== | |
+ | {{Shooting}} | ||
+ | |||
+ | ==Memory shots:== | ||
+ | |||
+ | If the .shoot is positive, by storing positive numbers in .shoot another bot's memory can be overwritten by what's stored in .shootval. This can be used to either mess up another bot or to exchange information. | ||
Here's how you'd make another bot turn. Light's Icarus used this to dominate F2 league for a while. | Here's how you'd make another bot turn. Light's Icarus used this to dominate F2 league for a while. | ||
− | |||
cond | cond | ||
Line 17: | Line 21: | ||
This will make any bot that you hit turn 90 degrees to the right. | This will make any bot that you hit turn 90 degrees to the right. | ||
− | == | + | ==A shot's strength and range:== |
As of 2.36, you may 'power up' a shot's strength and range. | As of 2.36, you may 'power up' a shot's strength and range. | ||
− | + | By storing negative numbers in .shootval "-6" body shots and "-1" energy shots have a longer range. | |
− | + | By storing positive numbers in .shootval "-6" body shots and "-1" energy shots become more powerful. | |
The multiplier is roughly log2(.shootval). That's log base 2. So spend 4 energy in .shootval and you'll double your shot strength or range, but spend 8 energy and you only triple shot strength or range. | The multiplier is roughly log2(.shootval). That's log base 2. So spend 4 energy in .shootval and you'll double your shot strength or range, but spend 8 energy and you only triple shot strength or range. | ||
− | This will also work in a way with venom and waste shots. The increase is linear instead of logarithmic though, and you spend the resource amount instead of energy. See venom and waste. Note that storing negative numbers for venom or waste shots has no effect, the shootval must be positive. | + | This will also work in a way with venom and waste shots. The increase is linear instead of logarithmic though, and you spend the resource amount instead of energy. See venom and waste. Note that storing negative numbers for venom or waste shots has no effect, the shootval must be positive. |
Latest revision as of 11:56, 16 May 2015
8 .shootval increases the range or power of a .shoot or sets the variable that gets stored in a positive memory .shoot.
Sysvars:
Shooting:
|
Memory shots:
If the .shoot is positive, by storing positive numbers in .shoot another bot's memory can be overwritten by what's stored in .shootval. This can be used to either mess up another bot or to exchange information.
Here's how you'd make another bot turn. Light's Icarus used this to dominate F2 league for a while.
cond 'you figure it out 'Icarus fires if: *.shup -2 != start .aimdx .shoot store 314 .shootval store stop
This will make any bot that you hit turn 90 degrees to the right.
A shot's strength and range:
As of 2.36, you may 'power up' a shot's strength and range.
By storing negative numbers in .shootval "-6" body shots and "-1" energy shots have a longer range.
By storing positive numbers in .shootval "-6" body shots and "-1" energy shots become more powerful.
The multiplier is roughly log2(.shootval). That's log base 2. So spend 4 energy in .shootval and you'll double your shot strength or range, but spend 8 energy and you only triple shot strength or range.
This will also work in a way with venom and waste shots. The increase is linear instead of logarithmic though, and you spend the resource amount instead of energy. See venom and waste. Note that storing negative numbers for venom or waste shots has no effect, the shootval must be positive.