terrarium-earth / Heracles

A tree style questing mod allowing creators to set completable quests for their users
MIT License
35 stars 19 forks source link

[Feature Request]: Linking to other quests in quest descriptions #153

Open lonevox opened 11 months ago

lonevox commented 11 months ago

Is your feature request related to a problem?

I'm seeing if I can convert my FTB Quests into Heracles, and one issue that quickly became clear is that there is no way to link to another quest from within a quest description. In my case, I have a quest page of multiblock quests, which each describe how to build different multiblocks (like in GTNH). In many places in other questlines I'd like to link to these multiblock quests so the player can quickly jump between the quest they're looking at and the multiblock quest, in case they thought they might need to build another one. I'm sure this feature could be used in other ways too.

Solution(s)

Linking quests in FTB quests can be done like so: image Description: ["To make steel, you'll need to construct a ", { "text": "primitive blast furnace", "underlined": true, "color": "light_purple", "clickEvent": { "action": "change_page", "value": "70C4E8974BC7EADA" } }, "."] Here, value is the ID of the quest you're linking to.

A similar syntax would be needed for Heracles, maybe: To make steel, you'll need to construct a <link text="primitive blast furnace" quest="70C4E8974BC7EADA"/>. Styling to make the text look like a link could be done by Heracles, instead of needing to manually underline and change color like in FTB Quests.

After clicking a link, you should be able to press the back keybind (alt + left arrow in Windows) or maybe a back button to go back to the original quest.

Describe alternatives you've considered

One alternative is to duplicate your quests so that wherever you would have a link to them in the description, you'd have a physical quest link. This is really not ideal though.

Mod Version

1.1.7

Mod Loader Version

47.2.0

Mod Loader

Forge

Additional context

No response