- summary: What a roleplay actor on the map is: a named player, an NPC, a monster group, a prism, and so on.
- area: Game.Context.Roleplay
What a roleplay actor on the map is: a named player, an NPC, a monster group, a prism, and so on.
Kind struct · Area Game.Context.Roleplay
The roleplay half of an actor's information, carried for every actor
GameRolePlayShowActorsEvent shows.
HOW TO READ IT
1. Exactly one branch of actor is set: it is the actor's KIND. Never infer the kind from
the actor id's sign (monster groups, NPCs, prisms and portals all use negative ids).
2. named_actor (NamedActor): a player character, with its name and, for a humanoid,
its account, alignment, look options (guild, alliance, title, ornament...).
3. monster_group_actor (MonsterGroupActor): a wandering monster group; attack it with
its actor id.
4. npc_actor: an NPC. treasure_hunt_npc_id: a treasure-hunt NPC, given only by its NPC
id (the client looks it up in the NPC data, like an NPC's own id).
5. prism_actor: an alliance prism. portal_actor (PortalInformation): a dimension
portal. tax_collector_actor (TaxCollectorActor): a tax collector.
Not sent on its own — a nested record, only ever carried by its parent. inferred
Used by
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | treasure_hunt_npc_id | int32 | Set when the actor is a treasure-hunt NPC: its NPC id. An NPC id of the game data (the client resolves it like an NPC's own id). | never |
| 2 | portal_actor | PortalInformation | Set when the actor is a dimension portal. See PortalInformation. | never |
| 3 | named_actor | NamedActor | Set when the actor is a player character. See NamedActor. | never |
| 4 | npc_actor | type not documented yet | Set when the actor is an NPC. Named only where Gender is recovered. | never |
| 5 | monster_group_actor | MonsterGroupActor | Set when the actor is a wandering monster group. See MonsterGroupActor. | never |
| 6 | prism_actor | PrismInformation | Set when the actor is an alliance prism. Same record as the prism carried by PrismAddOrUpdateEvent. | never |
| 7 | tax_collector_actor | TaxCollectorActor | Set when the actor is a tax collector. See TaxCollectorActor. | never |