Preventing inventory objects from having a hyperlink

I'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?


Just found out that if I remove the inventory verbs then the object on longer has an hyperlink when displayed in the players inventory.


That'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
}

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums