Character Motivation + Flaw Generator
by Swordie
HTML
Need a driving force and inner conflict for your character? Here you go! This gives only the gist of the motivation and what keeps the character from them; they're meant to be developed on. Ask yourself WHY or HOW?
<br>
<br>
<button>MAKE ME SUFFER</button>
<h2></h2>
JavaScript
$('button').click(function() {
$('h2').text('This character wants '+ randomEl(goal)+' the most, but they do not deserve it because they are '+randomEl(flaw)+'.');
selectElementContents($('h2')[0]);
});
function randomEl(list) {
var i = Math.floor(Math.random() * list.length);
return list[i];
}
function selectElementContents(el) {
var range = document.createRange();
range.selectNodeContents(el);
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
}
var goal = ["family","love","sex","friends","wealth","to feel special","to be number one","INFINITE POWER","to be left alone","to impress their idol","to become someone else","fulfill a prophecy that benefits them","meaning in their life","to prove themselves","fame","revenge","acceptance","to survive","to escape","justice","peace between people","to rebel","to overturn destiny","forgiveness","knowledge","destruction","to be beautiful","freedom","to stop hating themselves","a sense of control","to never work hard another day in their life","to feel like they are contributing to a greater whole","faith","hope"];
var flaw = ["greedy","an asshole","indecisive","disloyal","obsessive","emotionally unstable","unable to feel","clueless about personal space","manipulative","irresponsible","a compulsive liar","extremely terrified of something","overly dependent","overly independent","very judgemental","alcoholic","discouraged by routine","incredibly guilty of something","an adrenaline junkie","an attention whore","a bad liar","overly confident in themselves","believe they would not amount to anything","sadistic","masochistic","someone who is unable to see between the lines","not motivated to do anything","unable to voice their true feelings","terrible at dealing with criticism","deprived of common sense","afraid of getting involved","childish","deranged","dishonest","envious about someone","a fanatic to their beliefs","incrdibly picky","a...