Using Other Names as the inline hyperlink
Pigbeetle
03 Nov 2022, 23:39In my game I have a floppy disc, which is a game you can insert into the in-game pc and play (a bit meta, I know), and the "other names" I have down for the game on floppy disc, are "floppy disc, disc, floppy, square disc" but I don't want it to be known what the game is called until after it's been looked at, so for example the in-game text, when you look at the desk your pc is sitting on, says
"Next to the computer is a little black, {object:Game Disc}."
Whereas the hyperlink would show up as "square disc" instead of the name of the game, then you'd then click on this thus-far-unknown "square disc" and see what it is.
Is there a way to change what the object link name is?

Father
04 Nov 2022, 08:01I don’t do co coding but can I suggest having a dummy disc that does nothing that can be hidden when picked up or examined for the first time and replaced with the real disc without the player realising this has happened. I have done this several times in games.
mrangel
04 Nov 2022, 09:32The alias
attribute is the one that's displayed in links (and also room contents, inventory, and panes if enabled). So the usual method would be to put the name you want to appear as the object's alias, and once the player finds out what it is, change the alias
attribute to the real name.
If you just want it to display a different name for that particular link, I believe that you can use an extra parameter to the text processor:
{object:object name:text to display}
Pigbeetle
05 Nov 2022, 05:17Thank you both for the suggestions!
The text to display is exactly what I needed