Format: Harlowe 2.1
Code:
{
(set: _racenames to (datanames: $races))
(set: $validrace to (a:))
(for: each _i, ..._racenames)[
(if: $races's (_i)'s level <= 6)[
(link: _i)[
(set:
$char's baserace to (_i);
$charrace to (_i)
)
(go-to: "Race Choice")
](print: " ")
]
]
}
I am making a script to help me to allow people to test campaigns I design before they purchase them.
The script above is supposed to set the race variables, and the info is displayed in a separate footer page.
$races is a datamap, declared at story start
$char is a datamap, declared at stat selection
$char's baserace is an entry in the datama
$charrace is a variable declared at stat selection, set to a default value
The script displays the options appropriatly as links, but when I click on them, it doesn't update the variables.
The go-to as the passage call to itself, which allows players to make a different selection if they made a mistake.
Any help is appreciated. Thank you