JSFiddle - React, Tailwind, and code Playground
by Gwyn Milcote
HTML
JS random plot point generator.
<p>Enter 0-4 character names. If none, a passive sort of event will be chosen.</p>
1: <input type='text' class='plotgen_name1'>
2: <input type='text' class='plotgen_name2'>
3: <input type='text' class='plotgen_name3'>
4: <input type='text' class='plotgen_name4'>
<p><button class='plotgen_btn'>Generate!</button></p>
<span class='plotgen_result'></span>
JavaScript
var plots0 = ['gg',
'hh',
'ii',
'jj',
'kk'];
var plots1 = ['NAME ff',
'hhh NAME',
'ffff NAME',
'u uu NAME',
'NAME yyy'];
var plots2 = ["1 pays 2 an unexpected visit, and is shocked to find out what kind of place they live in.",
"1 begs 2 to leave and forget about them, lest they be dragged into the trouble too - but 2 is adamant they're going nowhere, wanting to see this resolved.",
"As they lurk and watch a suspicious passageway, 1 is shocked to see 2 emerge. Though it's unwise, 1 confronts them and demands to know what they're doing here.",
"1 assures 2 they're genuinely sorry and only want the best for them. Will 2 believe a word of it?",
"As part of the tidy-up effort, 1 nags 2 to 'sort out' their favourite collection of something. Is this going a bit far...?",
"1 is puzzled to return from an event and find the workplace's machinery operating - but no sign of 2 anywhere.",
"1 visits 2 and threatens them - they know what 2 is up to, and are watching...",
"When 1 tells about their ambitious plans, 2 is jealous of their fortune or opportunities - then surprised when 1 invites them to join in!",
"1 is shocked when 2 admits being guilty of a certain claim - what on earth made them do that?",
"1 thanks 2 for offering them a place to stay, while their usual home is unavailable."];
var plots3 = ["Investigating a curious place, 1 distracts 2 while 3 sneaks round the back.",
"1 finds it difficult to believe 2 could be guilty of what 3 claimed - even slightly - but bravely confronts them. What will they answer?",
"As 1 begs 2 to keep their situation a secret, 2 is horrified to realise that 3 is involved too, and not in a good way.",
"1 has been disapproving of 2 and 3's relationship - but after rethinking, tells 2 that if 3 truly makes them happy, they don't want to stand in their way.",
"When 1 reveals there's been a theft, 2 realises with a heavy heart that the culprit is probably 3...",
"Taken aback, 1 tells visiting 2 they must leave at once - but when they're...