-
-
Notifications
You must be signed in to change notification settings - Fork 4
Magic and spells
There are three proof of concept spells, 'heal', 'bolt' and 'drain'. cast_heal: Costs 2 points. Heals up to 5 points. cast_bolt: Costs 3 points. Damages a random amount of health between 1 and 'level' of spell. cast_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. cast_rejuvenate - Replenish action points. cast_hide - Hide someone (maybe yourself). cast_reveal - Use magic to reveal someone hiding.
For all spells the format i: spell who (level optional)
Target is required (in most cases) and should be a Living in the same location.
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.
Magic points will replenish automatically over time.
Example:
cast_heal elid
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.