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
- WHEN DO [play fx][fx:Charge up A][volume][0]
- WHEN DO [highlight][blue][strength][2]
- WHEN DO [play sound][sound:Elemental Ice Aura][volume][25]
- WHEN [not][equipped]
- …WHEN [interacted] DO [it][equip][me]
- WHEN [equipped]
- …WHEN [for each of][owner][attack hit][light][or][attack hit][or][attack hit][heavy]
- …/…WHEN [for each of][them][owner][enemies]
- …/…/…WHEN [started to] DO [numvar:chance to hit][equals][random number][1][to][11]
- …/…/…WHEN [numvar:chance to hit][greater than][7]
- …/…/…/…WHEN [not][it][has brain][brain:Debuff -Freeze] DO [it][add brain][brain:Debuff-Freeze]
- …/…/…/…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]