ItemsDroppedEvent
Items or coins were dropped, onto the party's cell or behind it as bait.
Full documentation: ItemsDroppedEvent. Wire type: items_dropped.
Default visibility: player
Message codes: exploration.item.dropped
JSON Schema
{
"$defs": {
"Visibility": {
"description": "Who may see an event: the players, or only the referee.\n\nEvery event has one of these values, because in B/X the referee makes some rolls behind a screen. Filter\na log on it before you show anything to a player, or call\n`GameSession.view`, which builds the players' view and the referee's\nview for you. A narrator that plays the referee reads every event.\n\nA serialized event contains the lowercase value. The values stay fixed within a `schema_version`, the version\nstamp of the saved format.\n\nExamples:\n ```python\n from osrlib.core.events import DamageDealtEvent, HitPointsReportedEvent, Visibility\n\n log = [\n DamageDealtEvent(target_id=\"monster-0001\", amount=5),\n HitPointsReportedEvent(target_id=\"monster-0001\", current_hp=2, max_hp=7),\n ]\n shown = [event.code for event in log if event.visibility is Visibility.PLAYER]\n assert shown == [\"combat.damage.dealt\"] # the goblin's remaining hit points stay hidden\n ```",
"enum": [
"player",
"referee"
],
"title": "Visibility",
"type": "string"
}
},
"description": "Items or coins were dropped, onto the party's cell or behind it as bait.\n\nEmitted by `DropItems`, and by\n`Evade` when the party drops its coins or its food to\nslow the monsters chasing it.\n\nWhat is dropped goes into the drop pile on the party's cell, which\n`TakeTreasure` with `feature_id=\"pile\"` picks\nback up. The exception is a drop made while fleeing: the drop of an `Evade`, or a\n`DropItems` during a chase. Those goods are left on the trail and are gone.",
"properties": {
"code": {
"default": "exploration.item.dropped",
"title": "Code",
"type": "string",
"description": "The message code, always `exploration.item.dropped`."
},
"visibility": {
"$ref": "#/$defs/Visibility",
"default": "player",
"description": "Player visibility: the party knows what it let go of."
},
"event_type": {
"const": "items_dropped",
"default": "items_dropped",
"title": "Event Type",
"type": "string",
"description": "The event type, `items_dropped`, which identifies this class in serialized form."
},
"character_id": {
"title": "Character Id",
"type": "string",
"description": "The member who dropped them."
},
"item_ids": {
"default": [],
"items": {
"type": "string"
},
"title": "Item Ids",
"type": "array",
"description": "What was dropped, in the same id form the acquisition used: catalog ids for mundane gear,\ninstance ids for valuables and magic items."
},
"coins_gp_value": {
"default": 0,
"title": "Coins Gp Value",
"type": "integer",
"description": "The coins dropped, as their value in gold pieces."
}
},
"required": [
"character_id"
],
"title": "ItemsDroppedEvent",
"type": "object"
}