my problem is if I type a name and don’t change the name, then no matter how I clicked, the story won’t change
Hi @Austin_Hart
Here are some hints to get you further:
-
let newStory = storyText;
needs to go inside the event loop so we always start with a “fresh” text when we click. - Same for the
xItem
,yItem
andzItem
assignments to randomize them every time. - Only the name replacer should be inside the first
if
statement. Otherwise:insertx:
and the other placeholders won’t get replace without a custom name.
Tell me if you need more help.
Happy coding,
Michael
your suggestion is very helpful
1 Like
Yay! Now it’s perfect.
Well done, @Austin_Hart