Forgottenserver: Lack of multiple storage IDs in quests

Created on 25 Aug 2017  Â·  7Comments  Â·  Source: otland/forgottenserver

Before creating an issue, please ensure:

  • [ x] This is a bug in the software that resides in this repository, and not a
    support matter (use https://otland.net/forums/support.16/ for support)

Explanation

We need to use multiple storage values in the same mission of a quest.
A small example of that:

The Cosmic Chamber awakened! Reroute energy by killing entities drawing from raw lava heat and pure water.

Replicas
Golden: 67/5
Diamond: 83/5

Golden and diamond can't have the same storage ID, rather. This is a quest called "The forgotten knowledge" from CipSoft.

Edit: This part is a deprecated or an insufficient way to solve the bug. The correct solution is in this comment

An example of how it could look

<quest ..>
    <mission name="..." storages="1500;1501;...." startvalues="1;1;1" endvalues="10;15;123">
        <mission storage="1500" id="1" description="I am |STATE| out of 15" /> <!-- applies to storage numbered 1500 -->
        <mission storage="1501;1502" id="3" description="I am |STATE_1| out of |STATE_2|" /> <!-- applies to storage numbered 1500 -->
    </mission> <!-- mission is only considered started/completed if the ALL storage ids reach startvalue/endvalues -->
</quest>~~

Most helpful comment

What you want is possible with Lua scripts. Don't try to program via XML.

All 7 comments

What about #1973?

What you want is possible with Lua scripts. Don't try to program via XML.

I guess it would be even nicer if quests.xml is removed and be done in lua in newer versions of TFS.

-- edit just noticed thexamx edited his comment and saw the pull request.

@slavidodo "thexamx", and I did not edit my post, it was with link from the start XD

Hmm, maybe, sorry i didn't notice it then!!

@slavidodo This issue can be closed, doesn't it?

Imo it could be open in the milestone of 2.0 until a solution is provided
by commting the menthioned pr.

On Sep 3, 2017 1:20 AM, "Chabrowsky" notifications@github.com wrote:

@slavidodo https://github.com/slavidodo This issue can be closed,
doesn't it?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/otland/forgottenserver/issues/2311#issuecomment-326774547,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOKWeY9b1zkUV33LIyS5-3e0fOM8smS5ks5seeLYgaJpZM4PCrNH
.

Was this page helpful?
0 / 5 - 0 ratings