home *** CD-ROM | disk | FTP | other *** search
- var secrets = 0;
- if(!_root.secretsFound[0])
- {
- s1._visible = false;
- }
- else
- {
- secrets++;
- }
- if(!_root.secretsFound[1])
- {
- s2._visible = false;
- }
- else
- {
- secrets++;
- }
- if(!_root.secretsFound[2])
- {
- s3._visible = false;
- }
- else
- {
- secrets++;
- }
- if(!_root.secretsFound[3])
- {
- s4._visible = false;
- }
- else
- {
- secrets++;
- }
- if(!_root.secretsFound[4])
- {
- s5._visible = false;
- }
- else
- {
- secrets++;
- }
- if(!_root.secretsFound[5])
- {
- s6._visible = false;
- }
- else
- {
- secrets++;
- }
- if(secrets < 1)
- {
- emo = ":(";
- }
- else if(secrets >= 1 && secrets < 2)
- {
- emo = ":/";
- }
- else if(secrets >= 2 && secrets < 6)
- {
- emo = ":)";
- }
- else
- {
- emo = ":D";
- }
- if(secrets >= 6)
- {
- _root.medalsEarned[3] = true;
- _root.kongregateStats.submit("MindScapeOverlord",1);
- }
- txtStatistic.text = "You\'ve found " + secrets + " of 6 secret items! " + emo;
- onEnterFrame = function()
- {
- var _loc1_ = _root;
- if(s1.hitTest(_loc1_._xmouse,_loc1_._ymouse,true) && _loc1_.secretsFound[0])
- {
- txtDescr.text = "Why are you wearing that stupid boy suit?";
- }
- else if(s2.hitTest(_loc1_._xmouse,_loc1_._ymouse,true) && _loc1_.secretsFound[1])
- {
- txtDescr.text = "See no evil, hear no evil, say no evil...";
- }
- else if(s3.hitTest(_loc1_._xmouse,_loc1_._ymouse,true) && _loc1_.secretsFound[2])
- {
- txtDescr.text = "I was cured, all right.";
- }
- else if(s4.hitTest(_loc1_._xmouse,_loc1_._ymouse,true) && _loc1_.secretsFound[3])
- {
- txtDescr.text = "Lemme guess, the princess is in another castle...";
- }
- else if(s5.hitTest(_loc1_._xmouse,_loc1_._ymouse,true) && _loc1_.secretsFound[4])
- {
- txtDescr.text = "So you found the meaning of life. Now what?";
- }
- else if(s6.hitTest(_loc1_._xmouse,_loc1_._ymouse,true) && _loc1_.secretsFound[5])
- {
- txtDescr.text = "If you hate yourself you\'ll have to hug yourself.";
- }
- else
- {
- txtDescr.text = "";
- }
- };
-