Hi there,
In my code I'm using QuestLog.GetQuestEntry for a string but I'm getting:
[lua(Variable["track_smallrabbits"])]/3 Small Rabbits killed back rather than the correct live variable string that's displayed in the quest tracker.
Any way I can get around this?
Thanks,
BB
QuestLog.GetQuestEntry problem
Re: QuestLog.GetQuestEntry problem
Hi,
Run it through FormattedText.ParseCode. For example:
The ParseCode function replaces [lua(code)] and [var=varName] tags with their runtime values.
BTW, you can simplify your entry to this:
The shorter syntax may make it easier to identify typos.
Run it through FormattedText.ParseCode. For example:
Code: Select all
string s = FormattedText.ParseCode(QuestLog.GetQuestEntry("Your Quest", 1));
BTW, you can simplify your entry to this:
Code: Select all
[var=track_smallrabbits]/3 Small Rabbits Killed
-
- Posts: 91
- Joined: Tue Jul 14, 2015 8:22 am
Re: QuestLog.GetQuestEntry problem
Thanks Tony!