• v0.33.0 f48995c784

    neph1 released this 2024-08-01 15:41:07 -04:00 | 157 commits to master since this release

    The reason I wanted 'replenish' in was I needed a way to regain magic points after spending them.

    So here is a basic spells system. It works (for now) as commands and you need both enough magic points and a successful roll to cast them. There are three proof of concept spells, 'heal', 'bolt' and 'drain'.
    Heal: Costs 2 points. Heals up to 5 points.
    Bolt: Costs 3 points. Damages a random amount of health between 1 and 'level' of spell.
    Drain: Costs 3 points. Drains a random amount of combat points and magic points between 1 and 'level' of spell. Adds amount to casters magic points.

    Name of the spell is the command. Target is required and should be a Living in the same location.
    heal target

    This is something of a prototype, and may change. For example it's only possible for Players to use the spells at the moment. I'm working on adding 'levels' to the spells as well. For now I've added the 'heal' spell to players in The Prancing Llama, and all spells to Anything and Dungeon stories. Check the init_player method of those if you want to add spells to your custom stories.

    But I guess we need some kind of class system, soon?

    Original:[ You cast a healing spell that heals elid gald for 5 hit points] Generated:With a flick of my wrist, I channel magical energy into Elrid Gald’s body, bathing him in a warm, golden light. His eyes flutter open, taking in his surroundings as if awakening from a long slumber. A soft hum emanates from within me as I continue to weave together intricate patterns of magic, carefully tending to each of his five remaining hit points. As his wounds begin to mend, Elrid stirs, shifting uncomfortably on the makeshift bed of piled furs and blankets. He groans softly, wincing at some discomfort before catching sight of me. “Ah, thank the gods,” he mutters with a weak smile, his voice still hoarse from the ordeal.