Preventing inventory objects from having a hyperlink
Brian5757
25 Feb 2020, 04:08I'm custom building a text adventure game and was wondering if I can have objects displayed in the players inventory without the hyperlink on each object?
Brian5757
25 Feb 2020, 04:19Just found out that if I remove the inventory verbs then the object on longer has an hyperlink when displayed in the players inventory.
mrangel
25 Feb 2020, 09:06That's a convenient way of doing it.
If you want to remove the links from the "inventory" command specifically, you could add 2 lines to the command's script, making it something like:
list = FormatObjectList(Template("CarryingListHeader"), game.pov, Template("And"), ".")
if (list = "") {
msg (Template("NotCarryingAnything"))
}
else {
game.enablehyperlinks = false
msg (list)
game.enablehyperlinks = true
}