mr:kunai_throw_spell
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:kunai_throw_spell [2026/03/04 13:57] – Wiki analysis: Fix compliance issues for 5 random pages Qwen Assistant | mr:kunai_throw_spell [2026/03/04 14:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Kunai Throw Spell - Code References ====== | ||
| + | |||
| + | ===== Entity Information ===== | ||
| + | * **Entity Kind**: kunai_throw_spell | ||
| + | * **Entity Type**: Spell | ||
| + | * **Namespace**: | ||
| + | |||
| + | ===== Lua Script Implementation ===== | ||
| + | * **Script Location**: [[https:// | ||
| + | * **Script Dependencies**: | ||
| + | * scripts/ | ||
| + | * scripts/ | ||
| + | |||
| + | ===== Spell Configuration ===== | ||
| + | <code lua> | ||
| + | desc = function () | ||
| + | return { | ||
| + | image = 3, | ||
| + | imageFile | ||
| + | name = " | ||
| + | info = " | ||
| + | magicAffinity = " | ||
| + | targetingType = " | ||
| + | level = 2, | ||
| + | castTime | ||
| + | spellCost | ||
| + | } | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | ===== Spell Behavior ===== | ||
| + | <code lua> | ||
| + | cast = function(self, | ||
| + | local n = spellTier(caster) | ||
| + | local enemies = caster: | ||
| + | if enemies == 0 then | ||
| + | return false | ||
| + | end | ||
| + | local ownPos = caster: | ||
| + | for i = 1, n do | ||
| + | local tgt = caster: | ||
| + | RPD.zapEffect(ownPos, | ||
| + | tgt: | ||
| + | end | ||
| + | return true | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | ===== Damage Calculation ===== | ||
| + | * **Base Damage**: math.random(n, | ||
| + | * **spellTier Formula**: math.min(caster: | ||
| + | * **Damage Range**: n to (n + caster_level * n) | ||
| + | * **Maximum Projectiles**: | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | True Masters able to throw more than one Kunai at once.</ | ||
| + | </ | ||
| + | |||
| + | ===== Related Files ===== | ||
| + | * **Sprite**: spell_KunaiThrow.png, | ||
| + | * **Item Sprite**: item_Kunai.png, | ||
| + | * **Affinity**: | ||
| + | |||
| + | ===== API Functions Used ===== | ||
| + | * caster: | ||
| + | * caster: | ||
| + | * caster: | ||
| + | * caster: | ||
| + | * caster: | ||
| + | * RPD.zapEffect(from, | ||
| + | * target: | ||
| + | |||
| + | ===== Tags ===== | ||
| + | {{tag> mr spell kunai_throw rogue spell_code}} | ||
mr/kunai_throw_spell.txt · Last modified: by 127.0.0.1
