User Tools

Site Tools


mr:summon_beast_spell

Summon Beast Spell - Code References

Java Classes

This entity is implemented in Lua, no Java class exists

JSON Configuration

This entity is implemented in Lua, no JSON configuration exists

String Resources

<string name="SummonBeast_Name">Beast Call</string>
<string name="SummonBeast_Info">Attempt to summon a horde of mighty beasts to obey your command.\nActual results may vary.</string>
<string name="SummonBeast_AtYourCommand">At your command!</string>

Lua Scripts

Implementation Details

  • Script Location: scripts/spells/SummonBeast.lua
  • Dependencies:
    • scripts/lib/commonClasses (RPD)
    • scripts/lib/spell
  • Spell Properties:
    • image = 3
    • imageFile = “spellsIcons/hunting.png”
    • name = “SummonBeast_Name”
    • info = “SummonBeast_Info”
    • magicAffinity = “Huntress”
    • targetingType = “self”
    • level = 4
    • castTime = 1
    • spellCost = 20
  • Behavior:
    • Spawns beasts in cells around the caster
    • Beast pool: {“Snail”, “Rat”, “Crab”, “Swarm”, “Bat”, “Spinner”, “Scorpio”, “Worm”}
    • Beast selection based on skill level: math.random(skillLevel/2, skillLevel+1)
    • Spawn chance: math.random() > 1/skillLevel
    • Spawned beasts become hero's pets
    • Beast says “SummonBeast_AtYourCommand” when summoned
  • Key Functions:
    • desc() - Returns spell description table
    • cast(self, spell, caster) - Executes spell casting logic
mr/summon_beast_spell.txt · Last modified: by 127.0.0.1