Events/get_reveal_role

From Werewolf Wiki
Jump to navigation Jump to search

The get_reveal_role event is called whenever a role needs to be displayed that is potentially not the player's actual role.

Event callback

def on_get_reveal_role(event: Event, var: module, nick: str) -> None
  • prevent_default has no effect for this event.
  • event: The event object
  • var: Reference to the src.settings module
  • nick: Player whose role we are revealing

Event data

{
    "role": str
}

Modify the role data item in order to change what role this player is revealed as.