Frame 1
stop();
_root.spoke = "condom";
_root.defence = 0;
_root.skillz = 3;
_root.skillzA = 2;
_root.lvl = 5;
_root.turn = 1;
_root.hp1 = 20;
_root.beenhere = 0;
_root.x_save = 10;
_root.y_save = 150;
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 26 MovieClip "ash" in Frame 3
onClipEvent (load) {
_x = _root.x_save;
_y = _root.y_save;
}
onClipEvent (enterFrame) {
if (_root.beenhere >= 1) {
_x = 150;
_y = 0;
_root.beenhere = 0;
}
if (_root.goo.hitTest(_x, _y, true)) {
_root.gotoAndPlay(6);
_root.beenhere = 2;
}
if (_root.grass.hitTest(_x, _y, true)) {
_root.pokemon = random(30);
if (_root.pokemon == 20) {
_root.x_save = _x;
_root.y_save = _y;
_root.scene = 1;
_root.gotoAndPlay(5);
}
}
if (_root.house.hitTest(_x, _y, true)) {
if (_root.collision == 1) {
_x = (_x + 5);
}
if (_root.collision == 2) {
_y = (_y + 5);
}
if (_root.collision == 3) {
_y = (_y - 5);
}
if (_root.collision == 4) {
x = x + 5;
}
}
if (Key.isDown(39)) {
_x = (_x + 5);
_root.ash.gotoAndPlay(1);
}
if (Key.isDown(37)) {
_x = (_x - 5);
_root.ash.gotoAndPlay(4);
}
if (Key.isDown(40)) {
_root.ash.gotoAndPlay(3);
_y = (_y + 5);
}
if (Key.isDown(38)) {
_root.ash.gotoAndPlay(2);
_y = (_y - 5);
}
}
Frame 5
stop();
_root.wlvl = random(4);
_root.pokemon = random(1);
Instance of Symbol 31 MovieClip "hpbar" in Frame 5
onClipEvent (enterFrame) {
this._xscale = _root.hp;
if (_root.hp < 0) {
_root.hp = 10;
}
}
Instance of Symbol 34 MovieClip in Frame 5
onClipEvent (load) {
_root.wdefence = 0;
_root.hp = 10;
}
onClipEvent (enterFrame) {
if (_root.pokemon >= 0) {
_x = 400;
_y = 40;
_root.wpoke = "small penis";
if (_root.turn == 2) {
_root.what = random(2);
if ((_root.what = 1)) {
_root.hp1 = _root.hp1 - (random(10) - _root.defence);
_root.turn = 1;
}
if (_root.what == 2) {
_root.wdefence = _root.wdefence + (1 + _root.wlvl);
_root.turn = 1;
}
}
}
}
Instance of Symbol 31 MovieClip "hpbar" in Frame 5
onClipEvent (enterFrame) {
this._xscale = _root.hp1;
if (_root.hp1 < 0) {
_root.hp1 = _root.pokehp;
}
}
Instance of Symbol 37 MovieClip in Frame 5
onClipEvent (enterFrame) {
if ((_root.spoke = "condom")) {
_x = 40;
_y = 250;
_root.attack1 = "protect";
_root.attack2 = "put on";
_root.attack3 = "---";
_root.attack4 = "---";
}
}
Instance of Symbol 42 MovieClip in Frame 5
on (press) {
_root.defence = random(5) + _root.skillz;
_root.turn = 2;
}
Instance of Symbol 39 MovieClip in Frame 5
on (press) {
_root.damage = random(10) + _root.skillzA;
_root.hp = _root.hp - (_root.damage - _root.wdefence);
_root.turn = 2;
if (_root.hp <= 0) {
if (_root.beenhere <= 1) {
_root.gotoAndPlay(3);
}
if (_root.beenhere == 2) {
_root.gotoAndPlay(6);
}
}
}
Frame 6
stop();
_root.wlvl = random(4);
_root.pokemon = random(1);
Instance of Symbol 26 MovieClip "ash" in Frame 6
onClipEvent (enterFrame) {
if (_root.beenhere >= 1) {
_x = 150;
_y = 0;
_root.beenhere = 0;
}
if (_root.goo.hitTest(_x, _y, true)) {
_root.gotoAndPlay(6);
_root.beenhere = 1;
}
if (_root.grass.hitTest(_x, _y, true)) {
_root.pokemon = random(30);
if (_root.pokemon == 20) {
_root.scene = 1;
_root.gotoAndPlay(5);
}
}
if (_root.water.hitTest(_x, _y, true)) {
if (_root.collision == 1) {
_x = (_x + 5);
}
if (_root.collision == 2) {
_y = (_y + 5);
}
if (_root.collision == 3) {
_y = (_y - 5);
}
if (_root.collision == 4) {
x = x + 5;
}
}
if (Key.isDown(39)) {
_x = (_x + 5);
_root.ash.gotoAndPlay(1);
}
if (Key.isDown(37)) {
_x = (_x - 5);
_root.ash.gotoAndPlay(4);
}
if (Key.isDown(40)) {
_root.ash.gotoAndPlay(3);
_y = (_y + 5);
}
if (Key.isDown(38)) {
_root.ash.gotoAndPlay(2);
_y = (_y - 5);
}
}
Symbol 7 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 14 Button
on (press) {
_root.gotoAndPlay(3);
}
Symbol 26 MovieClip Frame 1
stop();
_root.collision = 1;
Symbol 26 MovieClip Frame 2
stop();
_root.collision = 2;
Symbol 26 MovieClip Frame 3
stop();
_root.collision = 3;
Symbol 26 MovieClip Frame 4
stop();
_root.collision = 4;