I'm writing a mod for a custom potion called "Potion of Seeking" to help players find quest objectives.
When registering the PotionRecipe, I must provide a Display Name key. Internally, this key is used to get the localized display name from internal strings using TextManager.Instance.GetLocalizedText("MyPotionDisplayKey");
My problem is that the word "Seeking" does not exist in internal strings anywhere, and I don't know how to add it myself.
I've renamed the potion to "Potion of Quest" because the word "Quest" does exist internally.
Is there a work-around, or do I just stick with the "Potion of Quest"?
As a side note, I originally wanted to call it the "Draught of Seeking", but the "Potion of..." text is hardcoded.
Problem registering name of custom potion...
- DunnyOfPenwick
- Posts: 275
- Joined: Wed Apr 14, 2021 1:58 am
- Location: Southeast US
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Problem registering name of custom potion...
We can fix this by adding a CustomDisplayName property to PotionRecipe. Once set, the custom name will be returned whenever DisplayName / GetDisplayName() is called. Then you can set the custom name from whatever text source you like.
I merged change that should do the job.
https://github.com/Interkarma/daggerfal ... e26584e2c3
I merged change that should do the job.
https://github.com/Interkarma/daggerfal ... e26584e2c3
- DunnyOfPenwick
- Posts: 275
- Joined: Wed Apr 14, 2021 1:58 am
- Location: Southeast US
Re: Problem registering name of custom potion...
Fantastic! Exactly what I was looking for. Thank you.