how to turn off inventory hyperlinks?

psymann
27 Apr 2013, 21:38Hello all,
Does anyone know how I can set things so that when I type "inventory" in the game, it lists the objects I'm carrying, but doesn't put any of them as hyperlinks?
Thanks
psy
Does anyone know how I can set things so that when I type "inventory" in the game, it lists the objects I'm carrying, but doesn't put any of them as hyperlinks?
Thanks

psy

jaynabonne
27 Apr 2013, 23:26You could drop this into your game file:
This is just the inventory command copied up with game.enablehyperlinks turned off and back on around the output msg.
<command name="inventory" pattern="[inventory]">
list = FormatObjectList(Template("CarryingListHeader"), game.pov, Template("And"), ".", false)
if (list = "") {
msg (Template("NotCarryingAnything"))
}
else {
game.enablehyperlinks = false
msg (list)
game.enablehyperlinks = true
}
</command>
This is just the inventory command copied up with game.enablehyperlinks turned off and back on around the output msg.

psymann
28 Apr 2013, 21:57Worked a treat, thanks.
Your knowledge of these code features continues to impress!
psy
Your knowledge of these code features continues to impress!

psy