Ranged Weapon – Enchanted Shot

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

  1. WHEN [not][equipped][and][not][attached]
  2. …WHEN [interacted] DO [it][equip][me]
  3. …WHEN [else]
  4. …/…WHEN [started to] DO [numvar:owner projectile][equals][1]
  5. …/…WHEN [owner][projectiles][increased] DO [numvar: owner projectiles][increment by][1] //counts the number of times player fires
  6. …/…WHEN [numvar:owner projectiles][modulo][5][equal to][0] // if the number divides equally into 5 then…
  7. …/…/…WHEN [owner][shooting] DO [owner][shoot][fx: Druid Projectile][with Damage][30]

 

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: