home *** CD-ROM | disk | FTP | other *** search
- statement = new Array();
- statement[0] = "";
- statement[1] = "The peasants aren\'t paying their taxes!";
- statement[2] = "";
- statement[3] = "Go forth and beat the gold out of them!";
- statement[4] = "";
- statement[5] = "The harder you swing, the more gold I\'ll get!";
- statement[6] = "";
- statement[7] = "The Queen needs a ";
- statement[8] = "";
- statement[9] = "Why are you still here?";
- statement[10] = "";
- statement[11] = "Get me all the gold or you\'re fired!";
- statement[12] = "";
- statement[13] = "Why are my lips still moving?";
- statement[14] = "";
- randoms = new Array("new pair of shoes!","swimming pool!","botox injection!","gold-plated handbag!");
- curstatement = 0;
- wait = 0;
- mouthwait = 0;
- story.mouth.stop();
- talk = new Sound(_root.sounds.talkmc);
- talk.attachSound("kingtalk");
- bubbleOnEnterFrame = function()
- {
- if(wait == 0)
- {
- talk.setVolume(99 * _root.sfxmute);
- mouthwait = statement[curstatement].length * 2;
- story.mouth.play();
- speech_txt.text = statement[curstatement];
- wait = 100;
- if(statement[curstatement] == "")
- {
- wait = 30;
- this._visible = false;
- }
- else
- {
- this._visible = true;
- }
- curstatement++;
- curstatement %= statement.length;
- }
- else
- {
- wait--;
- }
- if(mouthwait == 0)
- {
- story.mouth.gotoAndStop(3);
- talk.setVolume(0);
- }
- else
- {
- mouthwait--;
- }
- };
-