home *** CD-ROM | disk | FTP | other *** search
- function show_anttips()
- {
- var _loc1_ = _root;
- var tiptxt = "";
- var _loc2_ = undefined;
- var _loc3_ = undefined;
- if(_loc1_.antstats[gc_nest] / _loc1_.antstats[gc_pop] < 1)
- {
- _loc2_ = 1;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- else if(_loc1_.antstats[gc_nest] / _loc1_.antstats[gc_pop] < 1.25)
- {
- _loc2_ = 2;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- else if(_loc1_.antstats[gc_nest] / _loc1_.antstats[gc_pop] > 1.6)
- {
- _loc2_ = 3;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- if(_loc1_.antstats[gc_stored] < parseInt(_loc1_.antstats[gc_pop] / _loc1_.upkeepcost))
- {
- _loc2_ = 4;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- else if(_loc1_.antstats[gc_stored] < parseInt(_loc1_.antstats[gc_nest] / 2))
- {
- _loc2_ = 5;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- else if(_loc1_.antstats[gc_stored] > parseInt(_loc1_.antstats[gc_nest] * 0.9))
- {
- _loc2_ = 6;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- if(_loc1_.antstats[gc_pop] > parseInt(_loc1_.poplevel[_loc1_.antlevel] * 0.9))
- {
- _loc2_ = 7;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- if(_loc1_.antstats[gc_pop] > 500 && tiptxt == "")
- {
- _loc2_ = 8;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- if(tiptxt == "")
- {
- _loc2_ = 0;
- _loc3_ = _loc1_.randomNum(_loc1_.anttip_text[_loc2_].length);
- tiptxt += _loc1_.anttip_text[_loc2_][_loc3_];
- }
- _loc1_.ant_tips.textarea = tiptxt;
- _loc1_.ant_tips.textarea.scroll = _loc1_.ant_tips.textarea.maxscroll;
- }
- var anttip_text = new Array();
- _root.anttip_text[0] = new Array();
- _root.anttip_text[0][0] = "You\'re doing great!\r\n";
- _root.anttip_text[0][1] = "Keep up the good work!\r\n";
- _root.anttip_text[0][2] = "Excellent!\r\n";
- _root.anttip_text[1] = new Array();
- _root.anttip_text[1][0] = "Your nest is too small!\r\n";
- _root.anttip_text[1][1] = "Your nest is too small! Get to work!\r\n";
- _root.anttip_text[1][2] = "Get to work!\r\n";
- _root.anttip_text[1][3] = "";
- _root.anttip_text[2] = new Array();
- _root.anttip_text[2][0] = "Increase your nest size!\r\n";
- _root.anttip_text[2][1] = "Your ants will find more food than they can keep.\r\n";
- _root.anttip_text[2][2] = "Your ants will find more food than they can keep. Increase your nest size.\r\n";
- _root.anttip_text[2][3] = "";
- _root.anttip_text[3] = new Array();
- _root.anttip_text[3][0] = "You\'re finding a good balance.\r\n";
- _root.anttip_text[3][1] = "Why not hatch some more ants!\r\n";
- _root.anttip_text[3][2] = "Grow your colony.\r\n";
- _root.anttip_text[3][3] = "";
- _root.anttip_text[3][4] = "";
- _root.anttip_text[4] = new Array();
- _root.anttip_text[4][0] = "Famine is on the horizon!\r\n";
- _root.anttip_text[4][1] = "Your ants are going to starve!\r\n";
- _root.anttip_text[4][2] = "Feed your ants!\r\n";
- _root.anttip_text[4][3] = "Make sure your ants are properly fed!\r\n";
- _root.anttip_text[5] = new Array();
- _root.anttip_text[5][0] = "Keep an eye on your food supply.\r\n";
- _root.anttip_text[5][1] = "Watch your food supply.\r\n";
- _root.anttip_text[5][2] = "";
- _root.anttip_text[6] = new Array();
- _root.anttip_text[6][0] = "If you dig a bigger nest, you can hold more food.\r\n";
- _root.anttip_text[6][1] = "I suggest you dig a bigger nest.\r\n";
- _root.anttip_text[6][2] = "";
- _root.anttip_text[6][3] = "";
- _root.anttip_text[7] = new Array();
- _root.anttip_text[7][0] = "Almost to the next level! Hatch a few more ants!\r\n";
- _root.anttip_text[7][1] = "Almost to the next level!\r\n";
- _root.anttip_text[7][2] = "Hatch a few more ants!\r\n";
- _root.anttip_text[7][3] = "";
- _root.anttip_text[7][4] = "";
- _root.anttip_text[8] = new Array();
- _root.anttip_text[8][0] = "";
- _root.anttip_text[8][1] = "The store has helpful items for sale.\r\n";
- _root.anttip_text[8][2] = "";
- _root.anttip_text[8][3] = "";
-