Frame 1
_global.InMenu = 0;
_global.InItemMenu = 0;
_global.InWorldMapMenu = 0;
_global.DayNight = 0;
_global.Weather = 0;
_global.TimeChange = 20000;
_global.Change = 0;
_global.WorldTime = 1400;
_global.TypeNone = 0;
_global.TypeHouse = 1;
_global.TypeShop = 2;
_global.TypeGame = 3;
_global.TypeDungeon = 4;
_global.TypeBoss = 5;
_global.RollingL = 0;
_global.RollingL3 = 0;
_global.LinkDeathCrap = 0;
_global.WarpedAlready = 0;
_global.WeedHP = 1;
_global.AttackTimer = 250;
_global.Rupees = 0;
_global.DeathX = -100;
_global.BRA = 0;
_global.CW = 0;
_global.CA = 0;
_global.RX = -100;
_global.RY = 100;
_global.WRCG = 10;
_global.WRCB = 50;
_global.WRCR = 200;
_global.WRCP = 500;
_global.WRCH = 15;
_global.LinkDamage = 1;
_global.WalkSpeed = 7;
_global.WalkSpeed2 = 5;
_global.Hearts = 3;
_global.LinkHP = _global.Hearts * 2;
_global.LinkMP = 36;
_global.WeedCutTimer = 350;
_global.PotCutTimer = 250;
_global.GellyHP = 2;
_global.GellyMoveSpeed = 1.5;
_global.GellyMoveTimer = 50;
_global.GellySight = 150;
_global.GellyMovingOdds = 15;
_global.GellyDirectionOdds = 6;
_global.ItemUsing1 = 1;
_global.ItemUsing2 = 3;
_global.EmptyItem = 17;
_global.Item1Have = 1;
_global.Item2Have = 1;
_global.Item3Have = 1;
_global.Item4Have = 1;
_global.Item5Have = 1;
_global.Item6Have = 1;
_global.Item7Have = 1;
_global.Item8Have = 1;
_global.Item9Have = 1;
_global.Item10Have = 1;
_global.Item11Have = 1;
_global.Item12Have = 1;
_global.Item13Have = 1;
_global.Item14Have = 1;
_global.Item15Have = 1;
_global.Item16Have = 1;
myTextFormat = new TextFormat();
myTextFormat.font = "RupeeFont";
_root.PLT.embedFonts = true;
_root.PLT.setNewTextFormat(myTextFormat);
_root.PLT.setTextFormat(myTextFormat);
Instance of Symbol 68 MovieClip in Frame 1
onClipEvent (load) {
Pressed = 0;
}
onClipEvent (enterFrame) {
if (Pressed == 0) {
if (Key.isDown(81)) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
Pressed = 1;
}
}
if (!Key.isDown(81)) {
Pressed = 0;
}
}
Frame 2
_global.ItemSelected = 0;
_global.HaveItem = function (Item, Type) {
Items = Item;
if (Item > 16) {
if (Type == 1) {
Items = Item - 16;
} else {
Items = 1;
}
} else if (Item < 1) {
if (Type == 0) {
Items = 16 + Item;
} else {
Items = 16;
}
}
if (Items == 1) {
if (_global.Item1Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 2) {
if (_global.Item2Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 3) {
if (_global.Item3Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 4) {
if (_global.Item4Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 5) {
if (_global.Item5Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 6) {
if (_global.Item6Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 7) {
if (_global.Item7Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 8) {
if (_global.Item8Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 9) {
if (_global.Item9Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 10) {
if (_global.Item10Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 11) {
if (_global.Item11Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 12) {
if (_global.Item12Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 13) {
if (_global.Item13Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 14) {
if (_global.Item14Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 15) {
if (_global.Item15Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
} else if (Items == 16) {
if (_global.Item16Have == 1) {
_global.ItemSelected = Items;
} else if (Type == 0) {
_global.HaveItem(Items - 4, 0);
} else if (Type == 1) {
_global.HaveItem(Items + 4, 1);
} else if (Type == 2) {
_global.HaveItem(Items - 1, 2);
} else if (Type == 3) {
_global.HaveItem(Items + 1, 3);
}
}
};
_global.InventorySelection = function () {
if (_global.Item16Have == 1) {
_global.ItemSelected = 16;
_root.MItems.Item16._visible = true;
} else {
_root.MItems.Item16._visible = false;
}
if (_global.Item15Have == 1) {
_global.ItemSelected = 15;
_root.MItems.Item15._visible = true;
} else {
_root.MItems.Item15._visible = false;
}
if (_global.Item14Have == 1) {
_global.ItemSelected = 14;
_root.MItems.Item14._visible = true;
} else {
_root.MItems.Item14._visible = false;
}
if (_global.Item13Have == 1) {
_global.ItemSelected = 13;
_root.MItems.Item13._visible = true;
} else {
_root.MItems.Item13._visible = false;
}
if (_global.Item12Have == 1) {
_global.ItemSelected = 12;
_root.MItems.Item12._visible = true;
} else {
_root.MItems.Item12._visible = false;
}
if (_global.Item11Have == 1) {
_global.ItemSelected = 11;
_root.MItems.Item11._visible = true;
} else {
_root.MItems.Item11._visible = false;
}
if (_global.Item10Have == 1) {
_global.ItemSelected = 10;
_root.MItems.Item10._visible = true;
} else {
_root.MItems.Item10._visible = false;
}
if (_global.Item9Have == 1) {
_global.ItemSelected = 9;
_root.MItems.Item9._visible = true;
} else {
_root.MItems.Item9._visible = false;
}
if (_global.Item8Have == 1) {
_global.ItemSelected = 8;
_root.MItems.Item8._visible = true;
} else {
_root.MItems.Item8._visible = false;
}
if (_global.Item7Have == 1) {
_global.ItemSelected = 7;
_root.MItems.Item7._visible = true;
} else {
_root.MItems.Item7._visible = false;
}
if (_global.Item6Have == 1) {
_global.ItemSelected = 6;
_root.MItems.Item6._visible = true;
} else {
_root.MItems.Item6._visible = false;
}
if (_global.Item5Have == 1) {
_global.ItemSelected = 5;
_root.MItems.Item5._visible = true;
} else {
_root.MItems.Item5._visible = false;
}
if (_global.Item4Have == 1) {
_global.ItemSelected = 4;
_root.MItems.Item4._visible = true;
} else {
_root.MItems.Item4._visible = false;
}
if (_global.Item3Have == 1) {
_global.ItemSelected = 3;
_root.MItems.Item3._visible = true;
} else {
_root.MItems.Item3._visible = false;
}
if (_global.Item2Have == 1) {
_global.ItemSelected = 2;
_root.MItems.Item2._visible = true;
} else {
_root.MItems.Item2._visible = false;
}
if (_global.Item1Have == 1) {
_global.ItemSelected = 1;
_root.MItems.Item1._visible = true;
} else {
_root.MItems.Item1._visible = false;
}
};
_global.CheckSelected = function () {
myColor1 = new Color(_root.MItems.Item1);
myColor2 = new Color(_root.MItems.Item2);
myColor3 = new Color(_root.MItems.Item3);
myColor4 = new Color(_root.MItems.Item4);
myColor5 = new Color(_root.MItems.Item5);
myColor6 = new Color(_root.MItems.Item6);
myColor7 = new Color(_root.MItems.Item7);
myColor8 = new Color(_root.MItems.Item8);
myColor9 = new Color(_root.MItems.Item9);
myColor10 = new Color(_root.MItems.Item10);
myColor11 = new Color(_root.MItems.Item11);
myColor12 = new Color(_root.MItems.Item12);
myColor13 = new Color(_root.MItems.Item13);
myColor14 = new Color(_root.MItems.Item14);
myColor15 = new Color(_root.MItems.Item15);
myColor16 = new Color(_root.MItems.Item16);
currentColor = {rb:0, gb:0, bb:0};
myColor1.setTransform(currentColor);
myColor2.setTransform(currentColor);
myColor3.setTransform(currentColor);
myColor4.setTransform(currentColor);
myColor5.setTransform(currentColor);
myColor6.setTransform(currentColor);
myColor7.setTransform(currentColor);
myColor8.setTransform(currentColor);
myColor9.setTransform(currentColor);
myColor10.setTransform(currentColor);
myColor11.setTransform(currentColor);
myColor12.setTransform(currentColor);
myColor13.setTransform(currentColor);
myColor14.setTransform(currentColor);
myColor15.setTransform(currentColor);
myColor16.setTransform(currentColor);
currentColor = {rb:0, gb:99, bb:9999};
if (_global.ItemSelected == 0) {
_root.MItems.Selected._x = -100;
} else if (_global.ItemSelected == 1) {
myColor1.setTransform(currentColor);
} else if (_global.ItemSelected == 2) {
myColor2.setTransform(currentColor);
} else if (_global.ItemSelected == 3) {
myColor3.setTransform(currentColor);
} else if (_global.ItemSelected == 4) {
myColor4.setTransform(currentColor);
} else if (_global.ItemSelected == 5) {
myColor5.setTransform(currentColor);
} else if (_global.ItemSelected == 6) {
myColor6.setTransform(currentColor);
} else if (_global.ItemSelected == 7) {
myColor7.setTransform(currentColor);
} else if (_global.ItemSelected == 8) {
myColor8.setTransform(currentColor);
} else if (_global.ItemSelected == 9) {
myColor9.setTransform(currentColor);
} else if (_global.ItemSelected == 10) {
myColor10.setTransform(currentColor);
} else if (_global.ItemSelected == 11) {
myColor11.setTransform(currentColor);
} else if (_global.ItemSelected == 12) {
myColor12.setTransform(currentColor);
} else if (_global.ItemSelected == 13) {
myColor13.setTransform(currentColor);
} else if (_global.ItemSelected == 14) {
myColor14.setTransform(currentColor);
} else if (_global.ItemSelected == 15) {
myColor15.setTransform(currentColor);
} else if (_global.ItemSelected == 16) {
myColor16.setTransform(currentColor);
}
};
_global.InventorySelection();
_global.CurrentMap = 1;
_global.WorldMapNum = 1;
_global.MapNight = 0;
_global.MapType = _global.TypeNone;
if (_global.DayNight == 0) {
_root.Night._alpha = 0;
} else if ((_global.DayNight == 1) or (_global.DayNight == 2)) {
_root.Night._alpha = 60;
}
if (_global.MapType != _global.TypeNone) {
_root.ZHUD._alpha == 50;
_root.XHUD._alpha == 50;
} else {
_root.ZHUD._alpha == 100;
_root.XHUD._alpha == 100;
}
if (_global.InMenu == 1) {
if (_global.InItemMenu == 1) {
_root.MItems._visible = true;
_root.Selected2._visible = true;
_root.MMap._visible = false;
} else if (_global.InWorldMapMenu == 1) {
_root.MItems._visible = false;
_root.Selected2._visible = true;
_root.MMap._visible = true;
}
} else if (_global.InMenu == 0) {
_root.MItems._visible = false;
_root.Selected2._visible = false;
_root.MMap._visible = false;
}
if (_global.ItemUsing2 == 0) {
_root.XHUD.gotoAndStop(_global.EmptyItem);
} else {
_root.XHUD.gotoAndStop(_global.ItemUsing2);
}
if (_global.ItemUsing1 == 0) {
_root.ZHUD.gotoAndStop(_global.EmptyItem);
} else {
_root.ZHUD.gotoAndStop(_global.ItemUsing1);
}
if (_global.CurrentMap == _global.FrameWarp) {
if (_global.WarpedAlready == 1) {
_global.MapText = 1;
_root.Link._x = _global.WarpedX;
_root.Link._y = _global.WarpedY;
_global.WarpedAlready = 0;
}
}
if (_global.Rupees < 10) {
_root.RCount.text = "00" + _global.Rupees;
} else if (_global.Rupees < 100) {
_root.RCount.text = "0" + _global.Rupees;
} else if (_global.Rupees > 99) {
_root.RCount.text = _global.Rupees;
}
if (_global.LinkHP <= 0) {
_root.HPMeter.gotoAndStop(7);
} else {
_root.HPMeter.gotoAndStop(_global.LinkHP);
}
_root.Magic.MMeter._xscale = _global.LinkMP;
_root.stop();
_global.CurrentSong = "OoTLostWoods";
_global.SongStarted = 0;
_global.AllSound = new Sound(this);
Instance of Symbol 72 MovieClip in Frame 2
/* no clip actions */
Instance of Symbol 76 MovieClip in Frame 2
onClipEvent (load) {
Splashes = 0;
}
onClipEvent (enterFrame) {
if (_global.Moving == 1) {
if ((Splashes + 150) < getTimer()) {
if (this.hitTest(_root.Link._x, _root.Link._y, true)) {
_global.CW = _global.CW + 1;
MCX = _root.Link._x + random(_root.Link._width);
MCY = _root.Link._y + random(_root.Link._height / 2);
_root.Splash.duplicateMovieClip("Splash" + _global.CW, _global.CW, {_x:MCX, _y:MCY});
}
Splashes = getTimer();
}
}
}
Instance of Symbol 79 MovieClip in Frame 2
onClipEvent (load) {
Splashes = 0;
}
onClipEvent (enterFrame) {
if (_global.Moving == 1) {
if ((Splashes + 150) < getTimer()) {
if (this.hitTest(_root.Link._x, _root.Link._y, true)) {
_global.CW = _global.CW + 1;
MCX = _root.Link._x + random(_root.Link._width);
MCY = _root.Link._y + random(_root.Link._height / 2);
_root.Splash.duplicateMovieClip("Splash" + _global.CW, _global.CW, {_x:MCX, _y:MCY});
}
Splashes = getTimer();
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 89 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
thisSound = new Sound(this);
thisSound.attachSound("Grass");
thisSound.start(0, 1);
}
if ((CutTimer + _global.WeedCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
}
Instance of Symbol 95 MovieClip "Pot" in Frame 2
onClipEvent (load) {
HP = _global.WeedHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Cut = 0;
CutTimer = 0;
}
onClipEvent (enterFrame) {
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
}
}
}
if (HP <= 0) {
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(2);
Cut = 1;
}
if ((CutTimer + _global.PotCutTimer) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 3), _y:this._y + (this._height / 2)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 3), _y:this._y + (this._height / 2)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 3), _y:this._y + (this._height / 2)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 3), _y:this._y + (this._height / 2)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
}
}
if (_global.LinkAttack2 == 2) {
if (this.hitTest(_root.Link)) {
if (_global.Direction == 0) {
_root.Link._y = _root.Link._y + _global.WalkSpeed;
} else if (_global.Direction == 1) {
_root.Link._y = _root.Link._y - _global.WalkSpeed;
} else if (_global.Direction == 2) {
_root.Link._x = _root.Link._x + _global.WalkSpeed;
} else if (_global.Direction == 3) {
_root.Link._x = _root.Link._x - _global.WalkSpeed;
}
}
}
if (_global.LinkAttack2 == 2) {
if (this.hitTest(_root.Link)) {
if (_global.Direction == 0) {
_root.Link._y = _root.Link._y + _global.WalkSpeed;
} else if (_global.Direction == 1) {
_root.Link._y = _root.Link._y - _global.WalkSpeed;
} else if (_global.Direction == 2) {
_root.Link._x = _root.Link._x + _global.WalkSpeed;
} else if (_global.Direction == 3) {
_root.Link._x = _root.Link._x - _global.WalkSpeed;
}
}
}
}
Instance of Symbol 97 MovieClip "BR" in Frame 2
onClipEvent (load) {
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
RedTimer = getTimer();
RedTimer2 = 0;
this._alpha = 100;
Gone = 0;
GoneTimer = 0;
Worth = 5;
}
onClipEvent (enterFrame) {
if ((RedTimer + 10000) < getTimer()) {
if ((RedTimer2 + 200) < getTimer()) {
this._alpha = 100;
RedTimer2 = getTimer();
} else {
this._alpha = 0;
}
if ((RedTimer + 13000) < getTimer()) {
this.removeMovieClip();
}
}
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.WarpedAlready == 1) {
this.removeMovieClip();
}
if (this.hitTest(_root.Link)) {
if (_global.Moving == 1) {
this._x = _global.DeathX;
if (Gone == 0) {
_global.Rupees = _global.Rupees + Worth;
thisSound = new Sound(this);
thisSound.attachSound("RupeeSound");
thisSound.start(0, 1);
}
Gone = 1;
GoneTimer = getTimer();
}
}
if (Gone == 1) {
this._alpha = 100;
this._x = _root.Link._x - (this._width / 2);
this._y = (_root.Link._y - _root.Link._height) + 10;
if ((GoneTimer + 500) < getTimer()) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.Bombs.Explode)) {
this.removeMovieClip();
}
}
Instance of Symbol 99 MovieClip "RR" in Frame 2
onClipEvent (load) {
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
RedTimer = getTimer();
RedTimer2 = 0;
this._alpha = 100;
Gone = 0;
GoneTimer = 0;
Worth = 20;
}
onClipEvent (enterFrame) {
if ((RedTimer + 10000) < getTimer()) {
if ((RedTimer2 + 200) < getTimer()) {
this._alpha = 100;
RedTimer2 = getTimer();
} else {
this._alpha = 0;
}
if ((RedTimer + 13000) < getTimer()) {
this.removeMovieClip();
}
}
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.WarpedAlready == 1) {
this.removeMovieClip();
}
if (this.hitTest(_root.Link)) {
if (_global.Moving == 1) {
this._x = _global.DeathX;
if (Gone == 0) {
_global.Rupees = _global.Rupees + Worth;
thisSound = new Sound(this);
thisSound.attachSound("RupeeSound");
thisSound.start(0, 1);
}
Gone = 1;
GoneTimer = getTimer();
}
}
if (Gone == 1) {
this._alpha = 100;
this._x = _root.Link._x - (this._width / 2);
this._y = (_root.Link._y - _root.Link._height) + 10;
if ((GoneTimer + 500) < getTimer()) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.Bombs.Explode)) {
this.removeMovieClip();
}
}
Instance of Symbol 101 MovieClip "GR" in Frame 2
onClipEvent (load) {
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
RedTimer = getTimer();
RedTimer2 = 0;
this._alpha = 100;
Gone = 0;
GoneTimer = 0;
Worth = 1;
}
onClipEvent (enterFrame) {
if ((RedTimer + 10000) < getTimer()) {
if ((RedTimer2 + 200) < getTimer()) {
this._alpha = 100;
RedTimer2 = getTimer();
} else {
this._alpha = 0;
}
if ((RedTimer + 13000) < getTimer()) {
this.removeMovieClip();
}
}
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.WarpedAlready == 1) {
this.removeMovieClip();
}
if (this.hitTest(_root.Link)) {
if (_global.Moving == 1) {
this._x = _global.DeathX;
if (Gone == 0) {
_global.Rupees = _global.Rupees + Worth;
thisSound = new Sound(this);
thisSound.attachSound("RupeeSound");
thisSound.start(0, 1);
}
Gone = 1;
GoneTimer = getTimer();
}
}
if (Gone == 1) {
this._alpha = 100;
this._x = _root.Link._x - (this._width / 2);
this._y = (_root.Link._y - _root.Link._height) + 10;
if ((GoneTimer + 500) < getTimer()) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.Bombs.Explode)) {
this.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip "PR" in Frame 2
onClipEvent (load) {
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
RedTimer = getTimer();
RedTimer2 = 0;
this._alpha = 100;
Gone = 0;
GoneTimer = 0;
Worth = 50;
}
onClipEvent (enterFrame) {
if ((RedTimer + 10000) < getTimer()) {
if ((RedTimer2 + 200) < getTimer()) {
this._alpha = 100;
RedTimer2 = getTimer();
} else {
this._alpha = 0;
}
if ((RedTimer + 15000) < getTimer()) {
this.removeMovieClip();
}
}
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.WarpedAlready == 1) {
this.removeMovieClip();
}
if (this.hitTest(_root.Link)) {
if (_global.Moving == 1) {
this._x = _global.DeathX;
if (Gone == 0) {
_global.Rupees = _global.Rupees + Worth;
thisSound = new Sound(this);
thisSound.attachSound("RupeeSound");
thisSound.start(0, 1);
}
Gone = 1;
GoneTimer = getTimer();
}
}
if (Gone == 1) {
this._alpha = 100;
this._x = _root.Link._x - (this._width / 2);
this._y = (_root.Link._y - _root.Link._height) + 10;
if ((GoneTimer + 500) < getTimer()) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.Bombs.Explode)) {
this.removeMovieClip();
}
}
Instance of Symbol 105 MovieClip "Splash" in Frame 2
onClipEvent (load) {
ST = 100;
}
onClipEvent (enterFrame) {
ST = ST - 5;
this._alpha = random(ST);
if (ST < 0) {
this.removeMovieClip();
}
}
Instance of Symbol 107 MovieClip "HeartUp" in Frame 2
onClipEvent (load) {
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
RedTimer = getTimer();
RedTimer2 = 0;
this._alpha = 100;
Gone = 0;
GoneTimer = 0;
}
onClipEvent (enterFrame) {
if ((RedTimer + 10000) < getTimer()) {
if ((RedTimer2 + 200) < getTimer()) {
this._alpha = 100;
RedTimer2 = getTimer();
} else {
this._alpha = 0;
}
if ((RedTimer + 13000) < getTimer()) {
this.removeMovieClip();
}
}
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
if (_global.WarpedAlready == 1) {
this.removeMovieClip();
}
if (this.hitTest(_root.Link)) {
if (_global.Moving == 1) {
if (Gone == 0) {
if (_global.LinkHP < (_global.Hearts * 2)) {
this._x = _global.DeathX;
if ((_global.LinkHP + 2) > (_global.Hearts * 2)) {
_global.LinkHP = _global.Hearts * 2;
} else {
_global.LinkHP = _global.LinkHP + 2;
}
}
thisSound = new Sound(this);
thisSound.attachSound("Healing");
thisSound.start(0, 1);
}
Gone = 1;
GoneTimer = getTimer();
}
}
if (Gone == 1) {
this._alpha = 100;
this._x = _root.Link._x - (this._width / 2);
this._y = (_root.Link._y - _root.Link._height) + 10;
if ((GoneTimer + 500) < getTimer()) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.Bombs.Explode)) {
this.removeMovieClip();
}
}
Instance of Symbol 128 MovieClip "Bomb" in Frame 2
onClipEvent (load) {
if (_global.InMenu == 1) {
this._visible = false;
} else {
this._visible = true;
}
Freeze = 0;
LinkBounce = 0;
BombDamage = 2;
AT = 0;
if (_name == "Bomb") {
this.stop();
} else {
this.play();
}
HitLink = 0;
}
onClipEvent (enterFrame) {
if (_name != "Bomb") {
if (_global.InMenu == 1) {
this._visible = false;
this.stop();
} else {
this._visible = true;
this.play();
}
if (_global.WarpedAlready == 1) {
this.removeMovieClip();
}
if (_global.InMenu == 1) {
Freeze = 1;
} else {
Freeze = 0;
}
if (Freeze == 0) {
if (_root.Link.hitTest(this.Explode)) {
if (HitLink == 0) {
HitLink = 1;
_global.LinkHP = _global.LinkHP - BombDamage;
thisSound = new Sound(this);
thisSound.attachSound("LinkHurt1");
thisSound.start(0, 1);
if (_global.LinkAttack == 0) {
if (_global.Direction == 0) {
_root.Link._y = _root.Link._y + LinkBounce;
} else if (_global.Direction == 1) {
_root.Link._y = _root.Link._y - LinkBounce;
} else if (_global.Direction == 2) {
_root.Link._x = _root.Link._x + LinkBounce;
} else if (_global.Direction == 3) {
_root.Link._x = _root.Link._x - LinkBounce;
}
}
}
}
}
}
}
Instance of Symbol 138 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.GellyHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Freeze = 0;
Cut = 0;
CutTimer = 0;
MAT = 0;
Movement = 0;
Direction = 0;
Bounce = 10;
LinkBounce = 35;
BombDamage = 2;
myColor = new Color(this);
RedTimer = 0;
LinkColor = new Color(_root.Link);
LinkRedTimer = 0;
SPlay = 0;
}
onClipEvent (enterFrame) {
if (_global.InMenu == 1) {
Freeze = 1;
} else {
Freeze = 0;
}
if (Freeze == 0) {
if ((RedTimer + 100) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
myColor.setTransform(currentColor);
}
if ((LinkRedTimer + 100) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
LinkColor.setTransform(currentColor);
}
MoveUp = function () {
this._y = this._y - _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._y = this._y + _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._y = this._y + _global.GellyMoveSpeed;
}
};
MoveDown = function () {
this._y = this._y + _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._y = this._y - _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._y = this._y - _global.GellyMoveSpeed;
}
};
MoveLeft = function () {
this._x = this._x - _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._x = this._x + _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._x = this._x + _global.GellyMoveSpeed;
}
};
MoveRight = function () {
this._x = this._x + _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._x = this._x - _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._x = this._x - _global.GellyMoveSpeed;
}
};
if (HP > 0) {
if ((MAT + _global.GellyMoveTimer) < getTimer()) {
if (_root.Link._y < (this._y + _global.GellySight)) {
if (_root.Link._x > (this._x - _global.GellySight)) {
if (_root.Link._x < (this._x + _global.GellySight)) {
if (_root.Link._y > (this._y - _global.GellySight)) {
Movement = 1;
} else if (_root.Link._y < (this._y - _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._x > (this._x + _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._x < (this._x - _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._y > (this._y + _global.GellySight)) {
Movement = 0;
}
if (Movement == 0) {
Rand5 = Math.floor(Math.random() * _global.GellyMovingOdds);
Rand6 = Math.floor(Math.random() * _global.GellyDirectionOdds);
if (Rand5 == 1) {
Direction = Rand6 - 1;
}
if (Direction == 0) {
MoveUp();
} else if (Direction == 1) {
MoveDown();
} else if (Direction == 2) {
MoveLeft();
} else if (Direction == 3) {
MoveRight();
}
} else if (Movement == 1) {
if (_root.Link._x < this._x) {
if ((_root.Link._x + 8) < this._x) {
MoveLeft();
}
} else if (_root.Link._x > this._x) {
if ((_root.Link._x - 5) > this._x) {
MoveRight();
}
}
if (_root.Link._y < this._y) {
if ((_root.Link._y + 10) < this._y) {
MoveUp();
}
} else if (_root.Link._y > this._y) {
if ((_root.Link._y - 5) > this._y) {
MoveDown();
}
}
}
MAT = getTimer();
}
}
LinkTouched = function () {
if (_global.LinkAttack2 == 0) {
LinkRedTimer = getTimer();
currentColor = {rb:255, gb:0, bb:0};
LinkColor.setTransform(currentColor);
thisSound = new Sound(this);
thisSound.attachSound("LinkHurt1");
thisSound.start(0, 1);
_global.LinkHP = _global.LinkHP - 1;
if (_global.LinkAttack == 0) {
if (_global.Direction == 0) {
_root.Link._y = _root.Link._y + LinkBounce;
} else if (_global.Direction == 1) {
_root.Link._y = _root.Link._y - LinkBounce;
} else if (_global.Direction == 2) {
_root.Link._x = _root.Link._x + LinkBounce;
} else if (_global.Direction == 3) {
_root.Link._x = _root.Link._x - LinkBounce;
}
}
}
};
if (HP > 0) {
if (_global.RollingL == 1) {
if (this.hitTest(_root.Link)) {
_global.RollingL = 0;
LinkTouched();
}
} else if (this.hitTest(_root.Link.LinkU.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkD.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkL.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkR.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkI.Body)) {
LinkTouched();
}
}
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
thisSound = new Sound(this);
thisSound.attachSound("HitEnemy");
thisSound.start(0, 1);
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
RedTimer = getTimer();
currentColor = {rb:255, gb:0, bb:0};
myColor.setTransform(currentColor);
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
this._y = this._y - Bounce;
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
this._y = this._y + Bounce;
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
this._x = this._x - Bounce;
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
this._x = this._x + Bounce;
}
}
}
if (HP <= 0) {
if (SPlay == 0) {
thisSound = new Sound(this);
thisSound.attachSound("Destroy");
thisSound.start(0, 1);
SPlay = 1;
}
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(41);
Cut = 1;
}
if ((CutTimer + 750) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
Freeze = 1;
}
}
}
}
Instance of Symbol 138 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.GellyHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Freeze = 0;
Cut = 0;
CutTimer = 0;
MAT = 0;
Movement = 0;
Direction = 0;
Bounce = 10;
LinkBounce = 35;
BombDamage = 2;
myColor = new Color(this);
RedTimer = 0;
LinkColor = new Color(_root.Link);
LinkRedTimer = 0;
SPlay = 0;
}
onClipEvent (enterFrame) {
if (_global.InMenu == 1) {
Freeze = 1;
} else {
Freeze = 0;
}
if (Freeze == 0) {
if ((RedTimer + 100) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
myColor.setTransform(currentColor);
}
if ((LinkRedTimer + 100) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
LinkColor.setTransform(currentColor);
}
MoveUp = function () {
this._y = this._y - _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._y = this._y + _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._y = this._y + _global.GellyMoveSpeed;
}
};
MoveDown = function () {
this._y = this._y + _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._y = this._y - _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._y = this._y - _global.GellyMoveSpeed;
}
};
MoveLeft = function () {
this._x = this._x - _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._x = this._x + _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._x = this._x + _global.GellyMoveSpeed;
}
};
MoveRight = function () {
this._x = this._x + _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._x = this._x - _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._x = this._x - _global.GellyMoveSpeed;
}
};
if (HP > 0) {
if ((MAT + _global.GellyMoveTimer) < getTimer()) {
if (_root.Link._y < (this._y + _global.GellySight)) {
if (_root.Link._x > (this._x - _global.GellySight)) {
if (_root.Link._x < (this._x + _global.GellySight)) {
if (_root.Link._y > (this._y - _global.GellySight)) {
Movement = 1;
} else if (_root.Link._y < (this._y - _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._x > (this._x + _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._x < (this._x - _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._y > (this._y + _global.GellySight)) {
Movement = 0;
}
if (Movement == 0) {
Rand5 = Math.floor(Math.random() * _global.GellyMovingOdds);
Rand6 = Math.floor(Math.random() * _global.GellyDirectionOdds);
if (Rand5 == 1) {
Direction = Rand6 - 1;
}
if (Direction == 0) {
MoveUp();
} else if (Direction == 1) {
MoveDown();
} else if (Direction == 2) {
MoveLeft();
} else if (Direction == 3) {
MoveRight();
}
} else if (Movement == 1) {
if (_root.Link._x < this._x) {
if ((_root.Link._x + 8) < this._x) {
MoveLeft();
}
} else if (_root.Link._x > this._x) {
if ((_root.Link._x - 5) > this._x) {
MoveRight();
}
}
if (_root.Link._y < this._y) {
if ((_root.Link._y + 10) < this._y) {
MoveUp();
}
} else if (_root.Link._y > this._y) {
if ((_root.Link._y - 5) > this._y) {
MoveDown();
}
}
}
MAT = getTimer();
}
}
LinkTouched = function () {
if (_global.LinkAttack2 == 0) {
LinkRedTimer = getTimer();
currentColor = {rb:255, gb:0, bb:0};
LinkColor.setTransform(currentColor);
thisSound = new Sound(this);
thisSound.attachSound("LinkHurt1");
thisSound.start(0, 1);
_global.LinkHP = _global.LinkHP - 1;
if (_global.LinkAttack == 0) {
if (_global.Direction == 0) {
_root.Link._y = _root.Link._y + LinkBounce;
} else if (_global.Direction == 1) {
_root.Link._y = _root.Link._y - LinkBounce;
} else if (_global.Direction == 2) {
_root.Link._x = _root.Link._x + LinkBounce;
} else if (_global.Direction == 3) {
_root.Link._x = _root.Link._x - LinkBounce;
}
}
}
};
if (HP > 0) {
if (_global.RollingL == 1) {
if (this.hitTest(_root.Link)) {
_global.RollingL = 0;
LinkTouched();
}
} else if (this.hitTest(_root.Link.LinkU.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkD.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkL.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkR.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkI.Body)) {
LinkTouched();
}
}
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
thisSound = new Sound(this);
thisSound.attachSound("HitEnemy");
thisSound.start(0, 1);
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
RedTimer = getTimer();
currentColor = {rb:255, gb:0, bb:0};
myColor.setTransform(currentColor);
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
this._y = this._y - Bounce;
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
this._y = this._y + Bounce;
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
this._x = this._x - Bounce;
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
this._x = this._x + Bounce;
}
}
}
if (HP <= 0) {
if (SPlay == 0) {
thisSound = new Sound(this);
thisSound.attachSound("Destroy");
thisSound.start(0, 1);
SPlay = 1;
}
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(41);
Cut = 1;
}
if ((CutTimer + 750) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
Freeze = 1;
}
}
}
}
Instance of Symbol 138 MovieClip in Frame 2
onClipEvent (load) {
HP = _global.GellyHP;
Rand = Math.floor(Math.random() * _global.WRCG);
Rand2 = Math.floor(Math.random() * _global.WRCB);
Rand3 = Math.floor(Math.random() * _global.WRCR);
Rand4 = Math.floor(Math.random() * _global.WRCP);
RandHeart = Math.floor(Math.random() * _global.WRCH);
AT = 0;
Freeze = 0;
Cut = 0;
CutTimer = 0;
MAT = 0;
Movement = 0;
Direction = 0;
Bounce = 10;
LinkBounce = 35;
BombDamage = 2;
myColor = new Color(this);
RedTimer = 0;
LinkColor = new Color(_root.Link);
LinkRedTimer = 0;
SPlay = 0;
}
onClipEvent (enterFrame) {
if (_global.InMenu == 1) {
Freeze = 1;
} else {
Freeze = 0;
}
if (Freeze == 0) {
if ((RedTimer + 100) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
myColor.setTransform(currentColor);
}
if ((LinkRedTimer + 100) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
LinkColor.setTransform(currentColor);
}
MoveUp = function () {
this._y = this._y - _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._y = this._y + _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._y = this._y + _global.GellyMoveSpeed;
}
};
MoveDown = function () {
this._y = this._y + _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._y = this._y - _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._y = this._y - _global.GellyMoveSpeed;
}
};
MoveLeft = function () {
this._x = this._x - _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._x = this._x + _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._x = this._x + _global.GellyMoveSpeed;
}
};
MoveRight = function () {
this._x = this._x + _global.GellyMoveSpeed;
if (_root.Wall.hitTest(this._x, this._y, true)) {
this._x = this._x - _global.GellyMoveSpeed;
}
if (_root.Pot.hitTest(this._x, this._y, true)) {
this._x = this._x - _global.GellyMoveSpeed;
}
};
if (HP > 0) {
if ((MAT + _global.GellyMoveTimer) < getTimer()) {
if (_root.Link._y < (this._y + _global.GellySight)) {
if (_root.Link._x > (this._x - _global.GellySight)) {
if (_root.Link._x < (this._x + _global.GellySight)) {
if (_root.Link._y > (this._y - _global.GellySight)) {
Movement = 1;
} else if (_root.Link._y < (this._y - _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._x > (this._x + _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._x < (this._x - _global.GellySight)) {
Movement = 0;
}
} else if (_root.Link._y > (this._y + _global.GellySight)) {
Movement = 0;
}
if (Movement == 0) {
Rand5 = Math.floor(Math.random() * _global.GellyMovingOdds);
Rand6 = Math.floor(Math.random() * _global.GellyDirectionOdds);
if (Rand5 == 1) {
Direction = Rand6 - 1;
}
if (Direction == 0) {
MoveUp();
} else if (Direction == 1) {
MoveDown();
} else if (Direction == 2) {
MoveLeft();
} else if (Direction == 3) {
MoveRight();
}
} else if (Movement == 1) {
if (_root.Link._x < this._x) {
if ((_root.Link._x + 8) < this._x) {
MoveLeft();
}
} else if (_root.Link._x > this._x) {
if ((_root.Link._x - 5) > this._x) {
MoveRight();
}
}
if (_root.Link._y < this._y) {
if ((_root.Link._y + 10) < this._y) {
MoveUp();
}
} else if (_root.Link._y > this._y) {
if ((_root.Link._y - 5) > this._y) {
MoveDown();
}
}
}
MAT = getTimer();
}
}
LinkTouched = function () {
if (_global.LinkAttack2 == 0) {
LinkRedTimer = getTimer();
currentColor = {rb:255, gb:0, bb:0};
LinkColor.setTransform(currentColor);
thisSound = new Sound(this);
thisSound.attachSound("LinkHurt1");
thisSound.start(0, 1);
_global.LinkHP = _global.LinkHP - 1;
if (_global.LinkAttack == 0) {
if (_global.Direction == 0) {
_root.Link._y = _root.Link._y + LinkBounce;
} else if (_global.Direction == 1) {
_root.Link._y = _root.Link._y - LinkBounce;
} else if (_global.Direction == 2) {
_root.Link._x = _root.Link._x + LinkBounce;
} else if (_global.Direction == 3) {
_root.Link._x = _root.Link._x - LinkBounce;
}
}
}
};
if (HP > 0) {
if (_global.RollingL == 1) {
if (this.hitTest(_root.Link)) {
_global.RollingL = 0;
LinkTouched();
}
} else if (this.hitTest(_root.Link.LinkU.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkD.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkL.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkR.Body)) {
LinkTouched();
} else if (this.hitTest(_root.Link.LinkI.Body)) {
LinkTouched();
}
}
LoseHp = function () {
if (_global.LinkAttack2 == 1) {
thisSound = new Sound(this);
thisSound.attachSound("HitEnemy");
thisSound.start(0, 1);
HP = HP - _global.LinkDamage;
AT = getTimer() + _global.AttackTimer;
RedTimer = getTimer();
currentColor = {rb:255, gb:0, bb:0};
myColor.setTransform(currentColor);
}
};
if ((AT + _global.AttackTimer) < getTimer()) {
if (this.hitTest(_root.Bombs.Explode)) {
HP = HP - BombDamage;
AT = getTimer() + _global.AttackTimer;
}
if (_global.Direction == 0) {
if (this.hitTest(_root.Link.LinkUAttack.Sword)) {
LoseHp();
this._y = this._y - Bounce;
}
} else if (_global.Direction == 1) {
if (this.hitTest(_root.Link.LinkDAttack.Sword)) {
LoseHp();
this._y = this._y + Bounce;
}
} else if (_global.Direction == 2) {
if (this.hitTest(_root.Link.LinkLAttack.Sword)) {
LoseHp();
this._x = this._x - Bounce;
}
} else if (_global.Direction == 3) {
if (this.hitTest(_root.Link.LinkRAttack.Sword)) {
LoseHp();
this._x = this._x + Bounce;
}
}
}
if (HP <= 0) {
if (SPlay == 0) {
thisSound = new Sound(this);
thisSound.attachSound("Destroy");
thisSound.start(0, 1);
SPlay = 1;
}
if (Cut == 0) {
CutTimer = getTimer();
this.gotoAndPlay(41);
Cut = 1;
}
if ((CutTimer + 750) < getTimer()) {
HP = 9999;
if (Rand == 1) {
_global.BRA = _global.BRA + 1;
_root.GR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand2 == 1) {
_global.BRA = _global.BRA + 1;
_root.BR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand3 == 1) {
_global.BRA = _global.BRA + 1;
_root.RR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (Rand4 == 1) {
_global.BRA = _global.BRA + 1;
_root.PR.duplicateMovieClip("BR" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 10), _y:this._y + (this._height / 10)});
} else if (RandHeart == 1) {
_global.BRA = _global.BRA + 1;
_root.HeartUp.duplicateMovieClip("HeartUp" + _global.BRA, _global.BRA, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
}
this._x = _global.DeathX;
Freeze = 1;
}
}
}
}
Instance of Symbol 364 MovieClip "Link" in Frame 2
onClipEvent (load) {
_global.LinkAttack = 0;
_global.LinkAttack2 = 0;
_global.DS = 0;
_global.Moving = 0;
_global.CanMove = 1;
_global.Direction = 1;
Chosen = -1;
if (_global.LinkDeathCrap == 0) {
_global.LinkDeathX = this._x;
_global.LinkDeathY = this._y;
_global.LinkDeathCrap = 1;
}
Freeze = 0;
_global.BombUsed1 = 0;
_global.BombUsed2 = 0;
BombTimer = 0;
BombTime = 1000;
SWalk = 0;
WalkingS = new Sound(this);
WalkingS.attachSound("Walking");
RollingTimer = 0;
RollSpeed = 12;
}
onClipEvent (enterFrame) {
if (_global.InMenu == 1) {
Freeze = 1;
this.stop();
} else {
Freeze = 0;
}
if (Freeze == 0) {
if (_global.LinkHP <= 0) {
this._x = _global.LinkDeathX;
this._y = _global.LinkDeathY;
_global.LinkHP = _global.Hearts * 2;
}
if (_global.RollingL == 1) {
if (_global.Direction == 0) {
if (_root.Wall.hitTest(this._x, getBounds(_root).yMin - RollSpeed, true)) {
_global.RollingL = 0;
}
if (_root.Pot.hitTest(this._x, getBounds(_root).yMin - RollSpeed, true)) {
_global.RollingL = 0;
}
} else if (_global.Direction == 1) {
if (_root.Wall.hitTest(this._x, getBounds(_root).yMax + RollSpeed, true)) {
_global.RollingL = 0;
}
if (_root.Pot.hitTest(this._x, getBounds(_root).yMax + RollSpeed, true)) {
_global.RollingL = 0;
}
} else if (_global.Direction == 2) {
if (_root.Wall.hitTest(getBounds(_root).xMin - RollSpeed, this._y, true)) {
_global.RollingL = 0;
}
if (_root.Wall.hitTest(getBounds(_root).xMin - RollSpeed, this._y, true)) {
_global.RollingL = 0;
}
} else if (_global.Direction == 3) {
if (_root.Wall.hitTest(getBounds(_root).xMax + RollSpeed, this._y, true)) {
_global.RollingL = 0;
}
if (_root.Wall.hitTest(getBounds(_root).xMax + RollSpeed, this._y, true)) {
_global.RollingL = 0;
}
}
}
CheckHit = function (Type) {
if (Type == 0) {
if ((SWalk + 200) < getTimer()) {
WalkingS.stop();
WalkingS.start(0, 1);
SWalk = getTimer();
}
if (Direction == 0) {
if (!_root.Wall.hitTest(this._x, getBounds(_root).yMin + _global.WalkSpeed, true)) {
if (!_root.Pot.hitTest(this._x, getBounds(_root).yMin + _global.WalkSpeed, true)) {
this._y = this._y - _global.WalkSpeed;
}
}
} else if (Direction == 1) {
if (!_root.Wall.hitTest(this._x, getBounds(_root).yMax + _global.WalkSpeed, true)) {
if (!_root.Pot.hitTest(this._x, getBounds(_root).yMax + _global.WalkSpeed, true)) {
this._y = this._y + _global.WalkSpeed;
}
}
} else if (Direction == 2) {
if (!_root.Wall.hitTest(getBounds(_root).xMin + _global.WalkSpeed, this._y, true)) {
if (!_root.Pot.hitTest(getBounds(_root).xMin + _global.WalkSpeed, this._y, true)) {
this._x = this._x - _global.WalkSpeed;
}
}
} else if (Direction == 3) {
if (!_root.Wall.hitTest(getBounds(_root).xMax + _global.WalkSpeed, this._y, true)) {
if (!_root.Pot.hitTest(getBounds(_root).xMax + _global.WalkSpeed, this._y, true)) {
this._x = this._x + _global.WalkSpeed;
}
}
}
} else if (Type == 1) {
if (Key.isDown(37)) {
if (!_root.Wall.hitTest(getBounds(_root).xMin + _global.WalkSpeed2, this._y, true)) {
if (!_root.Pot.hitTest(getBounds(_root).xMin + _global.WalkSpeed2, this._y, true)) {
this._x = this._x - _global.WalkSpeed2;
}
}
} else if (Key.isDown(39)) {
if (!_root.Wall.hitTest(getBounds(_root).xMax + _global.WalkSpeed2, this._y, true)) {
if (!_root.Pot.hitTest(getBounds(_root).xMax + _global.WalkSpeed2, this._y, true)) {
this._x = this._x + _global.WalkSpeed2;
}
}
}
} else if (Type == 2) {
if (Key.isDown(38)) {
if (!_root.Wall.hitTest(this._x, getBounds(_root).yMin + _global.WalkSpeed2, true)) {
if (!_root.Pot.hitTest(this._x, getBounds(_root).yMin + _global.WalkSpeed2, true)) {
this._y = this._y - _global.WalkSpeed2;
}
}
} else if (Key.isDown(40)) {
if (!_root.Wall.hitTest(this._x, getBounds(_root).yMax + _global.WalkSpeed2, true)) {
if (!_root.Pot.hitTest(this._x, getBounds(_root).yMax + _global.WalkSpeed2, true)) {
this._y = this._y + _global.WalkSpeed2;
}
}
}
}
};
if (_global.LinkAttack == 0) {
if (_global.RollingL == 0) {
if (Key.isDown(37)) {
if (Chosen == 3) {
Chosen = -1;
}
if (Chosen == -1) {
Chosen = 2;
_global.Direction = 2;
}
_global.DS = 1;
} else if (Key.isDown(39)) {
if (Chosen == 2) {
Chosen = -1;
}
if (Chosen == -1) {
Chosen = 3;
_global.Direction = 3;
}
_global.DS = 1;
} else if ((!Key.isDown(39)) && (!Key.isDown(37))) {
Chosen = -1;
}
if (Key.isDown(40)) {
if (Chosen == 0) {
Chosen = -1;
}
if (Chosen == -1) {
Chosen = 1;
_global.Direction = 1;
}
_global.DS = 1;
} else if (Key.isDown(38)) {
if (Chosen == 1) {
Chosen = -1;
}
if (Chosen == -1) {
Chosen = 0;
_global.Direction = 0;
}
_global.DS = 1;
} else if ((!Key.isDown(40)) && (!Key.isDown(38))) {
Chosen = -1;
}
}
if (_global.DS == 1) {
if (Key.isDown(67)) {
if (_global.RollingL3 == 0) {
if (_global.Direction == 0) {
this.gotoAndPlay(79);
} else if (_global.Direction == 1) {
this.gotoAndPlay(90);
} else if (_global.Direction == 2) {
this.gotoAndPlay(57);
} else if (_global.Direction == 3) {
this.gotoAndPlay(68);
}
RollingTimer = getTimer();
_global.RollingL = 1;
_global.RollingL3 = 1;
}
}
if (_global.RollingL == 0) {
if (_global.Direction == 0) {
this.gotoAndPlay(26);
_global.Moving = 1;
this.LinkU.play();
CheckHit(1);
CheckHit(0);
} else if (_global.Direction == 1) {
this.gotoAndPlay(18);
_global.Moving = 1;
this.LinkD.play();
CheckHit(1);
CheckHit(0);
} else if (_global.Direction == 2) {
this.gotoAndPlay(2);
_global.Moving = 1;
this.LinkL.play();
CheckHit(2);
CheckHit(0);
} else if (_global.Direction == 3) {
this.gotoAndPlay(10);
_global.Moving = 1;
this.LinkR.play();
CheckHit(2);
CheckHit(0);
}
}
}
}
if (_global.MapType == _global.TypeNone) {
if (Key.isDown(88)) {
if (_global.LinkAttack3 == 0) {
if (_global.ItemUsing2 != 0) {
_global.DS = 1;
if (_global.ItemUsing2 == 3) {
if ((BombTimer + BombTime) < getTimer()) {
if (_global.Direction == 0) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x, _y:_root.Link._y - 50});
} else if (_global.Direction == 1) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x, _y:_root.Link._y + 50});
} else if (_global.Direction == 2) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x - 40, _y:_root.Link._y});
} else if (_global.Direction == 3) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x + 40, _y:_root.Link._y});
}
_global.BombUsed1 = 1;
BombTimer = getTimer();
}
} else if (_global.LinkAttack2 == 0) {
if (_global.Direction == 0) {
this.gotoAndPlay(40);
} else if (_global.Direction == 1) {
this.gotoAndPlay(34);
} else if (_global.Direction == 2) {
this.gotoAndPlay(46);
} else if (_global.Direction == 3) {
this.gotoAndPlay(52);
}
_global.LinkAttack = 1;
_global.LinkAttack3 = 1;
Rand = Math.floor(Math.random() * 2);
if (Rand == 1) {
thisSound = new Sound(this);
thisSound.attachSound("Slice1");
thisSound.start(0, 1);
} else {
thisSound = new Sound(this);
thisSound.attachSound("Slice2");
thisSound.start(0, 1);
}
}
}
}
}
if (Key.isDown(90)) {
if (_global.LinkAttack3 == 0) {
if (_global.ItemUsing1 != 0) {
_global.DS = 1;
if (_global.ItemUsing1 == 3) {
if ((BombTimer + BombTime) < getTimer()) {
if (_global.Direction == 0) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x, _y:_root.Link._y - 50});
} else if (_global.Direction == 1) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x, _y:_root.Link._y + 50});
} else if (_global.Direction == 2) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x - 40, _y:_root.Link._y});
} else if (_global.Direction == 3) {
_global.BRA = _global.BRA + 1;
_root.Bomb.duplicateMovieClip("Bombs", _global.BRA, {_x:_root.Link._x + 40, _y:_root.Link._y});
}
_global.BombUsed1 = 1;
BombTimer = getTimer();
}
} else if (_global.LinkAttack2 == 0) {
if (_global.Direction == 0) {
this.gotoAndPlay(40);
} else if (_global.Direction == 1) {
this.gotoAndPlay(34);
} else if (_global.Direction == 2) {
this.gotoAndPlay(46);
} else if (_global.Direction == 3) {
this.gotoAndPlay(52);
}
_global.LinkAttack = 1;
_global.LinkAttack3 = 1;
Rand = Math.floor(Math.random() * 2);
if (Rand == 1) {
thisSound = new Sound(this);
thisSound.attachSound("Slice1");
thisSound.start(0, 1);
} else {
thisSound = new Sound(this);
thisSound.attachSound("Slice2");
thisSound.start(0, 1);
}
}
}
}
}
}
if (_global.RollingL == 1) {
if ((RollingTimer + 0) < getTimer()) {
if (_global.Direction == 0) {
this._y = this._y - RollSpeed;
} else if (_global.Direction == 1) {
this._y = this._y + RollSpeed;
} else if (_global.Direction == 2) {
this._x = this._x - RollSpeed;
} else if (_global.Direction == 3) {
this._x = this._x + RollSpeed;
}
RollingTimer = getTimer();
}
}
if (!Key.isDown(67)) {
_global.RollingL3 = 0;
}
if ((!Key.isDown(90)) && (!Key.isDown(88))) {
_global.LinkAttack3 = 0;
}
if ((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) {
_global.DS = 0;
Chosen = -1;
}
if (_global.DS == 0) {
_global.Moving = 0;
if (_global.RollingL == 0) {
if (_global.LinkAttack == 0) {
if (_global.Direction == 0) {
this.gotoAndStop(26);
this.LinkU.gotoAndStop(1);
} else if (_global.Direction == 1) {
this.gotoAndStop(18);
this.LinkD.gotoAndStop(1);
} else if (_global.Direction == 2) {
this.gotoAndStop(2);
this.LinkL.gotoAndStop(1);
} else if (_global.Direction == 3) {
this.gotoAndStop(10);
this.LinkR.gotoAndStop(1);
} else {
this.gotoAndStop(1);
}
}
}
}
myTextFormat = new TextFormat();
myTextFormat.font = "RupeeFont";
_root.RCount.embedFonts = true;
_root.RCount.setNewTextFormat(myTextFormat);
_root.RCount.setTextFormat(myTextFormat);
if (_global.Rupees < 10) {
_root.RCount.text = "00" + _global.Rupees;
} else if (_global.Rupees < 100) {
_root.RCount.text = "0" + _global.Rupees;
} else if (_global.Rupees > 99) {
_root.RCount.text = _global.Rupees;
}
_root.XY.text = (("X: " + this._x) + " Y: ") + this._y;
}
}
Instance of Symbol 373 MovieClip in Frame 2
onClipEvent (load) {
Touched = 0;
Gone = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Link)) {
if (_global.Moving == 1) {
if (Touched == 0) {
if (_global.Hearts < 3) {
_global.Hearts = _global.Hearts + 1;
}
_global.LinkHP = _global.Hearts * 2;
_global.InMenu = 1;
_root.Link.gotoAndStop(1);
this._x = ((_root.Link._x + (_root.Link._width / 2)) - (this._width / 2)) - 1;
this._y = (_root.Link._y - _root.Link._height) + 14;
_global.Music.setVolume(0);
thisSound = new Sound(this);
thisSound.attachSound("HeartContainer");
thisSound.start(0, 1);
_root.Link.gotoAndPlay(101);
Touched = 1;
}
}
}
thisSound.onSoundComplete = function () {
_global.Music.setVolume(100);
Gone = 1;
_global.InMenu = 0;
};
if (Gone == 1) {
this._x = _global.DeathX;
}
if (this.hitTest(_root.Bombs.Explode)) {
}
}
Instance of Symbol 377 MovieClip in Frame 2
onClipEvent (load) {
Warped = 0;
_global.FrameWarp = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Link.LinkU.Body)) {
if (Warped == 0) {
_global.MapText = 0;
_root.play();
gotoAndPlay(_global.FrameWarp +1);
_global.WarpedAlready = 1;
_global.WarpedX = 273;
_global.WarpedY = 355;
Warped = 1;
}
} else if (Warped == 1) {
Warped = 0;
}
}
Instance of Symbol 379 MovieClip "Night" in Frame 2
onClipEvent (load) {
Switch = 0;
Length = 50;
Intervals = 1;
Max = 60;
}
onClipEvent (enterFrame) {
if ((_global.Change + _global.TimeChange) < getTimer()) {
if (_global.DayNight == 0) {
if (_global.MapNight == 0) {
_global.DayNight = 2;
} else {
_global.DayNight = 1;
}
} else if (_global.MapNight == 0) {
_global.DayNight = 3;
} else {
_global.DayNight = 0;
}
_global.Change = getTimer();
}
if (_global.MapNight == 0) {
if (_global.DayNight == 0) {
this._alpha = 0;
} else if (_global.DayNight == 3) {
if ((Switch + Length) <= getTimer()) {
if (this._alpha <= 0) {
_global.Music.setVolume(0);
thisSound = new Sound(this);
thisSound.attachSound("Morning");
thisSound.start(0, 1);
_global.DayNight = 0;
} else {
this._alpha = this._alpha - Intervals;
}
Switch = getTimer();
}
} else if (_global.DayNight == 2) {
if ((Switch + Length) < getTimer()) {
if (this._alpha >= Max) {
_global.DayNight = 1;
} else {
this._alpha = this._alpha + Intervals;
}
Switch = getTimer();
}
} else if (_global.DayNight == 1) {
this._alpha = Max;
}
} else {
this._alpha = 0;
}
thisSound.onSoundComplete = function () {
_global.Music.setVolume(100);
};
}
Instance of Symbol 383 MovieClip "HPMeter" in Frame 2
onClipEvent (load) {
myColor = new Color(this);
RedTimer = 0;
RedTimer2 = 0;
thisSound = new Sound(this);
thisSound.attachSound("Danger");
}
onClipEvent (enterFrame) {
if ((RedTimer + 400) < getTimer()) {
currentColor = {rb:0, gb:0, bb:0};
myColor.setTransform(currentColor);
}
if (_global.LinkHP < 6) {
if ((RedTimer + 800) < getTimer()) {
currentColor = {rb:255, gb:0, bb:0};
myColor.setTransform(currentColor);
thisSound.start(0, 1);
RedTimer = getTimer();
}
}
if (_global.LinkHP <= 0) {
this.gotoAndStop(7);
} else {
this.gotoAndStop(_global.LinkHP);
}
}
Instance of Symbol 389 MovieClip "Magic" in Frame 2
onClipEvent (enterFrame) {
this.MMeter._xscale = _global.LinkMP;
}
Instance of Symbol 406 MovieClip "XHUD" in Frame 2
onClipEvent (enterFrame) {
if (_global.ItemUsing2 == 0) {
this.gotoAndStop(_global.EmptyItem);
} else {
this.gotoAndStop(_global.ItemUsing2);
}
}
Instance of Symbol 408 MovieClip "ZHUD" in Frame 2
onClipEvent (enterFrame) {
if (_global.ItemUsing1 == 0) {
this.gotoAndStop(_global.EmptyItem);
} else {
this.gotoAndStop(_global.ItemUsing1);
}
}
Instance of Symbol 476 MovieClip "MItems" in Frame 2
onClipEvent (load) {
Pressed = 0;
Pressed2 = 0;
Pressed3 = 0;
thisSound2 = new Sound(this);
thisSound2.attachSound("MenuNav");
Yeah = 0;
}
onClipEvent (enterFrame) {
thisSound2.onSoundComplete = function () {
Yeah = 0;
};
if (Key.isDown(67)) {
if (Yeah == 0) {
if (Pressed3 == 0) {
if (_global.InMenu == 1) {
thisSound2.start(0, 1);
if (_global.InWorldMapMenu == 1) {
_global.InItemMenu = 1;
_global.InWorldMapMenu = 0;
_global.InventorySelection();
} else {
_global.InItemMenu = 0;
_global.InWorldMapMenu = 1;
}
}
Pressed3 = 1;
}
Yeah = 1;
}
} else if (!Key.isDown(67)) {
Pressed3 = 0;
}
if (Key.isDown(16)) {
if (Yeah == 0) {
if (Pressed2 == 0) {
if (_global.InMenu == 1) {
thisSound2.start(0, 1);
if (_global.InWorldMapMenu == 1) {
_global.InItemMenu = 1;
_global.InWorldMapMenu = 0;
_global.InventorySelection();
} else {
_global.InItemMenu = 0;
_global.InWorldMapMenu = 1;
}
}
Pressed2 = 1;
}
Yeah = 1;
}
} else if (!Key.isDown(16)) {
Pressed2 = 0;
}
if (Key.isDown(83)) {
if (Pressed == 0) {
if (_global.InMenu != 1) {
_global.InMenu = 1;
_global.InItemMenu = 1;
_global.InWorldMapMenu = 0;
_global.InventorySelection();
_global.Music.setVolume(30);
thisSound = new Sound(this);
thisSound.attachSound("MenuOpen");
thisSound.start(0, 1);
} else if (_global.InMenu == 1) {
_global.InMenu = 0;
_global.InItemMenu = 0;
_global.InWorldMapMenu = 0;
_global.Music.setVolume(100);
thisSound = new Sound(this);
thisSound.attachSound("MenuClose");
thisSound.start(0, 1);
}
Pressed = 1;
}
} else if (!Key.isDown(83)) {
Pressed = 0;
}
if (_global.InMenu == 1) {
if (_global.InItemMenu == 1) {
_root.MItems._visible = true;
_root.Selected2._visible = true;
_root.MMap._visible = false;
} else if (_global.InWorldMapMenu == 1) {
_root.MItems._visible = false;
_root.Selected2._visible = true;
_root.MMap._visible = true;
}
} else if (_global.InMenu == 0) {
_root.MItems._visible = false;
_root.Selected2._visible = false;
_root.MMap._visible = false;
}
}
Instance of Symbol 477 MovieClip "Selected2" in Frame 2
onClipEvent (load) {
Pressed0 = 0;
Pressed1 = 0;
Pressed2 = 0;
Pressed3 = 0;
Pressed4 = 0;
Pressed5 = 0;
}
onClipEvent (enterFrame) {
if (_global.InItemMenu == 1) {
_global.CheckSelected();
if (Key.isDown(38)) {
if (Pressed0 == 0) {
thisSound = new Sound(this);
thisSound.attachSound("MenuNavItem");
thisSound.start(0, 1);
_global.HaveItem(_global.ItemSelected - 4, 0);
Pressed0 = 1;
}
} else if (!Key.isDown(38)) {
Pressed0 = 0;
}
if (Key.isDown(40)) {
if (Pressed1 == 0) {
thisSound = new Sound(this);
thisSound.attachSound("MenuNavItem");
thisSound.start(0, 1);
_global.HaveItem(_global.ItemSelected + 4, 1);
Pressed1 = 1;
}
} else if (!Key.isDown(40)) {
Pressed1 = 0;
}
if (Key.isDown(37)) {
if (Pressed2 == 0) {
thisSound = new Sound(this);
thisSound.attachSound("MenuNavItem");
thisSound.start(0, 1);
_global.HaveItem(_global.ItemSelected - 1, 2);
Pressed2 = 1;
}
} else if (!Key.isDown(37)) {
Pressed2 = 0;
}
if (Key.isDown(39)) {
if (Pressed3 == 0) {
thisSound = new Sound(this);
thisSound.attachSound("MenuNavItem");
thisSound.start(0, 1);
_global.HaveItem(_global.ItemSelected + 1, 3);
Pressed3 = 1;
}
} else if (!Key.isDown(39)) {
Pressed3 = 0;
}
if (Key.isDown(90)) {
if (Pressed4 == 0) {
thisSound = new Sound(this);
thisSound.attachSound("MenuEquip");
thisSound.start(0, 1);
if (_global.ItemUsing1 == _global.ItemSelected) {
_global.ItemUsing1 = 0;
} else if (_global.ItemUsing2 == _global.ItemSelected) {
_global.ItemUsing2 = _global.ItemUsing1;
_global.ItemUsing1 = _global.ItemSelected;
} else {
_global.ItemUsing1 = _global.ItemSelected;
}
Pressed4 = 1;
}
} else if (!Key.isDown(90)) {
Pressed4 = 0;
}
if (Key.isDown(88)) {
if (Pressed5 == 0) {
thisSound = new Sound(this);
thisSound.attachSound("MenuEquip");
thisSound.start(0, 1);
if (_global.ItemUsing2 == _global.ItemSelected) {
_global.ItemUsing2 = 0;
} else if (_global.ItemUsing1 == _global.ItemSelected) {
_global.ItemUsing1 = _global.ItemUsing2;
_global.ItemUsing2 = _global.ItemSelected;
} else {
_global.ItemUsing2 = _global.ItemSelected;
}
Pressed5 = 1;
}
} else if (!Key.isDown(88)) {
Pressed5 = 0;
}
}
_root.MItems._visible = false;
}
Instance of Symbol 490 MovieClip "Titles" in Frame 2
onClipEvent (load) {
Alpha = 0;
PlusAlpha = 4;
MinusAlpha = 5;
Timer = 0;
Intervals = 25;
Lower = 0;
}
onClipEvent (enterFrame) {
if (_global.MapText != 0) {
_root.Titles.gotoAndStop(_global.CurrentMap);
_root.Titles._alpha = Alpha;
if (Alpha > 99) {
Lower = 1;
}
if (Lower != 0) {
if (Alpha < 1) {
_global.MapText = 0;
}
if ((Timer + Intervals) < getTimer()) {
Alpha = Alpha - MinusAlpha;
Timer = getTimer();
}
} else if ((Timer + Intervals) < getTimer()) {
Alpha = Alpha + PlusAlpha;
Timer = getTimer();
}
} else {
Alpha = 0;
PlusAlpha = 3;
MinusAlpha = 5;
Timer = 0;
Intervals = 25;
Lower = 0;
}
}
Instance of Symbol 68 MovieClip in Frame 2
onClipEvent (load) {
Pressed = 0;
Pressed2 = 0;
Pressed3 = 0;
PlayingM = 1;
_global.SongStarted = 0;
}
onClipEvent (enterFrame) {
PlayMapMusic = function (Song) {
_global.Music.stop();
_global.Music = new Sound(this);
_global.Music.attachSound(Song);
_global.Music.start(0, 9999);
PlayingM = 1;
};
if (_global.SongStarted == 0) {
PlayMapMusic(_global.CurrentSong);
_global.SongStarted = 1;
}
if (Pressed == 0) {
if (Key.isDown(81)) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
Pressed = 1;
}
}
if (!Key.isDown(81)) {
Pressed = 0;
}
if (Pressed2 == 0) {
if (Key.isDown(77)) {
if (_global.AllSound.getVolume() > 0) {
_global.AllSound.setVolume(0);
} else {
_global.AllSound.setVolume(100);
}
Pressed2 = 1;
}
}
if (!Key.isDown(77)) {
Pressed2 = 0;
}
if (Pressed3 == 0) {
if (Key.isDown(78)) {
if (PlayingM == 0) {
PlayMapMusic(_global.CurrentSong);
} else {
_global.Music.stop();
PlayingM = 0;
}
Pressed3 = 1;
}
}
if (!Key.isDown(78)) {
Pressed3 = 0;
}
}
Frame 3
_global.CurrentMap = 2;
_global.WorldMapNum = 1;
_global.MapNight = 1;
_global.MapType = _global.TypeHouse;
if (_global.CurrentMap == _global.FrameWarp) {
if (_global.WarpedAlready == 1) {
_global.MapText = 1;
_root.Link._x = _global.WarpedX;
_root.Link._y = _global.WarpedY;
_global.WarpedAlready = 0;
}
}
_root.stop();
_global.CurrentSong = "OoTHome";
_global.SongStarted = 0;
Instance of Symbol 377 MovieClip in Frame 3
onClipEvent (load) {
Warped = 0;
_global.FrameWarp = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Link.LinkD.Body)) {
if (Warped == 0) {
_global.MapText = 0;
_root.play();
gotoAndPlay(_global.FrameWarp +1);
_global.WarpedAlready = 1;
_global.WarpedX = 357.6;
_global.WarpedY = 169;
Warped = 1;
}
} else if (Warped == 1) {
Warped = 0;
}
}
Frame 4
gotoAndPlay(_global.FrameWarp +1);
_root.stop();
Symbol 52 MovieClip Frame 6
stop();
Symbol 56 Button
on (release) {
_root.play();
_global.Change = getTimer();
}
Symbol 64 MovieClip Frame 2
Symbol 64 MovieClip Frame 120
stop();
Symbol 65 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
Loaded = Math.round(_root.getBytesLoaded() / 1024);
Size = Math.round(_root.getBytesTotal() / 1024);
if (Size >= 1024) {
TSize = Math.round(Size / 1024) + "Mb";
} else {
TSize = Size + "Kb";
}
if (Loaded >= 1024) {
TLoaded = ((Loaded + "Kb(") + Math.round(Loaded / 1024)) + "Mb)";
} else {
TLoaded = Loaded + "Kb";
}
PText = (((Math.round(PercentLoaded) + "% - ") + TLoaded) + "/") + TSize;
_root.PLT.text = PText;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 65 MovieClip Frame 2
gotoAndPlay (1);
Symbol 65 MovieClip Frame 3
stopAllSounds();
Symbol 88 MovieClip Frame 8
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 9
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 7
stop();
Symbol 97 MovieClip Frame 15
stop();
Symbol 99 MovieClip Frame 15
stop();
Symbol 101 MovieClip Frame 15
stop();
Symbol 103 MovieClip Frame 15
stop();
Symbol 123 MovieClip Frame 15
stop();
Symbol 128 MovieClip Frame 49
_global.BombUsed1 = 0;
Symbol 128 MovieClip Frame 77
_global.BombUsed2 = 1;
Symbol 128 MovieClip Frame 83
_global.BombUsed2 = 0;
Symbol 128 MovieClip Frame 92
this.removeMovieClip();
Symbol 137 MovieClip Frame 14
stop();
Symbol 138 MovieClip Frame 40
gotoAndPlay (1);
Symbol 138 MovieClip Frame 54
stop();
Symbol 363 MovieClip Frame 5
stop();
Symbol 364 MovieClip Frame 34
_global.LinkAttack2 = 1;
Symbol 364 MovieClip Frame 39
_global.LinkAttack = 0;
_global.LinkAttack2 = 0;
stop();
Symbol 364 MovieClip Frame 40
_global.LinkAttack2 = 1;
Symbol 364 MovieClip Frame 45
_global.LinkAttack = 0;
_global.LinkAttack2 = 0;
stop();
Symbol 364 MovieClip Frame 47
_global.LinkAttack2 = 1;
Symbol 364 MovieClip Frame 51
_global.LinkAttack = 0;
_global.LinkAttack2 = 0;
stop();
Symbol 364 MovieClip Frame 52
_global.LinkAttack2 = 1;
Symbol 364 MovieClip Frame 56
_global.LinkAttack = 0;
_global.LinkAttack2 = 0;
stop();
Symbol 364 MovieClip Frame 67
_global.RollingL = 0;
Symbol 364 MovieClip Frame 78
_global.RollingL = 0;
Symbol 364 MovieClip Frame 89
_global.RollingL = 0;
Symbol 364 MovieClip Frame 100
_global.RollingL = 0;
Symbol 364 MovieClip Frame 105
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 1
stop();
Instance of Symbol 406 MovieClip "XHUD" in Symbol 476 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.ItemUsing2 == 0) {
this.gotoAndStop(_global.EmptyItem);
} else {
this.gotoAndStop(_global.ItemUsing2);
}
}
Instance of Symbol 408 MovieClip "ZHUD" in Symbol 476 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.ItemUsing1 == 0) {
this.gotoAndStop(_global.EmptyItem);
} else {
this.gotoAndStop(_global.ItemUsing1);
}
}
Instance of Symbol 483 MovieClip "LIndicator" in Symbol 484 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = (_global.WMIx + (_global.WMIw / 2)) - this._width;
this._y = (_global.WMIy + (_global.WMIh / 2)) - this._height;
}
Instance of Symbol 68 MovieClip "1" in Symbol 484 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.WorldMapNum == Number(this._name)) {
_global.WMIx = this._x;
_global.WMIy = this._y;
_global.WMIw = this._width;
_global.WMIh = this._height;
}
}
Symbol 490 MovieClip Frame 1
stop();