Magic Forums

Forums -> Comments -> Re: Fortune telling "Fluff"?
You are not currenly logged in. Please log in or register with us and you will be able to comment on this or any other article on the website.
Original Post:
by: Shek on Jun 23, 2013

Um... as i said in my introduction, i don't like fake (or as called here, "fluff") spells and so on. Thats why i was surprised when, looking around on the site, i found the following:

[b]function AskMora() {
objPage=document.getElementById('morasays');
objPage.style.visibility = 'visible';
objPage=document.getElementById('morasays1');
objPage.style.visibility = 'hidden';
objPage=document.getElementById('morasays2');
objPage.style.visibility = 'hidden';
objPage=document.getElementById('morasays3');
objPage.style.visibility = 'hidden';
objPage=document.getElementById('morasays4');
objPage.style.visibility = 'hidden';
setTimeout("MorasAnswer()",1500);
}
function MorasAnswer() {
objPage=document.getElementById('morasays1');
objPage.style.visibility = 'hidden';
objPage=document.getElementById('morasays2');
objPage.style.visibility = 'hidden';
objPage=document.getElementById('morasays3');
objPage.style.visibility = 'hidden';
objPage=document.getElementById('morasays4');
objPage.style.visibility = 'hidden';
num=(Math.round(Math.random()*4)+1);
if (num>4) num=1;
objPage=document.getElementById('morasays'+num);
objPage.style.visibility = 'visible';
}[/b]

For these that do not understand code: i think the fortunetelling thing that the beginner's guide leads to, is a fluff.

num=(Math.round(Math.random()*4)+1); Means that the answer is chosen at random.

I might have made a mistake, as my programming skills are bad, so please, if i did, point it out, and why my conclusion is wrong. Until then, i will have to believe the fortunetelling thing is fluff.