Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

[Unanswered] Display variables in links

18 years ago
Are you able to show variables in the link text? As in for example: in the link script put:

$LINKTEXT := "Rest at the inn for 30 silver. This will fully restore your health to %MAXHP"

If your Maximum Health was 35, then the link would say: "Rest at the inn for 30 silver. This will fully restore your health to 35.

Of course, that is an example, but is this possible? I was originally going to suggest a feature using the %LASTPAGEID in link scripts, as I know some storygames (eg. The Tower) have page numbers, but then I realised you can't set the %LASTPAGEID to the page ID of the next link, so I scrapped it.

Anyway, is this possible?