Type: Weapon Brain
Level: 2 star
Pages: 1
Description: Every 5th shot fired from a ranged weapon with this brain will be a green orb which inflicts 30 health point damage.
Kode
- WHEN [not][equipped][and][not][attached]
- …WHEN [interacted] DO [it][equip][me]
- …WHEN [else]
- …/…WHEN [started to] DO [numvar:owner projectile][equals][1]
- …/…WHEN [owner][projectiles][increased] DO [numvar: owner projectiles][increment by][1] //counts the number of times player fires
- …/…WHEN [numvar:owner projectiles][modulo][5][equal to][0] // if the number divides equally into 5 then…
- …/…/…WHEN [owner][shooting] DO [owner][shoot][fx: Druid Projectile][with Damage][30]