Level 4

Level 4

> Tutorial by level

Unlocked weapons and chips

Pebble Level 4

Cooldown

You're now level 4. You've just unlocked a second chip: Pebble.

With this chip, you discover the concept of "cooldown": the recovery time a chip needs between two uses.

In the Market, you can read "Cooldown: 1 turn" on the card of Pebble.

This means you have to wait 1 turn before you can use this chip again. So you can't use it several times in the same turn, as you can with weapons.

If no cooldown is shown, a chip can be used several times during your turn. If, on the other hand, a cooldown is shown, you won't be able to use it as much as you like. For example, a 2-turn cooldown only lets you use the chip every other turn at most.

Just like the useWeapon function, the useChip function only spends the TP your chip needs if it can actually be used. So if you run the command

useChip(chip, target)

every turn and the chip has a cooldown of 3, you'll spend the chip's TP at most one turn out of three.

Optimizing your TP

Another important concept: optimizing your TP.

For example, right now you may just be shooting 3 times with the Pistol. That uses 9 of your 10 TP. It's good, but it's not optimal.

First of all, it's very important not to equip your weapon every turn. That way, you'll save a TP that was being wasted.

To equip your weapon only once, you'll need a condition. (If needed, see conditions) A condition on the return value of the getWeapon function lets you equip your weapon only if you don't already have one equipped, or change it if the equipped weapon isn't the one you want. Another option would be to draw your weapon only on turn 1, checking for that with getTurn.

Now, except on the first turn, you'll have 10 TP to spend attacking your opponent. For example, it may be a good idea to shoot your Pistol one time less, using only 6 TP, and spend the remaining 4 on an effective combination of one or more chips.

Admittedly, Pebble's damage is fairly random, but a combo such as Pistol + Pistol + Pebble + Shock can be worthwhile to optimize your damage.

Level 3

Level 6