You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say you want to create a Humanoid (High Elf).
Creating a character type actor, filling the Race field in the character sheet, it populates the data.data.details.race with the string "Humanoid (High Elf)".
Creating a npc type actor, filling the race in the NPC character, by choosing: Humanoid and typing in the subtype: (High Elf), it populates the data.data.details.type with {custom: "", subtype: "High Elf", swarm: "", value: "humanoid"}.
In this case it also creates under the Actor5e, labels an entry for creatureType: "Humanoid (High Elf)" and type: "Humanoid (High Elf)".
When you try in a macro to search for this specific race (High Elf) you need to differentiate the search string for the differences between the npc and pc actor structure.
A way to have a unformal way of storing the race data for both character and npc would make things more straightforward in my opinion.
Another quicker fix would be for the character type actors to also automatically create an entry under labels with the same structure like the one for ncp's and then search this entry.
Hope this makes sense.
The text was updated successfully, but these errors were encountered:
The differences in the structure of the Actor data for npc and player makes writing of macros involving searching for specific "types" of creature not that straightforward.
I guess the planned work you mention would take care of that.
Fyorl
changed the title
Uniform key in Actordata regarding race for type:character and type:npc
Add creature type data to character type Actors
Nov 10, 2023
Originally in GitLab by @thatlonelybugbear
Let's say you want to create a Humanoid (High Elf).
Creating a
character
type actor, filling the Race field in the character sheet, it populates thedata.data.details.race
with the string"Humanoid (High Elf)"
.Creating a
npc
type actor, filling the race in the NPC character, by choosing: Humanoid and typing in the subtype: (High Elf), it populates thedata.data.details.type
with{custom: "", subtype: "High Elf", swarm: "", value: "humanoid"}
.In this case it also creates under the
Actor5e, labels
an entry forcreatureType: "Humanoid (High Elf)"
andtype: "Humanoid (High Elf)"
.When you try in a macro to search for this specific race (High Elf) you need to differentiate the search string for the differences between the
npc
andpc
actor structure.A way to have a unformal way of storing the
race
data for bothcharacter
andnpc
would make things more straightforward in my opinion.Another quicker fix would be for the
character
type actors to also automatically create an entry underlabels
with the same structure like the one forncp
's and then search this entry.Hope this makes sense.
The text was updated successfully, but these errors were encountered: