filter shown messages by focus and scope #67
Labels
scope/state
world state management
status/fixed
issues that have been fixed and confirmed
type/feature
Milestone
When a script calls
focus.show
with a message, it may not be for the player: it could be for the current actor, everyone in the room, or (in the case of an item script) the actor currently holding an item. The player should not receive output meant for NPCs in other rooms, especially in a network scenario.Pass the intended
scope
intofocus.show
, replacing the optionalsource
with an optionalscope: {source, target}
. Valid targets includeself
,room
, andworld
.A
container
target would be cool (the actor holding this item, or room containing this actor), but depends on #53 .The text was updated successfully, but these errors were encountered: