2021-04-04 23:55:21 +02:00
<!DOCTYPE html>
< html >
< title > Araldia< / title >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
2021-05-19 22:07:25 +02:00
< meta charset = "UTF-8" >
2021-04-04 23:55:21 +02:00
< link rel = "preconnect" href = "https://fonts.gstatic.com" >
< link href = "https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel = "stylesheet" >
< link href = "https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap" rel = "stylesheet" >
< link href = "https://unpkg.com/nes.css@2.3.0/css/nes.min.css" rel = "stylesheet" / >
2021-05-19 22:07:25 +02:00
< link rel = "stylesheet" type = "text/css" href = "https://csshake.surge.sh/csshake.min.css" >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" integrity = "sha512-5A8nwdMOWrSz20fDsjczgUidUBR8liPYU+WymTZP1lmY9G6Oc7HlZv156XqnsgNUzTyMefFTcsFH/tnJE/+xBg==" crossorigin = "anonymous" / >
2021-04-04 23:55:21 +02:00
2021-05-08 19:11:16 +02:00
< script type = "text/javascript" src = "https://www.gstatic.com/charts/loader.js" > < / script >
< script >
google.charts.load('current', {'packages':['corechart']});
< / script >
2021-04-04 23:55:21 +02:00
< script src = "https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">< / script >
< style >
2021-05-08 19:11:16 +02:00
.wbb {
width: 60vw;
word-break: break-word;
}
2021-04-04 23:55:21 +02:00
#levels {
font-size: 27px;
2021-05-19 22:07:25 +02:00
z-index:9999!important;
2021-04-04 23:55:21 +02:00
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
}
header {
position: fixed;
left: 0;
top: 0;
width: 100%;
text-align: center;
}
body {
background-color: black;
/*cursor: url('data:image/x-icon;base64,AAACAAEAICAAAAoAAQCoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP94Ek3/AAAA/wAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/3gSTf94Ek3/AAAA/wAAAAAAAAAAAAAAAwAAAAEAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/eBJN/6Yfbv94Ek3/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP94Ek3/ph9u/6Yfbv94Ek3/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/3gSTf+mH27/xDGH/6Yfbv94Ek3/eBJN/3gSTf94Ek3/eBJN/3gSTf94Ek3/eBJN/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/eBJN/6Yfbv/EMYf/xDGH/6Yfbv+mH27/ph9u/6Yfbv+mH27/ph9u/3gSTf8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP94Ek3/ph9u/8Qxh//HRJD/xDGH/8Qxh//EMYf/xDGH/6Yfbv94Ek3/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/3gSTf+mH27/xDGH/8dEkP/WZaf/x0SQ/8Qxh/+mH27/eBJN/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/eBJN/6Yfbv/EMYf/x0SQ/8dEkP/EMYf/ph9u/3gSTf8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP94Ek3/ph9u/8Qxh//HRJD/xDGH/6Yfbv94Ek3/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/3gSTf+mH27/xDGH/8Qxh/+mH27/eBJN/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
*/
2021-05-08 19:11:16 +02:00
-webkit-touch-callout: none;
/* iOS Safari */
-webkit-user-select: none;
/* Safari */
-khtml-user-select: none;
/* Konqueror HTML */
-moz-user-select: none;
/* Old versions of Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently
2021-04-08 09:48:09 +02:00
supported by Chrome, Edge, Opera and Firefox */
2021-04-04 23:55:21 +02:00
}
2021-05-08 19:11:16 +02:00
* {
2021-04-04 23:55:21 +02:00
background-color: black;
color: white;
/*
font-family: 'New Tegomin', serif;
*/
font-family: 'Press Start 2P', cursive;
}
button {
background-color: white;
color: black;
border: 2px solid #5555;
}
button:hover {
background-color: #5555;
color: white;
}
@keyframes slideleft {
from {
background-position: 0%;
}
to {
background-position: 90000%;
}
}
@-webkit-keyframes slideleft {
from {
background-position: 0%;
}
to {
background-position: 90000%;
}
}
.mtW {
width: 500px;
}
#masthead {
background-image: url('https://wallpx.com/image/2020/11/synthwave-cityscape-neon-8-bit.jpg');
background-repeat: repeat-x;
animation: slideleft 6000s infinite linear;
-webkit-animation: slideleft 6000s infinite linear;
2021-05-08 19:11:16 +02:00
max-width: 900px;
height: 30vh;
2021-04-04 23:55:21 +02:00
}
.mc {
width: 18em;
height: 8em;
margin: 1em auto;
overflow: hidden;
background: white;
position: relative;
box-sizing: border-box;
}
.marquee {
top: 6em;
position: relative;
box-sizing: border-box;
animation: marquee 15s linear infinite;
}
2021-05-08 19:11:16 +02:00
#error {
position: absolute;
top: 100px;
left: 90px;
width: 800px;
height: 500px;
background-color: red;
display: none;
z-index: 99;
}
#countV {
position: fixed;
top: 10px;
2021-05-19 22:07:25 +02:00
right: 10px;
2021-05-08 19:11:16 +02:00
display: none;
2021-05-19 22:07:25 +02:00
width: 15vw;
2021-05-08 19:11:16 +02:00
z-index: 99;
background-color: transparent;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
2021-04-04 23:55:21 +02:00
#beginSect {
display: none;
}
2021-05-19 22:07:25 +02:00
#beginSect2 {
display: none;
position: fixed;
top:0px;
right:0px;
height:100vh;
width:100vw;
z-index:9999;
}
2021-05-08 19:11:16 +02:00
#tooTpk {
2021-05-19 22:07:25 +02:00
position: fixed;
z-index: 99999999999;
display: none;
}
#musicBox {
position: fixed;
top:10px;
left: 10px;
z-index: 99999999999;
2021-05-08 19:11:16 +02:00
display: none;
}
#splash {
position:fixed;
top: 0;
bottom: 0;
2021-04-08 09:48:09 +02:00
z-index: 99999;
2021-05-08 19:11:16 +02:00
height: 100vh;
width: 100vw;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
#splashImg {
display: none;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
< / style >
2021-04-04 23:55:21 +02:00
< body >
2021-04-08 09:48:09 +02:00
< div id = "splash" >
< center >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< h1 id = "clicktobeg" > Clicca per iniziare< / h1 >
< img src = "mdglogo.png" id = "splashImg" / >
< / center >
< / div >
2021-05-19 22:07:25 +02:00
< div class = "nes-container is-rounded is-dark" id = "musicBox" >
< p id = "mTitle" > < / p >
< button onclick = "noaud()" style = "background-color:black" > < i class = "fa fa-volume-off" aria-hidden = "true" > < / i > < / button >
< button onclick = "DAudio(-10)" style = "background-color:black" > < i class = "fa fa-volume-down" aria-hidden = "true" > < / i > < / button >
< button onclick = "DAudio(+10)" style = "background-color:black" > < i class = "fa fa-volume-up" aria-hidden = "true" > < / i > < / button >
< / div >
< script >
setInterval(function(){
try{
var g=audio.src.split("/");
$("#mTitle").text("Volume:"+Math.round(audio.volume*100)+"%");
}
catch(e){
}
},100);
function DAudio(a){
if( (audio.volume+(a*0.01)< 0 ) | | ( audio . volume + ( a * 0 . 01 ) > 1) ) return false;
audio.volume+=(a*0.01);
}
function noaud(){
audio.volume=0;
}
< / script >
2021-05-08 19:11:16 +02:00
< div class = "nes-container is-rounded is-dark" id = "tooTpk" >
2021-04-08 09:48:09 +02:00
< p id = "tooltT" > Good morning. Thou hast had a good night's sleep, I hope.< / p >
2021-05-08 19:11:16 +02:00
< / div >
2021-05-19 22:07:25 +02:00
< div class = "nes-container with-title is-centered" id = "countV" >
2021-05-08 19:11:16 +02:00
< p class = "title" style = "background-color: black;" id = "vName" > < / p >
2021-05-19 22:07:25 +02:00
< i id = "vDesc" > < / i >
< div id = "cts" > < / div >
< / div >
2021-04-08 09:48:09 +02:00
< div class = "nes-container with-title is-centered" id = "error" >
< p class = "title" style = "background-color: black;" > Errore!< / p >
< p id = "errorData" > < / p >
2021-05-08 19:11:16 +02:00
< button type = "button" class = "nes-btn " onclick = "error();" > Chiudi< / button > < br / >
2021-04-08 09:48:09 +02:00
< i > Controlla la console per più informazioni< / i >
2021-05-08 19:11:16 +02:00
< / div >
< script >
function error() {
2021-04-08 09:48:09 +02:00
$(this).parent().hide();
2021-05-08 19:11:16 +02:00
if (deadlyError) {
2021-04-08 09:48:09 +02:00
location.reload();
}
2021-05-08 19:11:16 +02:00
}
< / script >
2021-04-04 23:55:21 +02:00
< header >
2021-05-08 19:11:16 +02:00
< br / >
< br / >
2021-04-04 23:55:21 +02:00
< h1 > Araldia< / h1 >
< i > Presidente, abbiamo bisogno del suo aiuto!< / i >
< center >
2021-05-19 22:07:25 +02:00
< div id = "levels" style = "z-index:9999999999;" > < / div >
2021-04-04 23:55:21 +02:00
< / center >
< / header >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
2021-05-08 19:11:16 +02:00
< br / >
< br / >
< br / >
2021-05-19 22:07:25 +02:00
< div id = "beginSect2" >
< br / >
< marquee width = "60%" direction = "up" height = "400px;" scrolldelay = "400" id = "mq2" >
< / marquee >
< a href = "javascript:location.reload();" > Riavvia< / a >
< / div >
2021-04-04 23:55:21 +02:00
< div id = "content" >
< center >
2021-05-08 19:11:16 +02:00
< div id = "virusBeginOhNo" class = "closableVir" > < / div >
2021-04-04 23:55:21 +02:00
< div id = "mainMenu" >
< div id = "masthead" > < / div >
< br / >
< input type = "text" placeholder = "Nome" id = "username" class = "nes-input is-dark" style = "width:300px" > < br / >
2021-05-08 19:11:16 +02:00
< div class = "nes-select is-dark" style = "width:300px" >
< select required id = "dfficultySelect" >
< option value = "30" > Mammina aiuto< / option >
< option value = "40" > Difficile< / option >
< option value = "50" selected > Normale< / option >
< option value = "60" > Facile< / option >
< option value = "70" > Potresti anche non giocare a questo punto< / option >
< / select >
< / div >
2021-04-04 23:55:21 +02:00
< button id = "begin" class = "nes-btn" > All'ufficio< / button >
< / div >
< div id = "beginSect" >
< br / >
< marquee width = "60%" direction = "up" height = "400px;" scrolldelay = "400" id = "mq" >
< / marquee >
< / div >
2021-04-08 09:48:09 +02:00
< div id = "gameField" >
< / div >
2021-04-04 23:55:21 +02:00
< / center >
< / div >
2021-05-08 19:11:16 +02:00
< br / >
< br / >
2021-04-04 23:55:21 +02:00
< footer >
2021-05-19 22:07:25 +02:00
< h5 > 2021, Mattia Mascarello, Diego
2021-04-04 23:55:21 +02:00
Scanavino, Giacomo Roggero< / h5 >
< / footer >
< / body >
< / html >
< script >
2021-05-08 19:11:16 +02:00
var gameVars = {
"player": {
"name": "",
"actionN": 0
}
};
2021-04-04 23:55:21 +02:00
var audio = null;
2021-05-08 19:11:16 +02:00
2021-04-04 23:55:21 +02:00
var bool = false;
addEventListener("click", function () {
2021-04-08 09:48:09 +02:00
$("#clicktobeg").hide();
2021-05-08 19:11:16 +02:00
document.documentElement.requestFullscreen();
2021-04-04 23:55:21 +02:00
if (bool) return false;
if (!bool) bool = true;
2021-04-08 09:48:09 +02:00
$("#splashImg").show();
2021-05-08 19:11:16 +02:00
initSplash(0, function ok() {
2021-04-08 09:48:09 +02:00
audio = new Audio('music/beepintro.mp3');
audio.play();
setTimeout(function () {
$("#splash").fadeOut();
2021-05-08 19:11:16 +02:00
audio.src = 'music/Rolemusic - The Black Kitty.mp3';
audio.loop = true;
2021-04-08 09:48:09 +02:00
audio.play();
}, 3000);
});
2021-05-08 19:11:16 +02:00
2021-04-04 23:55:21 +02:00
});
function deAudio(time = 10) {
try {
2021-05-08 19:11:16 +02:00
//console.log(audio.volume);
2021-04-04 23:55:21 +02:00
if (audio.volume > 0) {
audio.volume -= 0.01;
setTimeout(deAudio, 10 * time);
}
} catch (error) {
audio.volume = 0;
}
}
var text, parser, xmlDoc;
text = `<?xml version="1.0" encoding="utf-8"?>
2021-04-08 09:48:09 +02:00
< Araldia >
2021-04-04 23:55:21 +02:00
< values >
< value >
< name > health< / name >
< title > Salute< / title >
2021-05-19 22:07:25 +02:00
< description > Coff.. coff.. Una popolazione in salute potrebbe essere utile< / description >
2021-04-04 23:55:21 +02:00
< min > 0< / min >
< max > 100< / max >
< default > 100< / default >
2021-04-08 09:48:09 +02:00
< / value >
< value >
2021-05-08 19:11:16 +02:00
< name > economy< / name >
< title > Economia< / title >
< description > Potresti voler guardare questo indicatore ogni tanto< / description >
2021-04-08 09:48:09 +02:00
< min > 0< / min >
< max > 100< / max >
< default > 100< / default >
2021-04-04 23:55:21 +02:00
< / value >
< value >
< name > consensus< / name >
< title > Consenso< / title >
2021-05-08 19:11:16 +02:00
< description > Il tuo consenso da parte della popolazione. Se vuoi fare qualcosa davvero ti può essere d'aiuto< / description >
< min > 0< / min >
< max > 100< / max >
< default > 100< / default >
< / value >
< value >
< name > security< / name >
< title > Sicurezza< / title >
< description > Sono al sicuro in parlamento. Vero?< / description >
2021-04-04 23:55:21 +02:00
< min > 0< / min >
< max > 100< / max >
< default > 100< / default >
< / value >
< / values >
< sections >
< events >
2021-05-08 19:11:16 +02:00
< / events >
< scenes >
< scene >
< name > drogaStay< / name >
< title > Scandalo di Governo< / title >
< description >
< sectionGroup chance = "100" >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "-15" / >
Viene condannato in primo grado
< / section >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "security" delta = "+5" / >
Viene assolto in primo grado
< / section >
< / sectionGroup >
< / description >
< choices >
< choice >
< title > Ok< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / scene >
< scene >
< name > drogaGo< / name >
< title > Scandalo di Governo< / title >
< description >
< sectionGroup chance = "100" >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "security" delta = "+10" / >
Viene condannato in primo grado
< / section >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "-15" / >
Viene assolto in primo grado
< / section >
< / sectionGroup >
< / description >
< choices >
< choice >
< title > Ok< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / scene >
< scene >
< name > scandolaStay< / name >
< title > Scandalo di Governo< / title >
< description >
< sectionGroup chance = "100" >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "-15" / >
Viene condannato in primo grado
< / section >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "security" delta = "+5" / >
Viene assolto in primo grado
< / section >
< / sectionGroup >
< / description >
< choices >
< choice >
< title > Ok< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / scene >
< scene >
2021-05-19 22:07:25 +02:00
< name > randVacc< / name >
2021-05-08 19:11:16 +02:00
< title > Vaccino< / title >
< description >
< sectionGroup chance = "100" >
< section chance = "50" >
< set who = "levels" what = "health" delta = "-15" / >
Il vaccino fallisce e muoino 50'000 persone
< / section >
< section chance = "50" >
< set who = "levels" what = "health" delta = "+20" / >
Il vaccino risulta particolarmente efficace
< / section >
< / sectionGroup >
< / description >
< choices >
< choice >
< title > Ok< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / scene >
< scene >
< name > scandolaGo< / name >
< title > Scandalo di Governo< / title >
< description >
< sectionGroup chance = "100" >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "security" delta = "+10" / >
Viene condannato in primo grado
< / section >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "-15" / >
Viene assolto in primo grado
< / section >
< / sectionGroup >
< / description >
< choices >
< choice >
< title > Ok< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / scene >
< scene >
< name > randVesc< / name >
< title > Vescovo di Napoly< / title >
< description >
< sectionGroup chance = "100" >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "-20" / >
Il reato viene scoperto dal giornalista Aldo Giacomi, che ti accusa pubblicamente
< / section >
< section chance = "50" >
< set who = "levels" what = "consensus" delta = "+5" / >
Il reato viene insabbiato con successo e il vescovo contribuisce alla tua propaganda
< / section >
< / sectionGroup >
< / description >
< choices >
< choice >
< title > Ok< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / scene >
< / scenes >
2021-05-19 22:07:25 +02:00
< questions >
< question >
< name > misureRestrittive< / name >
< title > Misure restrittive< / title >
< description >
Considerata l'attuale situazione epidemiologica, è necessario rafforzare le misure restrittive?
< / description >
< choices >
< choice >
< title > Sì< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "economy" delta = "-10" / >
< set who = "levels" what = "health" delta = "+10" / >
< set who = "virus" what = "Rt" delta = "-0,2" / >
< / effects >
< / choice >
< choice >
< title > No< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "economy" delta = "+10" / >
< set who = "levels" what = "health" delta = "-10" / >
< set who = "virus" what = "Rt" delta = "+0,2" / >
< / effects >
< / choice >
< / choices >
< / question >
2021-05-08 19:11:16 +02:00
< questions >
< question >
< name > CrostaSconcordia< / name >
< title > Nave incagliata< / title >
< description >
La nave Crosta Discordia è rimasta incagliata a largo dell'isola del Ciglio, con a capo il Comandante Scattino. Lo scafo ha imbarcato acqua e la nave potrebbe affondare
< br / >
Che cosa fai?
< / description >
< choices >
< choice >
< title > Fai sì che la nave venga rimossa e le sue parti riutilizzate< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+15" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > No, costa troppo rimuoverla, meglio lasciarla lì< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-15" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > Partitini< / name >
< title > Riforma elettorale< / title >
< description >
Un gruppo di alcuni senatori e deputati ha proposto una riforma costituzionale al sistema elettorale, che sfavorirebbe i partiti di piccole dimensioni
< br / >
Come desideri procedere?
< / description >
< choices >
< choice >
< title > Ti dichiari favorevole< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< / effects >
< / choice >
< choice >
< title > Meglio osteggiare la riforma, d'altronde alcuni partiti che fanno parte della tua allenaza sono piuttosto ridotti< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > Sindacati< / name >
< title > Sindacati< / title >
< description >
Il Presidente del Sindacato dei Lavoratori Part-Time, Sergio Costa, ti chiede un incontro per stabilire un punto di accordo sulle condizioni lavorative di coloro che rappresenta
< / description >
< choices >
< choice >
< title > Che dialogo inutile, sarebbe tempo sprecato< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "economy" delta = "+10" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Va bene, incontriamoci!< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "economy" delta = "-10" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
2021-05-19 22:07:25 +02:00
< name > Sparatoria in centro a Mylano< / name >
< title > Sparatoria in centro a Mylano< / title >
2021-05-08 19:11:16 +02:00
< description >
Un poliziotto fuori servizio di nome Giorgio Sinodi ha utilizzato la sua pistola d'ordiananza per uccidere la moglie che lo aveva precedentemente tradito.
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Niente, non sono affari miei< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< choice >
< title > Ti esponi pubblicamente a favore del poliziotto< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-15" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > antipandemia1< / name >
< title > Antipandemia< / title >
< description >
Il Ministro della Salute ti chiede di stanziare fondi per la prevenzione della malattia.
< / description >
< choices >
< choice >
< title > Accetti la richiesta, nonostante il costo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "+10" / >
< set who = "levels" what = "economy" delta = " -10" / >
< / effects >
< / choice >
< choice >
< title > Rifiuti la richiesta, per poter utilizzare il denaro diversamente< / title >
< effects >
< goto question = "next" / >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "-10" / >
< set who = "levels" what = "economy" delta = " +10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > Autostrade< / name >
< title > Autostrade< / title >
< description >
Il Ministro dei Trasporti ti chiede di stanziare fondi per la manutenzione delle autostrade. < / description >
< choices >
< choice >
< title > Accetti la richiesta, nonostante il costo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "sicurezza" delta = "+10" / >
< set who = "levels" what = "economy" delta = " -10" / >
< / effects >
< / choice >
< choice >
< title > Rifiuti la richiesta, per poter utilizzare il denaro diversamente< / title >
< effects >
< goto question = "next" / >
< goto question = "next" / >
< set who = "levels" what = "economy" delta = "-10" / >
< set who = "levels" what = "health" delta = " +10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > Cesaropapismo< / name >
< title > Cesaropapismo< / title >
< description >
La Chiesa Assiomatica si propone di procacciarti il supporto della popolazione, pur di impedire la ricerca sulle cellule embrionali.
< br / >
Cosa decidi di fare?
< / description >
< choices >
< choice >
< title > Accetti la proposta< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "-10" / >
< set who = "levels" what = "consensus" delta = " +10" / >
< / effects >
< / choice >
< choice >
< title > Beh ecco...< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "health" delta = " +10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > cesaropapismo< / name >
< title > Cesaropapismo< / title >
< description >
La Chiesa Assiomatica si propone di procacciarti il supporto della popolazione, pur di impedire la ricerca sulle cellule embrionali.
< br / >
Cosa decidi di fare?
< / description >
< choices >
< choice >
< title > Accetti la proposta< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "-10" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< / effects >
< / choice >
< choice >
< title > Beh ecco...< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "health" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > crocifissi< / name >
< title > Crocifissi nelle scuole< / title >
< description >
Un gruppo crescente di persone ti chiede di considerare se tenere o rimuovere i crocifissi nelle scuole.
< / description >
< choices >
< choice >
< title > Ci penso immediatamente< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Certo ! (Magari il prossimo governo se ne occuperà)< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > crocifissi< / name >
< title > Crocifissi nelle scuole< / title >
< description >
Un gruppo crescente di persone ti chiede di considerare se tenere o rimuovere i crocifissi nelle scuole.
< / description >
< choices >
< choice >
< title > Ci penso immediatamente< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Certo ! (Magari il prossimo governo se ne occuperà)< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > desertificazione< / name >
< title > Desertificazione < / title >
< description >
La regione della Sciglia si sta progressivimanente desertificando
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Non ci possiamo fare nulla< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< set who = "levels" what = "economy" delta = "-5" / >
< / effects >
< / choice >
< choice >
< title > Facciamo qualcosa!< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< set who = "levels" what = "economy" delta = "+5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > droga< / name >
< title > Caso di droga nella tua alleanza di Parlamento< / title >
< description >
2021-05-19 22:07:25 +02:00
Il tuo ministro dell'interno Giovanni Foresta è sotto inchiesta per aver favorito, grazie alla sua influenza, la distribuzione di droga sul suolo Araldico
2021-05-08 19:11:16 +02:00
< br / >
Come desideri procedere?
< / description >
< choices >
< choice >
< title > Rimane in ufficio finchè condannato, sempre che sia colpevole< / title >
< effects >
< goto scene = "drogaStay" / >
< / effects >
< / choice >
< choice >
< title > Fuori dal mio governo< / title >
< effects >
< goto scene = "drogaGo" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > esercito< / name >
< title > Nuove forze armate?< / title >
< description >
2021-05-19 22:07:25 +02:00
Il Generale Padruolo ti propone di finanziare delle attività funzionali al rafforzamento dell'esercito Araldico
2021-05-08 19:11:16 +02:00
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Accetti e concedi il finanzimento< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "security" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Rifiuti senza dilungarti troppo sulle motivazioni< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > fallimento< / name >
< title > Fallimento di Jovani S.p.A.< / title >
< description >
Elettrotecnica Jovani S.p.A., una grande realtà industriale con sede a Drato, sta spostando tutti i suoi impianti produttivi in Bangladesh.
< br / >
I sindacati esercitano una forte pressione per impedire che ciò accada.
< / description >
< choices >
< choice >
< title > Impedisci lo spostamento con incentivi statali< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
2021-05-19 22:07:25 +02:00
< title > Ah perchè in Araldia si lavora anche?< / title >
2021-05-08 19:11:16 +02:00
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > femministe1< / name >
< title > Movimento femminista< / title >
< description >
Il partito %randPartyName%, sostenitore dei diritti delle donne, chiede uguaglianza tra gli stipendi di colleghi di differente sesso.
< br / >
Il Ministro del Lavoro Giorgio Crispi lascia a te la scelta finale.
< / description >
< choices >
< choice >
< title > Accogli con gioia la richiesta e prendi provvedimenti< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Ritieni che sia una condizione già in atto< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > fuggitivo< / name >
< title > Fuggitivo proveniente dalla Francia< / title >
< description >
2021-05-19 22:07:25 +02:00
Un noto criminale è riuscito a fuggire da un carcere di massima sicurezza in Francia, recandosi in Araldia. La Francia ti chiede di cercarlo all'interno tuoi confini.
2021-05-08 19:11:16 +02:00
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Porti avanti una ricerca nelle regioni limitrofe al confine< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "security" delta = "+5" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Decidi che non ne vale il costo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< set who = "levels" what = "security" delta = "-5" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > giornalista< / name >
< title > Giornalista ficcanaso< / title >
< description >
2021-05-19 22:07:25 +02:00
Il giornalista Girolamo Preti ha scritto un articolo sulla tua attuale gestione del Paese
2021-05-08 19:11:16 +02:00
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Accetti le critiche e lo inviti a discuterne meglio di fronte ad una tazza di Caffé< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< / effects >
< / choice >
< choice >
< title > Ti dimostri fortemente irritato dalle sue affermazioni ed eviti il dialogo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< / effects >
< / choice >
< choice >
< title > Lo attacchi pubblicamente e lo fai licenziare grazie alla tua influenza< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "security" delta = "+5" / >
< set who = "levels" what = "consensus" delta = "-15" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > hello.joke< / name >
< title > Is there anybody in there?< / title >
< description >
Out of the corner of my eye
I turned to look but it was gone
I cannot put my finger on it now
The child is grown
The dream is gone
I have become comfortably numb
< / description >
< choices >
< choice >
< title > What?< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< choice >
< title > Cosa?< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > inParlamento< / name >
< title > In parlamento< / title >
< description >
%randPartyName%, segretario di %randPartySecretary%, critica l'operato del tuo governo riguardo alla scuola.
< / description >
< choices >
< choice >
2021-05-19 22:07:25 +02:00
< title > Haha, un paritino al 4%< / title >
2021-05-08 19:11:16 +02:00
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "security" delta = "-5" / >
< / effects >
< / choice >
< choice >
< title > Cos'è la scuola?< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "security" delta = "+5" / >
< / effects >
< / choice >
< choice >
< title > Non è vero< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "security" delta = "-3" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > milva< / name >
< title > Stabilimento MIlva< / title >
< description >
Uno stabilimento della Milva locato a Traranto sta causando un aumento consistente dei casi di cancro in tutta la popolazione la circostante.
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Proponi la chiusura dello stabilimento< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Insisti sulla necessità di mantenere operativo lo stabilimento< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "-10" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< choice >
< title > Istituisci un commissario che si occupi della questione< / title >
< effects >
< goto question = "next" / >
< / effects >
< / choice >
< / question >
< question >
< name > manifestazione< / name >
< title > Manifestazione di fronte a Palazzo Thigi< / title >
< description >
Un gruppo di persone sta generando scompiglio di fronte alla sede della Presidenza del Consiglio, in protesta per le attuali condizioni lavorative.
< br / >
Che cosa fai?
< / description >
< choices >
< choice >
< title > Disperdi i manifestanti< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "security" delta = "+10" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Accetti che una delegazione venga a discutere all'interno del Palazzo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "security" delta = "-5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > misureSanitarie< / name >
< title > Misure sanitarie< / title >
< description >
Il Ministro della Salute ti chiede di stanziare fondi per misure sanitarie più stringenti
< br / >
Cosa decidi?
< / description >
< choices >
< choice >
< title > Accetti la richiesta, nonostante il costo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Ritieni che sia una condizione già in atto< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "health" delta = "-10" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > Monsatero< / name >
< title > Monastero< / title >
< description >
2021-05-19 22:07:25 +02:00
Il Phapa ti propone la ristrutturazione di un antico monastero situato sugli Appendini. Uhmm....
2021-05-08 19:11:16 +02:00
< / description >
< choices >
< choice >
< title > Acconsenti e concedi il denaro< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Declini, invitando il Phapa ad attuare il rinnovamento del monastero con i propri fondi< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > open< / name >
< title > Open Source< / title >
< description >
Il ministro per la trasformazione digitale propone di imporre l'utilizzo di software open source per tutti gli enti pubblici
< / description >
< choices >
< choice >
< title > Cambiate tutto subito< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-15" / >
< / effects >
< / choice >
< choice >
< title > No, è troppo complicato< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< choice >
< title > Procediamo con un cambiamento graduale< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "security" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > ostruzionismo< / name >
< title > Ostruzionismo in parlamento< / title >
< description >
Il partito %randPartyName% si oppone alla messa in atto di misure restrittive da parte del tuo governo.
%randPartySecretary%, in un'intervista radiofonica ha dichiarato
«%playerName% è un incompetente autoritario e deve essere fermato il prima possibile»
Come pensi di reagire a quest'accusa
< / description >
< choices >
< choice >
< title > Cerca di negoziare con %randPartyName%< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "health" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Prenditi gioco di %randPartySecretary% in diretta televisiva in un programma di Phazio< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "health" delta = "+5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > petroliera< / name >
< title > Petroliera incagliata< / title >
< description >
Un nave che trasportava petrolio ha riportato una faglia nello scafo dopo essersi scontrata ed incagliata nella costa amalfitana, cominciando a riversare il suo contenuto nel mare.
< br / >
Cosa fai?
< / description >
< choices >
< choice >
< title > Ottieni che la nave venga riparata< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Non prendi altre contromisure< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > ponte< / name >
< title > Crollo ponte Gianni< / title >
< description >
Il Ponte Gianni è crollato da un mese ormai. I cittadini ti chiedono di trovare il colpevole Come desideri procedere?
< / description >
< choices >
< choice >
< title > Attui un procedimento volto a trovare i reali responsabili, anche se costoso< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< set who = "levels" what = "security" delta = "+5" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Fuori dal mio governo< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< set who = "levels" what = "security" delta = "-5" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > randomChemistryTrivia< / name >
< title > Acido perclorico< / title >
2021-04-04 23:55:21 +02:00
< description >
2021-05-19 22:07:25 +02:00
Qual è di questi?
2021-05-08 19:11:16 +02:00
< / description >
2021-04-04 23:55:21 +02:00
< choices >
< choice >
2021-05-08 19:11:16 +02:00
< title > HClO3< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > HClO4< / title >
2021-04-04 23:55:21 +02:00
< effects >
< goto question = "next" / >
2021-05-08 19:11:16 +02:00
< set who = "levels" what = "consensus" delta = "+10" / >
< / effects >
< / choice >
< choice >
< title > HClO2< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
2021-04-04 23:55:21 +02:00
< / effects >
< / choice >
< / choices >
2021-05-08 19:11:16 +02:00
< / question >
< question >
< name > Riciclaggio< / name >
< title > Riciclaggio< / title >
2021-04-04 23:55:21 +02:00
< description >
2021-05-08 19:11:16 +02:00
Il Ministro dell'economia Fabrizio Briziti chiede di aiutarlo a riciclare del denaro proveniente dallo spaccio di droga.
< br / >
Come ti comporti?
< / description >
2021-04-04 23:55:21 +02:00
< choices >
< choice >
2021-05-08 19:11:16 +02:00
< title > Accetti la richiesta, consapevole dell'incentivo al commercio di droga< / title >
2021-04-04 23:55:21 +02:00
< effects >
< goto question = "next" / >
2021-05-08 19:11:16 +02:00
< set who = "levels" what = "health" delta = "-10" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< choice >
< title > Rifiuti la richiesta e denunci il Ministro< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
2021-04-04 23:55:21 +02:00
< / effects >
< / choice >
< / choices >
2021-05-08 19:11:16 +02:00
< / question >
< question >
< name > riforma< / name >
< title > Riforma< / title >
2021-04-04 23:55:21 +02:00
< description >
2021-05-08 19:11:16 +02:00
L'Europa ti chiede una serie di riforme sul piano economico
< br / >
Come desideri procedere?
< / description >
2021-04-04 23:55:21 +02:00
< choices >
< choice >
2021-05-08 19:11:16 +02:00
< title > Si è vero, sono necessarie, ma non tutti potrebbero comprenderne l'efficacia< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "economy" delta = "+10" / >
< / effects >
< / choice >
< choice >
< title > No, non servono< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+10" / >
< set who = "levels" what = "economy" delta = "-10" / >
< / effects >
< / choice >
< choice >
< title > Basta, fuori dall'Europa< / title >
2021-04-04 23:55:21 +02:00
< effects >
< goto question = "next" / >
2021-05-08 19:11:16 +02:00
< set who = "levels" what = "consensus" delta = "-10" / >
< set who = "levels" what = "economy" delta = "-15" / >
< set who = "levels" what = "security" delta = "-15" / >
< set who = "levels" what = "health" delta = "-10" / >
2021-04-04 23:55:21 +02:00
< / effects >
< / choice >
< / choices >
2021-05-08 19:11:16 +02:00
< / question >
< question >
< name > scandola< / name >
< title > Scandalo di governo< / title >
2021-04-04 23:55:21 +02:00
< description >
2021-05-08 19:11:16 +02:00
Il tuo ministro dell'interno, Giovanni Giorgio è sotto inchiesta per corruzione e abuso d'ufficio.
< br / >
Come desideri procedere?
< / description >
< choices >
< choice >
< title > Rimane in ufficio finchè condannato< / title >
< effects >
< goto scene = "scandolaStay" / >
< / effects >
< / choice >
< choice >
< title > Fuori dal mio governo< / title >
< effects >
< goto scene = "scandolaGo" / >
< / effects >
< / choice >
< / choices >
< / question >
2021-04-04 23:55:21 +02:00
< question >
2021-05-08 19:11:16 +02:00
< name > terremoto< / name >
< title > Terremoto nelle SMarche< / title >
2021-04-04 23:55:21 +02:00
< description >
2021-05-08 19:11:16 +02:00
Terremoto nelle SMarche < br / >
Come desideri procedere?
< / description >
< choices >
< choice >
< title > Ti rechi personalmente sul luogo e prometti aiuto e sostegni< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "+5" / >
< / effects >
< / choice >
< choice >
< title > Lo consideri uno spreco del tuo tempo e rimani in ufficio< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "consensus" delta = "-5" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > vaccino1< / name >
< title > Vaccino non testato< / title >
< description >
Un Paese straniero ti propone di utilizzare su larga scala un vaccino non testato sulla tua popolazione.
< br / >
Come ti comporti?
< / description >
< choices >
< choice >
< title > Ti dichiari favorevole< / title >
< effects >
< goto scene = "randVacc" / >
< / effects >
< / choice >
< choice >
< title > Ti dichari sfavorevole< / title >
< effects >
< goto question = "next" / >
< set who = "levels" what = "security" delta = "+10" / >
< set who = "levels" what = "consensus" delta = "-10" / >
< / effects >
< / choice >
< / choices >
< / question >
< question >
< name > vescovo< / name >
< title > Vescovo di Napoly< / title >
< description >
Il vescovo di Napoly è stato accusato di molestie sessuali da parte di un gruppo di giovani ragazzi. Egli ti chiede di insabbiare la questione < br / >
Come ti comporti?
< / description >
2021-04-04 23:55:21 +02:00
< choices >
< choice >
2021-05-08 19:11:16 +02:00
< title > Accetti la richiesta e insabbi la questione< / title >
2021-04-08 09:48:09 +02:00
< effects >
2021-05-08 19:11:16 +02:00
< goto scene = "randVesc" / >
2021-04-08 09:48:09 +02:00
< / effects >
2021-04-04 23:55:21 +02:00
< / choice >
< choice >
2021-05-08 19:11:16 +02:00
< title > Rifiuti la richiesta e lo denunci pubblicamente, pur sapendo lo scompiglio che ciò porterebbe< / title >
2021-04-04 23:55:21 +02:00
< effects >
2021-05-08 19:11:16 +02:00
< goto question = "next" / >
< set who = "levels" what = "security" delta = "-5" / >
< set who = "levels" what = "consensus" delta = "+10" / >
2021-04-04 23:55:21 +02:00
< / effects >
< / choice >
< / choices >
< / question >
2021-05-08 19:11:16 +02:00
2021-04-04 23:55:21 +02:00
< / questions >
< / sections >
< parties >
< party >
< name > partito_giallo< / name >
< title > Partito Giallo< / title >
< secretary > Domenico Sansovino< / secretary >
< description > Un partito di centro moderato< / description >
< motto > Viva la libertàaaaa iaaaaaaaa< / motto >
< / party >
< party >
< name > no_al_5g< / name >
< title > No al 5G< / title >
< secretary > Giovanna Vogheri< / secretary >
2021-05-08 19:11:16 +02:00
< description > Un partito il cui interesse esclusivo è bandire il 5G, quale emissario di Satana< / description >
2021-04-04 23:55:21 +02:00
< motto > Uniti nella nostra APERTURA MENTALE< / motto >
< / party >
< party >
< name > partito_anarchico< / name >
< title > Partito anarchico< / title >
< secretary > Carlo Massimo< / secretary >
< description > Fanno quello che vogliono< / description >
< motto > Siamo anarchici ma non quando votiamo< / motto >
< / party >
< party >
< name > il_popolo_delle_mamme< / name >
< title > Il popolo delle mamme< / title >
< secretary > Silvia Pavesini< / secretary >
< description > Anche questi fanno quello che vogliono < / description >
< motto > I bambiniiiiiiiii< / motto >
< / party >
< party >
< name > laser< / name >
< title > Laser a cinqui euri< / title >
< secretary > Aieie Brasorx< / secretary >
< description > Usano i laser in parlamento per accecare l'opposizione< / description >
< motto > Solo a cinqui euri, beli i laser< / motto >
< / party >
< party >
< name > totocalcio< / name >
< title > Totocalcio< / title >
< secretary > Toto Rinaldi< / secretary >
< description > Scommettono sulla loro vittoria, per ora hanno solo perso< / description >
< motto > Scommetti sul tuo futuro (nel frattempo organizziamo i brogli)< / motto >
< / party >
< party >
< name > forza_vecchia< / name >
< title > Forza Vecchia< / title >
< secretary > Federico VII di Salerno< / secretary >
< description > Medievisti puri< / description >
< motto > Si stava meglio quando si stava peggio< / motto >
< / party >
< party >
< name > Ikea< / name >
< title > Sveglia dell' IKEA< / title >
< secretary > Äntligen Färgglad< / secretary >
< description > Nessuno capisce quello che dicono< / description >
< motto > När är det bäst att besöka oss?< / motto >
< / party >
< party >
< name > sedia girevole< / name >
< title > Sedia Girevole< / title >
< secretary > Francesco Eppson< / secretary >
< description > Girano tutto il giorno in parlamento sulle poltrone< / description >
< motto > Uiiiiiiiii haha< / motto >
< / party >
< party >
< name > basta_powerpoint< / name >
< title > Basta PowePoint< / title >
< secretary > Stefano Mansioni< / secretary >
< description > Odiano PowePoint< / description >
< motto > BASTA POWERPOINT BASTAAAAAAAAAA: Usate Prezi por favor< / motto >
< / party >
< / parties >
2021-05-08 19:11:16 +02:00
< viruses >
< virus >
< name > covvidi-21< / name >
< title > COVIDDI-21< / title >
< levels >
< Rt > 1< / Rt >
< lethality > 2.5< / lethality >
< / levels >
< infoboxes >
2021-05-19 22:07:25 +02:00
< infobox > Gli scienziati dell'Accademia di Salomone hanno scoperto un nuovo coronavirus. Esso è un virus ad RNA che si trasmette per via aerea ed è potenzialmente pandemico< / infobox >
2021-05-08 19:11:16 +02:00
< infobox > I sintomi inziali sono solitamente tosse, febbre, mal di testa e vomito, ma le conseguenze possono essere ben più gravi.< / infobox >
< infobox > L'Istituto Nazionale di Statistica ha calcolato che questo virus ha una letalità del 1% e un Rt di 2,5. Gli esperti ti chiedono di adottare misure di sicurezza per ridurne la diffusione< / infobox >
< infobox > Secondo le ricerche condotte dall'Accademia di Salomone, questo virus è fuggito dal laboratorio di microbiologia "Matteo Koothrappali"< / infobox >
< infobox > Grazie al lavoro del team di Roberto Marconi è stato scoperto il meccanismo di azione del virus, basato sulla proteina NIKE< / infobox >
< infobox > Dopo un accurata indagine realizzata dall'Accademia di Salomone in collaborazione con i servizi segreti, si è scoperto che in realtà questo virus viene dagli armadilli< / infobox >
< infobox > È stato scoperto un vaccino!< / infobox >
< / infoboxes >
< mutations >
< mutation >
< name > toriniese< / name >
< title > Variante toriniese< / title >
< description > Nella periferia di Torinia, abitata da molti no-mask, si è sviluppata una nuova variante del virus, ancora più contagiosa< / description >
< levels >
< Rt > 0.9< / Rt >
< lethality > 3.5< / lethality >
< / levels >
< / mutation >
< mutation >
< name > turcomanna< / name >
< title > Variante turcomanna< / title >
< description > È stata scoperta una nuova variante del virus proveniente dalla fiera nazionale del cavallo turcomanno. È meno molto più mortale. Metti al riparo gli anziani e le categorie fragili!< / description >
< levels >
< Rt > 1,5< / Rt >
< lethality > 10< / lethality >
< / levels >
< / mutation >
< mutation >
< name > pasquale< / name >
< title > Variante pasquale< / title >
< description > Durante le celebrazioni religiose pasquali si è diffusa una nuova variante. È molto più pericolosa delle altre e sarà difficile estirparla< / description >
< levels >
< Rt > 3< / Rt >
< lethality > 10< / lethality >
< / levels >
< / mutation >
< mutation >
< name > falciforme< / name >
< title > Variante falciforme< / title >
< description > Questa variante si chiama così per la strana forma che assume la proteina NIKE modificata. Molto contagiosa ma con una mortalità molto più bassa.< / description >
< levels >
< Rt > 3,5< / Rt >
< lethality > 0,5< / lethality >
< / levels >
< / mutation >
< mutation >
< name > vip< / name >
< title > Variante vip< / title >
< description > I locali mondani dell'isola della Gherba non hanno rispettato il tuo ultimo DPCM, per questo si è diffusa una nuova variante< / description >
< levels >
< Rt > 2< / Rt >
< lethality > 2,75< / lethality >
< / levels >
< / mutation >
< / mutations >
< / virus >
< / viruses >
2021-04-04 23:55:21 +02:00
< misc >
2021-05-19 22:07:25 +02:00
< welcomeMessage scrollDelay = "400" duration = "10" direction = "up" >
Araldia, 2312
----Stampa associata----
Il nuovo presidente si insedia, il paese attende ansioso cambiamenti dal governo
2021-04-04 23:55:21 +02:00
< / welcomeMessage >
< / misc >
< / Araldia >
`;
2021-05-08 19:11:16 +02:00
var lastEff = [];
var deadlyError = false;
function chunkString(str, length) {
return str.match(new RegExp('.{1,' + length + '}', 'g'));
}
function brLine(lines) {
return "< p class = \"wbr\" > " + lines + "< / p > ";
}
// allow for nested structured data through "|" operator
function rdRead(who, how) {
var v = gameVars[randomInteger(0, Object.keys(gameVars).length - 1)];
}
function recurseset(who, what, delta = null, to = null) {
var evalSensitive = "";
}
function selBuilder(dName, arrselector) {
var begin = dName, list = arrselector.split("|");
for (var i = 0; i < list.length ; i + + ) {
if (list[i] == "rand") begin += "[randomInteger(0," + begin + ".length)]";
else if (!isNaN(parseInt(list[i]))) begin += "[" + list[i] + "]";
else begin += "[\"" + list[i] + "\"]";
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
return begin;
}
function recurseget(who, what) {
2021-05-19 22:07:25 +02:00
//deprecated
2021-05-08 19:11:16 +02:00
var ac = what.split("|")
if (gameVars[who] == undefined) gameVars[who] = {};
var cVal = gameVars[who][what[0]];
for (var i = 1; i < ac.length ; i + + ) {
if (parseInt(ac[i])) cVal = cVal[parseInt(ac[i])];
else if (ac[i] == "rand") cVal = cVal[randomInteger(0, cVal.length)];
else cVal = cVal[ac[i]];
if (cVal === undefined) cVal = {};
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
if (cVal === undefined) return null;
return cVal;
}
2021-04-08 09:48:09 +02:00
function gvRead(who, what) {
2021-05-19 22:07:25 +02:00
if (gameVars[who] == undefined) return 0;
if (gameVars[who][what] == undefined) return 0;
return gameVars[who][what] ;
2021-04-08 09:48:09 +02:00
}
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
2021-04-04 23:55:21 +02:00
function print(who, what) {
2021-04-08 09:48:09 +02:00
return gvRead(who, what) ? gvRead(who, what) : "";
2021-04-04 23:55:21 +02:00
}
function set(who, what, delta = null, to = null) {
2021-04-08 09:48:09 +02:00
if (gameVars[who] == undefined) gameVars[who] = {};
2021-04-04 23:55:21 +02:00
if (delta != null) {
2021-04-08 09:48:09 +02:00
if (gameVars[who][what] == undefined) gameVars[who][what] = 0;
gameVars[who][what] += parseInt(delta);
2021-04-04 23:55:21 +02:00
}
else {
gameVars[who][what] = to;
}
2021-05-08 19:11:16 +02:00
if (who == "levels") {
if (parseInt(gvRead(who, what)) > 100) {
2021-04-08 09:48:09 +02:00
gameVars[who][what] = 100;
}
2021-05-08 19:11:16 +02:00
else if (parseInt(gvRead(who, what)) < 0 ) {
gameVars[who][what] = 0;
2021-05-19 22:07:25 +02:00
gameOver();
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
if (who == "levels") updateLevelGraphically(what, gameVars[who][what])
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
else if (who == "virus" & & what == "letality" || what == "hospitalizationRate" || what == "transmissionSpeed") {
if (parseInt(gvRead(who, what)) > 100) {
2021-04-08 09:48:09 +02:00
gameVars[who][what] = 100;
}
2021-05-08 19:11:16 +02:00
else if (parseInt(gvRead(who, what)) < 0 ) {
2021-04-08 09:48:09 +02:00
gameVars[who][what] = 100;
}
}
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
function createXPathFromElement(elm) {
var allNodes = document.getElementsByTagName('*');
for (var segs = []; elm & & elm.nodeType == 1; elm = elm.parentNode) {
if (elm.hasAttribute('id')) {
var uniqueIdCount = 0;
for (var n = 0; n < allNodes.length ; n + + ) {
if (allNodes[n].hasAttribute('id') & & allNodes[n].id == elm.id) uniqueIdCount++;
if (uniqueIdCount > 1) break;
};
if (uniqueIdCount == 1) {
segs.unshift('id("' + elm.getAttribute('id') + '")');
return segs.join('/');
} else {
segs.unshift(elm.localName.toLowerCase() + '[@id="' + elm.getAttribute('id') + '"]');
}
} else if (elm.hasAttribute('class')) {
segs.unshift(elm.localName.toLowerCase() + '[@class="' + elm.getAttribute('class') + '"]');
} else {
for (i = 1, sib = elm.previousSibling; sib; sib = sib.previousSibling) {
if (sib.localName == elm.localName) i++;
};
segs.unshift(elm.localName.toLowerCase() + '[' + i + ']');
};
};
return segs.length ? '/' + segs.join('/') : null;
};
2021-05-08 19:11:16 +02:00
var lIImplCache = 0, partyIndex = 0;
function implicitVreplace(text) {
if (gameVars.player.actionN != lIImplCache) {
lIImplCache=gameVars.player.actionN;
partyIndex=randomInteger(0,gameVars.parties.length-1);
}
text = "< a class = \"partyH\" data-party-index = \""+partyIndex+"\" > "+text.replace("%randPartyName%", gameVars.parties[partyIndex].name)+"< / a > ";
text = "< a class = \"partyH\" data-party-index = \""+partyIndex+"\" > "+text.replace("%randPartySecretary%", gameVars.parties[partyIndex].secretary)+"< / a > ";
text = text.replace("%playerName%",gameVars.player.name );
return text;
}
2021-04-04 23:55:21 +02:00
2021-04-08 09:48:09 +02:00
function cTagRecursive(tag, iteration = (-1)) {
iteration++;
if (iteration == 0) {
/*cleanup*/
var l = tag.getElementsByTagName("sectionGroup");
for (var it = 0; it < l.length ; it + + ) {
2021-05-08 19:11:16 +02:00
l[it].made = false;
2021-04-08 09:48:09 +02:00
}
}
html = "";
var currentTag = null, quitDo = false;
for (var i = 0; tag.childNodes.length; i++) {
2021-04-04 23:55:21 +02:00
currentTag = tag.childNodes[i];
2021-04-08 09:48:09 +02:00
if (currentTag == undefined) return html;
if (currentTag.nodeName == "#comment") continue;
2021-04-04 23:55:21 +02:00
if (currentTag.nodeName == "#text") {
2021-04-08 09:48:09 +02:00
var p = currentTag.parentNode;
while (p != null & & p.nodeName != "description" & & p.nodeName != "title" & & p.nodeName != "section") {
p = p.parentNode;
}
if (p == null) continue;
switch (p.nodeName) {
case "description":
2021-05-08 19:11:16 +02:00
html += brLine(implicitVreplace(currentTag.textContent)) + "< br / > ";
2021-04-08 09:48:09 +02:00
break;
case "title":
2021-05-08 19:11:16 +02:00
if (p.parentNode.nodeName == "choice") continue;
html += "< h3 > " + implicitVreplace(currentTag.textContent) + "< / h3 > < br / > ";
2021-04-08 09:48:09 +02:00
break;
case "section":
2021-05-08 19:11:16 +02:00
html += brLine(implicitVreplace(currentTag.textContent)) + "< br / > ";
2021-04-08 09:48:09 +02:00
break;
}
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (currentTag.nodeName == "if" || currentTag.nodeName == "elseif") {
2021-05-08 19:11:16 +02:00
if (currentTag.parentNode.nodeName == "event" || currentTag.parentNode.nodeName == "question" || currentTag.parentNode.nodeName == "scene" & & currentTag.childNodes.length == 0) {
2021-04-08 09:48:09 +02:00
quitDo = true;
}
else if (currentTag.parentNode.nodeName == "triggers") {
currentTag.setAttribute("who", "levels");
currentTag.setAttribute("what", currentTag.parentNode.parentNode.getElementsByTagName("name")[0].textContent);
}
2021-04-04 23:55:21 +02:00
if (currentTag.hasAttribute("is")) {
2021-04-08 09:48:09 +02:00
if (currentTag.attributes["is"].value == gvRead(currentTag.attributes["who"].value, currentTag.attributes["what"].value)) {
html += cTagRecursive(currentTag, iteration);
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (quitDo) {
return false;
}
2021-04-04 23:55:21 +02:00
}
else if (currentTag.hasAttribute("lessThan")) {
2021-04-08 09:48:09 +02:00
if (currentTag.attributes["lessThan"].value < gvRead ( currentTag . attributes [ " who " ] . value , currentTag . attributes [ " what " ] . value ) ) {
html += cTagRecursive(currentTag, iteration);
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (quitDo) {
return false;
}
2021-04-04 23:55:21 +02:00
}
else if (currentTag.hasAttribute("moreThan")) {
2021-04-08 09:48:09 +02:00
if (currentTag.attributes["moreThan"].value > gvRead(currentTag.attributes["who"].value, currentTag.attributes["what"].value)) {
html += cTagRecursive(currentTag, iteration);
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (quitDo) {
return false;
}
2021-04-04 23:55:21 +02:00
}
else if (currentTag.hasAttribute("lessOrEqual")) {
2021-04-08 09:48:09 +02:00
if (currentTag.attributes["lessOrEqual"].value < = gvRead(currentTag.attributes["who"].value, currentTag.attributes["what"].value)) {
html += cTagRecursive(currentTag, iteration);
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (quitDo) {
return false;
}
2021-04-04 23:55:21 +02:00
}
else if (currentTag.hasAttribute("moreOrEqual")) {
2021-04-08 09:48:09 +02:00
if (currentTag.attributes["moreOrEqual"].value >= gvRead(currentTag.attributes["who"].value, currentTag.attributes["what"].value)) {
html += cTagRecursive(currentTag, iteration);
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (quitDo) {
return false;
}
}
else if (quitDo) {
return false;
2021-04-04 23:55:21 +02:00
}
}
2021-04-08 09:48:09 +02:00
else if (currentTag.nodeName == "section") {
if (currentTag.parentNode.made) continue;
var doForce = false;
2021-05-08 19:11:16 +02:00
if (currentTag.parentNode.nodeName == "sectionGroup" & & /* deprecated currentTag.parentNode.attributes["atLeastOne"].value == "true"*/ true) {
2021-04-08 09:48:09 +02:00
var c = currentTag.nextSibling;
while (c != null & & c.nodeName != "section") {
c = c.nextSibling;
}
if (c == null) {
doForce = true;
}
}
if (currentTag.attributes["chance"].value < randomInteger ( 0 , 99 ) | | doForce ) {
currentTag.parentNode.made = true;
html += cTagRecursive(currentTag, iteration);
}
}
else if (currentTag.nodeName == "sectionGroup") {
if (currentTag.hasAttribute("chance") || currentTag.attributes["chance"].value < randomInteger ( 0 , 99 ) ) {
html += cTagRecursive(currentTag, iteration);
}
}
2021-05-08 19:11:16 +02:00
else if (currentTag.nodeName == "set" & & currentTag.parentNode.nodeName != "effects") {
2021-04-08 09:48:09 +02:00
if (currentTag.hasAttribute("delta")) set(currentTag.attributes["who"].value, currentTag.attributes["what"].value, currentTag.attributes["delta"].value, null);
else set(currentTag.attributes["who"].value, currentTag.attributes["what"].value, null, currentTag.attributes["to"].value);
}
else if (currentTag.nodeName == "print") {
html += print(currentTag.attributes["who"].value, currentTag.attributes["what"].value);
}
else if (currentTag.nodeName == "goto") {
if (currentTag.hasAttribute("scene")) {
2021-05-08 19:11:16 +02:00
2021-04-08 09:48:09 +02:00
if (currentTag.parentNode.nodeName == "effects") {
2021-05-08 19:11:16 +02:00
var v = "&arr; ";
var c = currentTag.parentNode.parentNode, ic = 0;
while (c != null) {
c = c.previousElementSibling;
if (c != null & & c.nodeName == "choice") ic++;
}
effCompare(currentTag.parentNode, ic);
try {
var t = currentTag.parentNode.parentNode.getElementsByTagName("title")[0];
v = implicitVreplace(t.textContent);
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
catch (e) {
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
html += " < button type = \"button\" class = \"nes-btn is-primary \ " onclick = \"goto('scene','" + currentTag . attributes [ " scene " ] . value + " ' , " + ic + " ) ; \ " > " + v + "< / button > ";
2021-04-08 09:48:09 +02:00
continue;
}
var child = window.cats.getElementsByTagName("scenes")[0].children;
for (var i = 0; i < child.length ; i + + ) {
if (child[i].getElementsByTagName("name")[0].textContent == currentTag.attributes["scene"].value) {
2021-05-08 19:11:16 +02:00
//console.log(child[i]);
2021-04-08 09:48:09 +02:00
html += cTagRecursive(child[i], iteration);
break;
}
}
2021-04-04 23:55:21 +02:00
}
2021-04-08 09:48:09 +02:00
else if (currentTag.hasAttribute("question")) {
if (currentTag.parentNode.nodeName == "effects") {
2021-05-08 19:11:16 +02:00
var v = "&arr; ";
var c = currentTag.parentNode.parentNode, ic = 0;
while (c != null) {
//console.log(c);
c = c.previousElementSibling;
if (c != null & & c.nodeName == "choice") ic++;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
effCompare(currentTag.parentNode, ic);
try {
var t = currentTag.parentNode.parentNode.getElementsByTagName("title")[0];
v = implicitVreplace(t.textContent);
}
catch (e) {
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
html += " < button type = \"button\" class = \"nes-btn is-primary \ " onclick = \"goto('question','" + currentTag . attributes [ " question " ] . value + " ' , " + ic + " ) ; \ " > " + v + "< / button > ";
continue;
}
if (currentTag.attributes["question"].value == "next") {
Q();
2021-04-08 09:48:09 +02:00
continue;
}
var child = window.cats.getElementsByTagName("questions")[0].childNodes;
for (var i = 0; i < child.length ; i + + ) {
2021-05-08 19:11:16 +02:00
if (child[i].nodeName == "question") continue;
if (child[i].getElementsByTagName("name")[0].textContent == currentTag.attributes["question"].value) {
2021-04-08 09:48:09 +02:00
html = "";
html += cTagRecursive(child[i], iteration);
break;
}
}
}
else if (currentTag.hasAttribute("event")) {
if (currentTag.hasAttribute("scene")) {
if (currentTag.parentNode.nodeName == "effects") {
2021-05-08 19:11:16 +02:00
var v = "&arr; ";
var c = currentTag.parentNode.parentNode, ic = 0;
while (c != null) {
c = c.previousElementSibling;
if (c != null & & c.nodeName == "choice") ic++;
}
effCompare(currentTag.parentNode, ic);
try {
var t = currentTag.parentNode.parentNode.getElementsByTagName("title")[0];
v = implicitVreplace(t.textContent);
}
catch (e) {
2021-04-08 09:48:09 +02:00
2021-05-08 19:11:16 +02:00
}
html += " < button type = \"button\" class = \"nes-btn is-primary \ " onclick = \"goto('event','" + currentTag . attributes [ " event " ] . value + " ' , " + ic + " ) ; \ " > " + v + "< / button > ";
continue;
2021-04-08 09:48:09 +02:00
}
var child = window.cats.getElementsByTagName("events")[0].childNodes;
for (var i = 0; i < child.length ; i + + ) {
if (child[i].getElementsByTagName("name") == currentTag.attributes["event"].value) {
html = "";
html += cTagRecursive(child[i], iteration);
break;
}
}
}
}
}
else {
html += cTagRecursive(currentTag, iteration);
2021-04-04 23:55:21 +02:00
}
}
2021-04-08 09:48:09 +02:00
2021-04-04 23:55:21 +02:00
return html;
}
2021-05-08 19:11:16 +02:00
function upGrData(){
virus=gameVars["virus"];
$("#vName").html(virus["title"]);
//$("#vDesc").html(virus["description"]);
var data = google.visualization.arrayToDataTable([
['Categoria', 'Persone'],
['Sani', virus["people"]["healthy"]],
['Infetti', virus["people"]["infected"]],
['Immuni', virus["people"]["immune"]],
['Morti', virus["people"]["dead"]]
]);
var options = {
title: 'CTS',
backgroundColor: { fill:'transparent' },
2021-05-19 22:07:25 +02:00
color: "white",
chartArea: {
// leave room for y-axis labels
width: '94%'
},
legend: {
position: 'top'
},
width: '100%'
2021-05-08 19:11:16 +02:00
};
chart.draw(data, options);
2021-04-04 23:55:21 +02:00
2021-05-08 19:11:16 +02:00
}
2021-05-19 22:07:25 +02:00
function gameOver(){
audio.src="music/end.mp3";
audio.play();
$("#beginSect2").fadeIn();
$("#mq2").html(`
< pre >
Game Over
Araldia
© 2021
Mattia Mascarello
Diego Scanavino
Giacomo Roggero
Musica: RoleMusic
< / pre >
`);
}
2021-05-08 19:11:16 +02:00
var i = 0, childrenEl = null, tHtml = "",chart=null,tick=0,chart=null;
2021-04-04 23:55:21 +02:00
parser = new DOMParser();
xmlDoc = parser.parseFromString(text, "text/xml");
var cats = xmlDoc.children[0];
2021-05-08 19:11:16 +02:00
initParties();
2021-04-04 23:55:21 +02:00
var values = cats.getElementsByTagName("values")[0];
tHtml = `
< table >
`;
for (i = 0; i < values.childElementCount ; i + + ) {
childrenEl = values.children[i];
2021-05-08 19:11:16 +02:00
//console.log(childrenEl);
2021-05-19 22:07:25 +02:00
tHtml += `< tr id = "` + childrenEl.getElementsByTagName(" name " ) [ 0 ] . textContent + ` " onmouseover = "ttvy(this)" onmouseout = "ttvn(this)" data-desc = "` + childrenEl.getElementsByTagName(" description " ) [ 0 ] . textContent + ` " > < td > ` + childrenEl.getElementsByTagName("title")[0].textContent + `< / td > < td class = "mtW" > < progress class = "nes-progress is-success" style = " width:400px;" min = "` + childrenEl.getElementsByTagName(" min " ) [ 0 ] . textContent + ` " max = "` + childrenEl.getElementsByTagName(" max " ) [ 0 ] . textContent + ` " value = "` + childrenEl.getElementsByTagName(" default " ) [ 0 ] . textContent + ` " > < / progress > < / td > < td > ` + childrenEl.getElementsByTagName("default")[0].textContent +`< / td > < / tr > `;
2021-04-04 23:55:21 +02:00
}
2021-05-08 19:11:16 +02:00
//console.log(tHtml);
2021-04-04 23:55:21 +02:00
tHtml += "< / table > ";
$("#levels").hide();
2021-05-19 22:07:25 +02:00
$("#musicBox").fadeIn();
2021-04-04 23:55:21 +02:00
document.getElementById("levels").innerHTML = tHtml;
$("#begin").click(function () {
2021-05-08 19:11:16 +02:00
set("levels", "health", null, 50);
set("levels", "economy", null, 50);
set("levels", "consensus", null, 50);
set("levels", "security", null, 50);
set("difficulty", $("#dfficultySelect").val());
2021-04-04 23:55:21 +02:00
if ($("#username").val().length == 0) return false;
setTimeout(function () { deAudio(6); }, 100);
$("#mainMenu").fadeOut();
$("#beginSect").fadeIn();
2021-05-08 19:11:16 +02:00
$("#mq").attr("scrolldelay", cats.getElementsByTagName("misc")[0].getElementsByTagName("welcomeMessage")[0].attributes["scrollDelay"].value);
$("#mq").attr("direction", cats.getElementsByTagName("misc")[0].getElementsByTagName("welcomeMessage")[0].attributes["direction"].value);
2021-04-08 09:48:09 +02:00
$("#mq").html(cats.getElementsByTagName("misc")[0].getElementsByTagName("welcomeMessage")[0].textContent);
2021-05-08 19:11:16 +02:00
setTimeout(function () {
2021-04-08 09:48:09 +02:00
$("#levels").fadeIn();
2021-05-08 19:11:16 +02:00
$("#beginSect").fadeOut();
var data = google.visualization.arrayToDataTable([
['Categoria', 'Persone'],
2021-05-19 22:07:25 +02:00
['Sani', 6000000],
2021-05-08 19:11:16 +02:00
['Infetti', 0],
['Immuni', 0],
['Morti', 0]
]);
var options = {
2021-05-19 22:07:25 +02:00
title: 'CTS',
backgroundColor: { fill:'transparent' },
color: "white",
chartArea: {
// leave room for y-axis labels
width: '94%'
},
legend: {
position: 'top'
},
width: '100%'
2021-05-08 19:11:16 +02:00
};
chart= new google.visualization.PieChart(document.getElementById('cts'));
chart.draw(data, options);
initRandVirus(function(){
2021-05-19 22:07:25 +02:00
2021-05-08 19:11:16 +02:00
$("#countV").fadeIn();
audio.src = "music/Rolemusic - The White Frame.mp3";
audio.volume=0;
2021-04-08 09:48:09 +02:00
Q();
setTimeout(function(){
2021-05-08 19:11:16 +02:00
audio.volume=1
audio.play()
},3000);
});
}, cats.getElementsByTagName("misc")[0].getElementsByTagName("welcomeMessage")[0].attributes["duration"].value * 1000);
2021-04-08 09:48:09 +02:00
})
2021-05-08 19:11:16 +02:00
var randMap={};
function randEl(category) {
2021-05-19 22:07:25 +02:00
if(!randMap[category]) randMap[category]=[0];
if(randMap[category].length==cats.getElementsByTagName(category)[0].childElementCount) randMap[category]=[0];
if(tick%5==0) return cats.getElementsByTagName(category)[0].children[0];
var imx=imx=randomInteger(0, cats.getElementsByTagName(category)[0].childElementCount - 1);
2021-05-08 19:11:16 +02:00
while(randMap[category].indexOf(imx)>-1){
2021-05-19 22:07:25 +02:00
imx=randomInteger(0, cats.getElementsByTagName(category)[0].childElementCount - 1);
2021-05-08 19:11:16 +02:00
}
2021-05-19 22:07:25 +02:00
randMap[category].push(imx);
2021-05-08 19:11:16 +02:00
return cats.getElementsByTagName(category)[0].children[imx];
}
function getEl(category, name) {
if (category == "questions" & & name == "next") return Q();
var ets = cats.getElementsByTagName(category)[0].getElementsByTagName("name");
for (var i = 0; i < ets.length ; i + + ) {
if (ets[i].textContent == name) {
2021-04-08 09:48:09 +02:00
return setField(ets[i].parentNode);
2021-05-08 19:11:16 +02:00
}
}
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
function setField(h, i = 0) {
var res = cTagRecursive(h);
deadlyError = true;
if (res === false) return Q();
var tml = "< br / > < br / > < br / > < br / > < br / > < br / > < br / > " + res;
2021-04-08 09:48:09 +02:00
$("#gameField").hide();
$("#gameField").html(tml);
$("#gameField").show();
2021-05-08 19:11:16 +02:00
gameVars.player.actionN++;
}
function Q() {
2021-05-19 22:07:25 +02:00
lastVircb=null;
2021-05-08 19:11:16 +02:00
var h = randEl("questions");
2021-05-19 22:07:25 +02:00
if(tick%5==0 & & tick!=0){
$("#gameField").hide();
gameVars["virus"]["infoboxLastI"] ++;
$("#virusBeginOhNo").show();
var infoId=gameVars["virus"]["infoboxLastI"] ;
var el=cats.getElementsByTagName("viruses")[virusIndex];
try{
var text = el.getElementsByTagName("infoboxes")[0].children[infoId].textContent;
if(text==undefined) throw "un";
}
catch(e){
$("gameField").show();
$("virusBeginOhNo").hide();
}
$("#virusBeginOhNo").html("< br / > < br / > < br / > < br / > < br / > < br / > < br / > < h1 > Bollettino< / h1 > < br / > < p class = \"wbb\" > " + text + "< / p > < button type = \"button\" class = \"okVir nes-btn is-primary \ " > OK< / button > ");
}
2021-04-08 09:48:09 +02:00
setField(h);
2021-05-19 22:07:25 +02:00
2021-05-08 19:11:16 +02:00
/*if(tick%5==0 & & tick!=0) */ calcvir();
tick++;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
window.onerror = function (message, source, lineno, colno, error) {
2021-04-08 09:48:09 +02:00
$("#errorData").html(`
< div class = "nes-table-responsive" >
< table class = "nes-table is-bordered is-centered" style = "height:300px;width:700px;" >
< tr >
< td > Message< / td >
2021-05-08 19:11:16 +02:00
< td > `+ message + `< / td >
2021-04-08 09:48:09 +02:00
< / tr >
< tr >
< td > Source< / td >
2021-05-08 19:11:16 +02:00
< td > `+ source + `< / td >
2021-04-08 09:48:09 +02:00
< / tr >
< tr >
< td > Line and column< / td >
2021-05-08 19:11:16 +02:00
< td > `+ lineno + `:` + colno + `< / td >
2021-04-08 09:48:09 +02:00
< / tr >
2021-04-04 23:55:21 +02:00
2021-04-08 09:48:09 +02:00
< tr >
< td > Error< / td >
2021-05-08 19:11:16 +02:00
< td > `+ error + `< / td >
2021-04-08 09:48:09 +02:00
< / tr >
2021-04-04 23:55:21 +02:00
2021-04-08 09:48:09 +02:00
< / table >
< / div >
`);
$("#error").show();
}
2021-04-04 23:55:21 +02:00
2021-04-08 09:48:09 +02:00
function dragElement(elmnt) {
2021-05-08 19:11:16 +02:00
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
if (document.getElementById(elmnt.id + "header")) {
// if present, the header is where you move the DIV from:
document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
} else {
// otherwise, move the DIV from anywhere inside the DIV:
elmnt.onmousedown = dragMouseDown;
}
function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}
function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}
function closeDragElement() {
// stop moving when mouse button is released:
document.onmouseup = null;
document.onmousemove = null;
}
}
dragElement(document.getElementById("error"));
function goto(cat, name, ic = 0) {
try {
lastEff.forEach(function (a) {
//([a,ic]);
if (a["iC"] != ic) return false;
set(a["who"], a["what"], a["delta"], a["to"]);
});
}
catch (e) {
//console.log(e);
}
lastEff=[];
if (cat == "question" & & name == "next") {
Q();
}
else {
getEl(cat + "s", name);
}
}
2021-04-08 09:48:09 +02:00
2021-05-08 19:11:16 +02:00
var tooltipvisible = false, text = "Mayor Tom, There is something wrong!";
function ttvy(a) {
tooltipvisible = true;
text = a.attributes["data-desc"].value;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
function ttvn(a) {
tooltipvisible = false;
2021-04-08 09:48:09 +02:00
}
2021-05-08 19:11:16 +02:00
//Make the DIV element draggagle:
tooltipel(document.getElementById("tooTpk"));
function tooltipel(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
document.onmousemove = elementDrag;
function elementDrag(e) {
e = e || window.event;
e.preventDefault();
elmnt.style.display = tooltipvisible ? "block" : "none";
document.getElementById("tooltT").innerHTML = text;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (pos4) + "px";
elmnt.style.left = (pos3) + "px";
}
}
function initSplash(i = 0, callback) {
if (i < 80 ) {
setTimeout(function () {
$("#splashImg").css("width", i + "%");
initSplash(i + 1, callback);
}, 100);
}
else {
callback();
}
}
function updateLevelGraphically(id, val) {
var prog = $("#" + id).children(".mtW").children("progress");
prog.attr("value", val);
2021-05-19 22:07:25 +02:00
$("#" + id).children("td").last().html(val );
2021-05-08 19:11:16 +02:00
prog.removeClass("is-success");
prog.removeClass("is-warning");
prog.removeClass("is-error");
if (val > 50) {
prog.addClass("is-success");
}
else if (val > 25) {
prog.addClass("is-warning");
}
else {
prog.addClass("is-error");
}
}
function initParties(){
gameVars["parties"]=[];
var pts=xmlDoc.getElementsByTagName("parties")[0].children;
for(var i=0;i< pts.length ; i + + ) {
gameVars["parties"].push({
"name":pts[i].getElementsByTagName("title")[0].textContent,
"secretary":pts[i].getElementsByTagName("secretary")[0].textContent,
"description":pts[i].getElementsByTagName("description")[0].textContent,
"motto":pts[i].getElementsByTagName("motto")[0].textContent
});
}
}
function effCompare(effectsTag, iC) {
console.log({"Tag":effectsTag,"iC":iC});
var elL = effectsTag.getElementsByTagName("set");
for (var i = 0; i < elL.length ; i + + ) {
var delta = null, to = null;
if (elL[i].hasAttribute("delta")) delta = elL[i].attributes["delta"].value;
if (elL[i].hasAttribute("to")) delta = elL[i].attributes["to"].value;
lastEff.push({ "iC": iC, "who": elL[i].attributes["who"].value, "what": elL[i].attributes["what"].value, "delta": delta, "to": to });
}
}
function calcvir(){
/*
Algoritmo
*/
2021-05-08 23:54:55 +02:00
var peopleTot=6000000,dd=0,inffactor=(0.20+0.01*randomInteger(0,10));
2021-05-08 19:11:16 +02:00
var inf= gameVars["virus"]["people"]["infected"];
gameVars["virus"]["people"]["infected"]=inf*(gameVars["virus"]["Rt"]+1);
gameVars["virus"]["people"]["infected"]-=inf;
gameVars["virus"]["people"]["immune"]+=inf;
dd=Math.floor(inf*gameVars["virus"]["lethality"]/100);
gameVars["virus"]["people"]["dead"]+=dd;
gameVars["virus"]["people"]["immune"]-=dd;
// simulate time to healing, infection by immunes
gameVars["virus"]["people"]["infected"]+=gameVars["virus"]["people"]["immune"]*inffactor;
gameVars["virus"]["people"]["healthy"]=peopleTot-(gameVars["virus"]["people"]["infected"]+gameVars["virus"]["people"]["dead"]+gameVars["virus"]["people"]["immune"]);
if (gameVars["virus"]["people"]["healthy"] < 0 ) gameVars [ " virus " ] [ " people " ] [ " healthy " ] = 0 ;
if (gameVars["virus"]["people"]["infected"] < 0 ) gameVars [ " virus " ] [ " people " ] [ " infected " ] = 0 ;
if (gameVars["virus"]["people"]["dead"] < 0 ) gameVars [ " virus " ] [ " people " ] [ " dead " ] = 0 ;
if (gameVars["virus"]["people"]["immune"] < 0 ) gameVars [ " virus " ] [ " people " ] [ " immune " ] = 0 ;
upGrData();
}
2021-05-19 22:07:25 +02:00
var lastVircb=null,virusIndex=0;
2021-05-08 19:11:16 +02:00
function initRandVirus(cb) {
lastVircb=cb;
setTimeout(function(){
audio.src="music/improvisation.mp3";
audio.volume=1;
audio.play()
2021-05-19 22:07:25 +02:00
10},1000);
var li = window.cats.getElementsByTagName("viruses")[0].children;
2021-05-08 19:11:16 +02:00
var Iindex = randomInteger(0, li.length - 1);
2021-05-19 22:07:25 +02:00
virusIndex=Iindex;
2021-05-08 19:11:16 +02:00
var el = li[Iindex];
var title = el.getElementsByTagName("title")[0].textContent;
var text = el.getElementsByTagName("infoboxes")[0].children[0].textContent;
var nT = randomInteger(100, 500);
gameVars["virus"] = {};
gameVars["virus"]["people"]={};
gameVars["virus"]["people"]["dead"]=0;
gameVars["virus"]["people"]["immune"]=0;
gameVars["virus"]["people"]["infected"]=randomInteger(30,200);
2021-05-19 22:07:25 +02:00
gameVars["virus"]["people"]["healthy"]=6000000;
2021-05-08 19:11:16 +02:00
gameVars["virus"]["title"] = title;
gameVars["virus"]["infoboxLastI"] = 0;
2021-05-19 22:07:25 +02:00
// deprecated gameVars["virus"]["stepsBeforeShowDashboard"] = randomInteger(3, 10);
2021-05-08 19:11:16 +02:00
gameVars["virus"]["dashboardShown"] = false;
gameVars["virus"]["Iindex"] = Iindex;
gameVars["virus"]["lethality"] = parseFloat(el.getElementsByTagName("levels")[0].getElementsByTagName("lethality")[0].textContent);
gameVars["virus"]["Rt"] = parseFloat(el.getElementsByTagName("levels")[0].getElementsByTagName("Rt")[0].textContent)
$("#gameField").hide();
$("#virusBeginOhNo").html("< br / > < br / > < br / > < br / > < br / > < br / > < br / > < h1 > " + title + "< / h1 > < br / > < p class = \"wbb\" > " + text + "< / p > < button type = \"button\" class = \"okVir nes-btn is-primary \ " > OK< / button > ");
}
$(document).delegate(".okVir","click",function(){
$(this).closest(".closableVir").fadeOut();
if(lastVircb) lastVircb();
});
2021-05-09 13:57:27 +02:00
< / script >