Melee Weapon – Freeze

Type: Weapon Brain
Level: 2 star
Pages: 1
Description:  This creates a freezing sword that damages enemies using the Debuff-Freeze brain. The chances of activating the freezing is 4:11, so not every time and slightly less than 50%.

Kode

  1. WHEN DO [play fx][fx:Charge up A][volume][0]
  2. WHEN DO [highlight][blue][strength][2]
  3. WHEN DO [play sound][sound:Elemental Ice Aura][volume][25]
  4. WHEN [not][equipped]
  5. …WHEN [interacted] DO [it][equip][me]
  6. WHEN [equipped]
  7. …WHEN [for each of][owner][attack hit][light][or][attack hit][or][attack hit][heavy]
  8. …/…WHEN [for each of][them][owner][enemies]
  9. …/…/…WHEN [started to] DO [numvar:chance to hit][equals][random number][1][to][11]
  10. …/…/…WHEN [numvar:chance to hit][greater than][7]
  11. …/…/…/…WHEN [not][it][has brain][brain:Debuff -Freeze] DO [it][add brain][brain:Debuff-Freeze]
  12. …/…/…/…WHEN [else] DO [play sound][Elemental Ice Shatter][overlapping]

 

Alterations

Freezing happens with every hit
Remove change line 9 to
WHEN [started to]
and remove line 10

Make it a Ranged weapon
To add this to a ranged weapon change line 7 to

WHEN [or each of][owner][attack hit][ranged]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: