It looks like you're new here. If you want to get involved, click one of these buttons!
if (typeof window.customScripts == "undefined") {
window.customScripts = {
submitName: function(inputName) {
//Get the value of the textbox at time of click
var newName = $("input[name='" + inputName + "']")[0].value;
//Find the hook node based on name and set the text inside
$("tw-hook[title*='" + inputName + "']").text(newName);
//Log the Change
console.log(inputName + " changed.")
}
};
};
Welcome to Scion, an interactive horror game where your choices dictate who loves you and who hates you, where you end up at the end and even who lives and who dies - including yourself. There are $endings endings to this game, will you find them all?
To begin, let's answer some establishing questions.
What's your name?
You're [not sure...]<fname|.
<input type="text" name="fname" value="Sam">
<button type="submit" onclick="customScripts.submitName('fname')">is my name!</button>
(link: "That's me!")[(set:$name = ?fname)Your name is $name.
Next->Gender]
Comments
If you change it to
Then it works in both debug and normal mode. I guess when debugging it also sets the title attribute to the same value as the name.
hopefully this'll help troubleshooting if you run into a similar problem in the future.