Project-Pandora-Game / pandora

https://project-pandora.com
Other
11 stars 2 forks source link

Contextual names for assets/ items #848

Open SandrinePDR opened 1 month ago

SandrinePDR commented 1 month ago

With the introduction of custom items, it would be great, if their name is used in chat messages. There is already a placeholder for this: ITEM_ASSET_NAME But

The idea to solve this would be to introduce two optional parameters to the asset definition: chatGeneric and chatSpecific, for instance: name: { wardrobe: "Armbinder", chatGeneric: "an armbinder", chatSpecific: "the armbinder", ... } If left blank, "a/ an" and "the" would be generated by Pandora and used in the chat message. For custom item names, it would be the same, so the item creator can omit articles or change them at their will or let Pandora do the work, for example:

name: {
    wardrobe: "Clare's present",
    chatGeneric: "a wrapped gift",
    chatConcrete: "the present",
    ...
}