SpellsMemorizedEvent
A caster's daily preparation resolved: the full prepared list.
Full documentation: SpellsMemorizedEvent. Wire type: spells_memorized.
Default visibility: player
Message codes: magic.memorize.prepared
JSON Schema
{
"$defs": {
"PreparedSpell": {
"description": "One prepared copy in a memorization event: the spell and its fixed form.",
"properties": {
"spell_id": {
"title": "Spell Id",
"type": "string"
},
"reversed": {
"default": false,
"title": "Reversed",
"type": "boolean"
}
},
"required": [
"spell_id"
],
"title": "PreparedSpell",
"type": "object"
},
"Visibility": {
"description": "Who may see an event.\n\nThe wire values are `\"player\"` and `\"referee\"` \u2014 lowercase, serialized into every\nevent; changing them is a `schema_version` bump.",
"enum": [
"player",
"referee"
],
"title": "Visibility",
"type": "string"
}
},
"description": "A caster's daily preparation resolved: the full prepared list.\n\nEmitted by [`memorize_spells`][osrlib.core.spells.memorize_spells]. One event per\npreparation \u2014 memorization is a full replacement, so the list is the caster's\ncomplete new memory.",
"properties": {
"code": {
"default": "magic.memorize.prepared",
"title": "Code",
"type": "string"
},
"visibility": {
"$ref": "#/$defs/Visibility",
"default": "player"
},
"event_type": {
"const": "spells_memorized",
"default": "spells_memorized",
"title": "Event Type",
"type": "string"
},
"caster_id": {
"title": "Caster Id",
"type": "string"
},
"prepared": {
"items": {
"$ref": "#/$defs/PreparedSpell"
},
"title": "Prepared",
"type": "array"
}
},
"required": [
"caster_id",
"prepared"
],
"title": "SpellsMemorizedEvent",
"type": "object"
}