[SOLVED] How to make hyperlinks jump to labels?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Kokoro Hane
Eileen-Class Veteran
Posts: 1237
Joined: Thu Oct 27, 2011 6:51 pm
Completed: 30 Kilowatt Hours Left, The Only One Girl { First Quarter }, An Encounter ~In The Rain~, A Piece of Sweetness, Since When Did I Have a Combat Butler?!, Piece by Piece, +many more
Projects: Fateful Encounter, Operation: Magic Hero
Organization: Tofu Sheets Visual
Deviantart: kokoro-hane
itch: tofu-sheets-visual
Contact:

[SOLVED] How to make hyperlinks jump to labels?

#1 Post by Kokoro Hane »

EDIT: Okay, I figured out the old legacy code for hyperlinks to jump to labels, and that's really all I wanted most! Thanks!
For anyone who needs the legacy code.... an example....

Code: Select all

e "Hello, would you like some {a=define_hyperlink}tea?{/a}

label define_hyperlink:
e "Tea is very relaxing!"
------------------------------------------------------

So I can't seem to get the hyperlink tag to jump to a label at all. I saw an example in the documentation, but when I tried it, the hyperlink in the textbox opens up Internet Explorer. I want it to jump to a label. How do I achieve that? I also wouldn't mind working with the legacy code for that (as I've seen it done in an older game), since I also like working with the legacy theme when I work in 4:3 and to get my favorite older codes to process.

Thanks in advance!
PROJECTS:
Operation: Magic Hero [WiP]
Piece By Piece [COMPLETE][Spooktober VN '20]
RE/COUNT RE:VERSE [COMPLETE][RPG]
Since When Did I Have a Combat Butler?! [COMPLETE][NaNoRenO2020+]
Crystal Captor: Memory Chronicle Finale [COMPLETE][RPG][#1 in So Bad It's Good jam '17]

But dear God, You're the only North Star I would follow this far
Owl City "Galaxies"

philat
Eileen-Class Veteran
Posts: 1910
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: [SOLVED] How to make hyperlinks jump to labels?

#2 Post by philat »

The documentation seems pretty clear, to be honest. https://renpy.org/doc/html/text.html?hi ... text-tag-a

Post Reply

Who is online

Users browsing this forum: Alexis_Royce