Page 1 of 1

Show items count in quest log

Posted: Sat Feb 11, 2023 2:31 pm
by Volandpro
Hello!

Is it possible to show count of quest items I have in the quest log? I am using my own inventory system. For example, I need to find 5 stones, so, if I open quest log, I will see 2/5 (if I have 2 stones).

Re: Show items count in quest log

Posted: Sat Feb 11, 2023 9:03 pm
by Tony Li
Yes. Write a C# function returns the amount of an item in your inventory. For example, maybe it would be called GetItemCount(itemName). Then register it with Lua.

In your quest text, use the [lua(code)] markup tag, such as:
  • Entry 1: [lua(GetItemCount("Stone"))] / 5 Stones

Re: Show items count in quest log

Posted: Sun Feb 12, 2023 8:11 am
by Volandpro
Thank you very much :)

Re: Show items count in quest log

Posted: Sun Feb 12, 2023 10:01 am
by Tony Li
Glad to help!