-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.js
72 lines (53 loc) · 1.59 KB
/
init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//global variables
var paragraph, chapter, dead;
var chapters = [];
//chapter 1 variables
var counter11, oxypadronamedival, shouldershot, aspirin, extraammo, lostgun;
//chapter 2 variables
var pass, pingbitch1, pingbitch2, safehouse_address, localsuppliers_address, startch3inpodcab;
var haiku = [];
//chapter 3 variables
var bitch_dox, brainfuck, yhelp, zephelp, cyberfhelp, krommershelp, timehelp;
function init() {
//global variables
chapter = 1;
paragraph = 0;
dead = false;
//chapter 1 variables
counter11 = 0;
oxypadronamedival = false;
shouldershot = false;
aspirin = false;
extraammo = false;
lostgun = false;
//chapter 2 variables
pass = '';
pingbitch1 = false;
pingbitch2 = false;
safehouse_address = false;
localsuppliers_address = false;
startch3inpodcab = false;
//chapter 3 variables
bitch_dox = false;
brainfuck = false;
yhelp = false;
zephelp = false;
cyberfhelp = false;
krommershelp = false;
timehelp = false;
//init
document.getElementById('top').innerHTML = '<img src="images/title_screen.png">';
document.getElementById('board').innerHTML = '<div id=\"options\"><input type="button" value="Start!" onclick="submit('+paragraph+')"></div>';
document.body.style.backgroundColor = "#000";
document.body.style.color = "#FFF";
}
function calculateHelp() {
var value = 0;
if (yhelp) value += rand(5);
if (zephelp) value += rand(10);
if (cyberfhelp) value += rand(3);
if (krommershelp) value += rand(6);
if (timehelp) value += rand(8);
if (value > 6) return true;
else return false;
}