Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///defender_type_matchup_type1
- /* THIS SCRIPT SHOULD ONLY RUN ONE TIME SINCE CALCULATIONS ARE ACCUMULATIVE */
- /* the commented types are the type of the opponents attacking move */
- // IMMUNE --> global.aMoveTypeEffect = 0
- // IMMUNE --> global.bMoveTypeEffect = 0
- // NOT VERY EFFECTIVE --> global.aMoveTypeEffect = 0.5
- // NOT VERY EFFECTIVE --> global.bMoveTypeEffect = 0.5
- // NORMALLY EFFECTIVE --> global.aMoveTypeEffect = 1 (no need to type)
- // NORMALLY EFFECTIVE --> global.bMoveTypeEffect = 1 (no need to type)
- // SUPER EFFECTIVE --> global.aMoveTypeEffect = 2
- // SUPER EFFECTIVE --> global.bMoveTypeEffect = 2
- /* TEMPLATE
- // FIGHTING MOVE
- switch(global.aStoredPlyrType1) {
- case "Normal":
- case "Fire":
- case "Fighting":
- case "Water":
- case "Flying":
- case "Grass":
- case "Poison":
- case "Electric":
- case "Ground":
- case "Psychic":
- case "Rock":
- case "Ice":
- case "Bug":
- case "Dragon":
- case "Ghost":
- case "Dark":
- case "Steel":
- case "Fairy":
- case "Cosmic":
- }
- */
- // NORMAL MOVE
- if Var.MoveType[global.bMoveChosen] == "Normal" {
- switch(global.aStoredPlyrType1) {
- case "Rock": global.bMoveTypeEffect = 0.5; break; //NVE
- case "Ghost": global.bMoveTypeEffect = 0; break; //IMMUNE
- case "Steel": global.bMoveTypeEffect = 0.5; break; //NVE
- default: global.bMoveTypeEffect = 1;
- }
- }
- // FIRE MOVE
- if Var.MoveType[global.bMoveChosen] == "Fire" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 0.5; break;
- case "Water": global.bMoveTypeEffect = 0.5; break;
- case "Grass": global.bMoveTypeEffect = 2; break;
- case "Rock": global.bMoveTypeEffect = 0.5; break;
- case "Ice": global.bMoveTypeEffect = 2; break;
- case "Dragon": global.bMoveTypeEffect = 0.5; break;
- case "Steel": global.bMoveTypeEffect = 2; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // FIGHTING MOVE
- if Var.MoveType[global.bMoveChosen] == "Fighting" {
- switch(global.aStoredPlyrType1) {
- case "Normal": global.bMoveTypeEffect = 2; break;
- case "Flying": global.bMoveTypeEffect = 0.5; break;
- case "Poison": global.bMoveTypeEffect = 0.5; break;
- case "Psychic": global.bMoveTypeEffect = 0.5; break;
- case "Rock": global.bMoveTypeEffect = 2; break;
- case "Ice": global.bMoveTypeEffect = 2; break;
- case "Bug": global.bMoveTypeEffect = 0.5; break;
- case "Ghost": global.bMoveTypeEffect = 0; break;
- case "Dark": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 2; break;
- case "Fairy": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // WATER MOVE
- if Var.MoveType[global.bMoveChosen] == "Water" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 2; break;
- case "Water": global.bMoveTypeEffect = 0.5; break;
- case "Grass": global.bMoveTypeEffect = 0.5; break;
- case "Ground": global.bMoveTypeEffect = 2; break;
- case "Rock": global.bMoveTypeEffect = 2; break;
- case "Dragon": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // FLYING MOVE
- if Var.MoveType[global.bMoveChosen] == "Flying" {
- switch(global.aStoredPlyrType1) {
- case "Fighting": global.bMoveTypeEffect = 2; break;
- case "Grass": global.bMoveTypeEffect = 2; break;
- case "Electric": global.bMoveTypeEffect = 0.5; break;
- case "Rock": global.bMoveTypeEffect = 0.5; break;
- case "Ice": global.bMoveTypeEffect = 0.5; break;
- case "Bug": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // GRASS MOVE
- if Var.MoveType[global.bMoveChosen] == "Grass" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 0.5; break;
- case "Water": global.bMoveTypeEffect = 2; break;
- case "Flying": global.bMoveTypeEffect = 0.5; break;
- case "Grass": global.bMoveTypeEffect = 0.5; break;
- case "Poison": global.bMoveTypeEffect = 0.5; break;
- case "Ground": global.bMoveTypeEffect = 2; break;
- case "Rock": global.bMoveTypeEffect = 2; break;
- case "Bug": global.bMoveTypeEffect = 0.5; break;
- case "Dragon": global.bMoveTypeEffect = 0.5; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // POISON MOVE
- if Var.MoveType[global.bMoveChosen] == "Poison" {
- switch(global.aStoredPlyrType1) {
- case "Grass": global.bMoveTypeEffect = 2; break;
- case "Poison": global.bMoveTypeEffect = 0.5; break;
- case "Ground": global.bMoveTypeEffect = 0.5; break;
- case "Rock": global.bMoveTypeEffect = 0.5; break;
- case "Bug": global.bMoveTypeEffect = 0.5; break;
- case "Ghost": global.bMoveTypeEffect = 0.5; break;
- case "Dark": global.bMoveTypeEffect = 0.5; break;
- case "Steel": global.bMoveTypeEffect = 0; break;
- case "Fairy": global.bMoveTypeEffect = 2; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // ELECTRIC MOVE
- if Var.MoveType[global.bMoveChosen] == "Electric" {
- switch(global.aStoredPlyrType1) {
- case "Water": global.bMoveTypeEffect = 2; break;
- case "Flying": global.bMoveTypeEffect = 2; break;
- case "Grass": global.bMoveTypeEffect = 0.5; break;
- case "Electric": global.bMoveTypeEffect = 0.5; break;
- case "Ground": global.bMoveTypeEffect = 0; break;
- case "Dragon": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // GROUND MOVE
- if Var.MoveType[global.bMoveChosen] == "Ground" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 2; break;
- case "Flying": global.bMoveTypeEffect = 0; break;
- case "Grass": global.bMoveTypeEffect = 0.5; break;
- case "Electric": global.bMoveTypeEffect = 2; break;
- case "Rock": global.bMoveTypeEffect = 2; break;
- case "Bug": global.bMoveTypeEffect = 0.5; break;
- case "Steel": global.bMoveTypeEffect = 2; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- case "Poison": global.bMoveTypeEffect = 2; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // PSYCHIC MOVE
- if Var.MoveType[global.bMoveChosen] == "Psychic" {
- switch(global.aStoredPlyrType1) {
- case "Fighting": global.bMoveTypeEffect = 2; break;
- case "Poison": global.bMoveTypeEffect = 2; break;
- case "Psychic": global.bMoveTypeEffect = 0.5; break;
- case "Dark": global.bMoveTypeEffect = 0; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // ROCK MOVE
- if Var.MoveType[global.bMoveChosen] == "Rock" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 2; break;
- case "Fighting": global.bMoveTypeEffect = 0.5; break;
- case "Flying": global.bMoveTypeEffect = 2; break;
- case "Ground": global.bMoveTypeEffect = 0.5; break;
- case "Ice": global.bMoveTypeEffect = 2; break;
- case "Bug": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // ICE MOVE
- if Var.MoveType[global.bMoveChosen] == "Ice" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 0.5; break;
- case "Water": global.bMoveTypeEffect = 0.5; break;
- case "Flying": global.bMoveTypeEffect = 2; break;
- case "Grass": global.bMoveTypeEffect = 2; break;
- case "Ground": global.bMoveTypeEffect = 2; break;
- case "Ice": global.bMoveTypeEffect = 0.5; break;
- case "Dragon": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 0; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // BUG MOVE
- if Var.MoveType[global.bMoveChosen] == "Bug" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 0.5; break;
- case "Fighting": global.bMoveTypeEffect = 0.5; break;
- case "Flying": global.bMoveTypeEffect = 0.5; break;
- case "Grass": global.bMoveTypeEffect = 2; break;
- case "Poison": global.bMoveTypeEffect = 0.5; break;
- case "Ground": global.bMoveTypeEffect = 0.5; break;
- case "Psychic": global.bMoveTypeEffect = 2; break;
- case "Ghost": global.bMoveTypeEffect = 0.5; break;
- case "Dark": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Fairy": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // DRAGON MOVE
- if Var.MoveType[global.bMoveChosen] == "Dragon" {
- switch(global.aStoredPlyrType1) {
- case "Dragon": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Fairy": global.bMoveTypeEffect = 0; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // GHOST MOVE
- if Var.MoveType[global.bMoveChosen] == "Ghost" {
- switch(global.aStoredPlyrType1) {
- case "Normal": global.bMoveTypeEffect = 0; break;
- case "Psychic": global.bMoveTypeEffect = 2; break;
- case "Ghost": global.bMoveTypeEffect = 2; break;
- case "Dark": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // DARK MOVE
- if Var.MoveType[global.bMoveChosen] == "Dark" {
- switch(global.aStoredPlyrType1) {
- case "Fighting": global.bMoveTypeEffect = 0.5; break;
- case "Poison": global.bMoveTypeEffect = 0.5; break;
- case "Psychic": global.bMoveTypeEffect = 2; break;
- case "Ghost": global.bMoveTypeEffect = 2; break;
- case "Dark": global.bMoveTypeEffect = 0.5; break;
- case "Fairy": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 2; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // STEEL MOVE
- if Var.MoveType[global.bMoveChosen] == "Steel" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 0.5; break;
- case "Water": global.bMoveTypeEffect = 0.5; break;
- case "Electric": global.bMoveTypeEffect = 0.5; break;
- case "Rock": global.bMoveTypeEffect = 2; break;
- case "Ice": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Fairy": global.bMoveTypeEffect = 2; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // FAIRY MOVE
- if Var.MoveType[global.bMoveChosen] == "Fairy" {
- switch(global.aStoredPlyrType1) {
- case "Fire": global.bMoveTypeEffect = 0.5; break;
- case "Fighting": global.bMoveTypeEffect = 2; break;
- case "Poison": global.bMoveTypeEffect = 0.5; break;
- case "Dragon": global.bMoveTypeEffect = 2; break;
- case "Dark": global.bMoveTypeEffect = 2; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 2; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- // COSMIC MOVE
- if Var.MoveType[global.bMoveChosen] == "Cosmic" {
- switch(global.aStoredPlyrType1) {
- case "Normal": global.bMoveTypeEffect = 2; break;
- case "Fighting": global.bMoveTypeEffect = 2; break;
- case "Water": global.bMoveTypeEffect = 2; break;
- case "Flying": global.bMoveTypeEffect = 2; break;
- case "Electric": global.bMoveTypeEffect = 2; break;
- case "Ground": global.bMoveTypeEffect = 0.5; break;
- case "Psychic": global.bMoveTypeEffect = 0.5; break;
- case "Rock": global.bMoveTypeEffect = 0.5; break;
- case "Dragon": global.bMoveTypeEffect = 0.5; break;
- case "Ghost": global.bMoveTypeEffect = 0.5; break;
- case "Steel": global.bMoveTypeEffect = 0.5; break;
- case "Fairy": global.bMoveTypeEffect = 0.5; break;
- case "Cosmic": global.bMoveTypeEffect = 0.5; break;
- default: global.bMoveTypeEffect = 1;
- }
- }
- /* NEXT --- FACTOR IN THE <>SECOND TYPE<> IF APPLICABLE */
- if global.aStoredPlyrType2 != "" {
- defender_type_matchup_plyr1_type2();
- } else {
- global.bDamageInflicted *= global.bMoveTypeEffect;
- }
- ///defender_type_matchup_type2
- /* THIS SCRIPT SHOULD ONLY RUN ONE TIME SINCE CALCULATIONS ARE ACCUMULATIVE */
- /* the commented types are the type of the opponents attacking move */
- // IMMUNE --> global.aMoveTypeEffect *= 0
- // IMMUNE --> global.bMoveTypeEffect *= 0
- // NOT VERY EFFECTIVE --> global.aMoveTypeEffect *= 0.5
- // NOT VERY EFFECTIVE --> global.bMoveTypeEffect *= 0.5
- // NORMALLY EFFECTIVE --> global.aMoveTypeEffect *= 1 (no need to type)
- // NORMALLY EFFECTIVE --> global.bMoveTypeEffect *= 1 (no need to type)
- // SUPER EFFECTIVE --> global.aMoveTypeEffect *= 2
- // SUPER EFFECTIVE --> global.bMoveTypeEffect *= 2
- /* TEMPLATE
- // FIGHTING MOVE
- switch(global.aStoredPlyrType2) {
- case "Normal":
- case "Fire":
- case "Fighting":
- case "Water":
- case "Flying":
- case "Grass":
- case "Poison":
- case "Electric":
- case "Ground":
- case "Psychic":
- case "Rock":
- case "Ice":
- case "Bug":
- case "Dragon":
- case "Ghost":
- case "Dark":
- case "Steel":
- case "Fairy":
- case "Cosmic":
- }
- */
- // NORMAL MOVE
- if Var.MoveType[global.bMoveChosen] == "Normal" {
- switch(global.aStoredPlyrType2) {
- case "Rock": global.bMoveTypeEffect *= 0.5; break; //NVE
- case "Ghost": global.bMoveTypeEffect *= 0; break; //IMMUNE
- case "Steel": global.bMoveTypeEffect *= 0.5; break; //NVE
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // FIRE MOVE
- if Var.MoveType[global.bMoveChosen] == "Fire" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 0.5; break;
- case "Water": global.bMoveTypeEffect *= 0.5; break;
- case "Grass": global.bMoveTypeEffect *= 2; break;
- case "Rock": global.bMoveTypeEffect *= 0.5; break;
- case "Ice": global.bMoveTypeEffect *= 2; break;
- case "Dragon": global.bMoveTypeEffect *= 0.5; break;
- case "Steel": global.bMoveTypeEffect *= 2; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // FIGHTING MOVE
- if Var.MoveType[global.bMoveChosen] == "Fighting" {
- switch(global.aStoredPlyrType2) {
- case "Normal": global.bMoveTypeEffect *= 2; break;
- case "Flying": global.bMoveTypeEffect *= 0.5; break;
- case "Poison": global.bMoveTypeEffect *= 0.5; break;
- case "Psychic": global.bMoveTypeEffect *= 0.5; break;
- case "Rock": global.bMoveTypeEffect *= 2; break;
- case "Ice": global.bMoveTypeEffect *= 2; break;
- case "Bug": global.bMoveTypeEffect *= 0.5; break;
- case "Ghost": global.bMoveTypeEffect *= 0; break;
- case "Dark": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 2; break;
- case "Fairy": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // WATER MOVE
- if Var.MoveType[global.bMoveChosen] == "Water" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 2; break;
- case "Water": global.bMoveTypeEffect *= 0.5; break;
- case "Grass": global.bMoveTypeEffect *= 0.5; break;
- case "Ground": global.bMoveTypeEffect *= 2; break;
- case "Rock": global.bMoveTypeEffect *= 2; break;
- case "Dragon": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // FLYING MOVE
- if Var.MoveType[global.bMoveChosen] == "Flying" {
- switch(global.aStoredPlyrType2) {
- case "Fighting": global.bMoveTypeEffect *= 2; break;
- case "Grass": global.bMoveTypeEffect *= 2; break;
- case "Electric": global.bMoveTypeEffect *= 0.5; break;
- case "Rock": global.bMoveTypeEffect *= 0.5; break;
- case "Ice": global.bMoveTypeEffect *= 0.5; break;
- case "Bug": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // GRASS MOVE
- if Var.MoveType[global.bMoveChosen] == "Grass" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 0.5; break;
- case "Water": global.bMoveTypeEffect *= 2; break;
- case "Flying": global.bMoveTypeEffect *= 0.5; break;
- case "Grass": global.bMoveTypeEffect *= 0.5; break;
- case "Poison": global.bMoveTypeEffect *= 0.5; break;
- case "Ground": global.bMoveTypeEffect *= 2; break;
- case "Rock": global.bMoveTypeEffect *= 2; break;
- case "Bug": global.bMoveTypeEffect *= 0.5; break;
- case "Dragon": global.bMoveTypeEffect *= 0.5; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // POISON MOVE
- if Var.MoveType[global.bMoveChosen] == "Poison" {
- switch(global.aStoredPlyrType2) {
- case "Grass": global.bMoveTypeEffect *= 2; break;
- case "Poison": global.bMoveTypeEffect *= 0.5; break;
- case "Ground": global.bMoveTypeEffect *= 0.5; break;
- case "Rock": global.bMoveTypeEffect *= 0.5; break;
- case "Bug": global.bMoveTypeEffect *= 0.5; break;
- case "Ghost": global.bMoveTypeEffect *= 0.5; break;
- case "Dark": global.bMoveTypeEffect *= 0.5; break;
- case "Steel": global.bMoveTypeEffect *= 0; break;
- case "Fairy": global.bMoveTypeEffect *= 2; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // ELECTRIC MOVE
- if Var.MoveType[global.bMoveChosen] == "Electric" {
- switch(global.aStoredPlyrType2) {
- case "Water": global.bMoveTypeEffect *= 2; break;
- case "Flying": global.bMoveTypeEffect *= 2; break;
- case "Grass": global.bMoveTypeEffect *= 0.5; break;
- case "Electric": global.bMoveTypeEffect *= 0.5; break;
- case "Ground": global.bMoveTypeEffect *= 0; break;
- case "Dragon": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // GROUND MOVE
- if Var.MoveType[global.bMoveChosen] == "Ground" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 2; break;
- case "Flying": global.bMoveTypeEffect *= 0; break;
- case "Grass": global.bMoveTypeEffect *= 0.5; break;
- case "Electric": global.bMoveTypeEffect *= 2; break;
- case "Rock": global.bMoveTypeEffect *= 2; break;
- case "Bug": global.bMoveTypeEffect *= 0.5; break;
- case "Steel": global.bMoveTypeEffect *= 2; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- case "Poison": global.bMoveTypeEffect = 2; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // PSYCHIC MOVE
- if Var.MoveType[global.bMoveChosen] == "Psychic" {
- switch(global.aStoredPlyrType2) {
- case "Fighting": global.bMoveTypeEffect *= 2; break;
- case "Poison": global.bMoveTypeEffect *= 2; break;
- case "Psychic": global.bMoveTypeEffect *= 0.5; break;
- case "Dark": global.bMoveTypeEffect *= 0; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // ROCK MOVE
- if Var.MoveType[global.bMoveChosen] == "Rock" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 2; break;
- case "Fighting": global.bMoveTypeEffect *= 0.5; break;
- case "Flying": global.bMoveTypeEffect *= 2; break;
- case "Ground": global.bMoveTypeEffect *= 0.5; break;
- case "Ice": global.bMoveTypeEffect *= 2; break;
- case "Bug": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // ICE MOVE
- if Var.MoveType[global.bMoveChosen] == "Ice" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 0.5; break;
- case "Water": global.bMoveTypeEffect *= 0.5; break;
- case "Flying": global.bMoveTypeEffect *= 2; break;
- case "Grass": global.bMoveTypeEffect *= 2; break;
- case "Ground": global.bMoveTypeEffect *= 2; break;
- case "Ice": global.bMoveTypeEffect *= 0.5; break;
- case "Dragon": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 0; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // BUG MOVE
- if Var.MoveType[global.bMoveChosen] == "Bug" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 0.5; break;
- case "Fighting": global.bMoveTypeEffect *= 0.5; break;
- case "Flying": global.bMoveTypeEffect *= 0.5; break;
- case "Grass": global.bMoveTypeEffect *= 2; break;
- case "Poison": global.bMoveTypeEffect *= 0.5; break;
- case "Ground": global.bMoveTypeEffect *= 0.5; break;
- case "Psychic": global.bMoveTypeEffect *= 2; break;
- case "Ghost": global.bMoveTypeEffect *= 0.5; break;
- case "Dark": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Fairy": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // DRAGON MOVE
- if Var.MoveType[global.bMoveChosen] == "Dragon" {
- switch(global.aStoredPlyrType2) {
- case "Dragon": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Fairy": global.bMoveTypeEffect *= 0; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // GHOST MOVE
- if Var.MoveType[global.bMoveChosen] == "Ghost" {
- switch(global.aStoredPlyrType2) {
- case "Normal": global.bMoveTypeEffect *= 0; break;
- case "Psychic": global.bMoveTypeEffect *= 2; break;
- case "Ghost": global.bMoveTypeEffect *= 2; break;
- case "Dark": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // DARK MOVE
- if Var.MoveType[global.bMoveChosen] == "Dark" {
- switch(global.aStoredPlyrType2) {
- case "Fighting": global.bMoveTypeEffect *= 0.5; break;
- case "Poison": global.bMoveTypeEffect *= 0.5; break;
- case "Psychic": global.bMoveTypeEffect *= 2; break;
- case "Ghost": global.bMoveTypeEffect *= 2; break;
- case "Dark": global.bMoveTypeEffect *= 0.5; break;
- case "Fairy": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 2; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // STEEL MOVE
- if Var.MoveType[global.bMoveChosen] == "Steel" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 0.5; break;
- case "Water": global.bMoveTypeEffect *= 0.5; break;
- case "Electric": global.bMoveTypeEffect *= 0.5; break;
- case "Rock": global.bMoveTypeEffect *= 2; break;
- case "Ice": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Fairy": global.bMoveTypeEffect *= 2; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // FAIRY MOVE
- if Var.MoveType[global.bMoveChosen] == "Fairy" {
- switch(global.aStoredPlyrType2) {
- case "Fire": global.bMoveTypeEffect *= 0.5; break;
- case "Fighting": global.bMoveTypeEffect *= 2; break;
- case "Poison": global.bMoveTypeEffect *= 0.5; break;
- case "Dragon": global.bMoveTypeEffect *= 2; break;
- case "Dark": global.bMoveTypeEffect *= 2; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 2; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- // COSMIC MOVE
- if Var.MoveType[global.bMoveChosen] == "Cosmic" {
- switch(global.aStoredPlyrType2) {
- case "Normal": global.bMoveTypeEffect *= 2; break;
- case "Fighting": global.bMoveTypeEffect *= 2; break;
- case "Water": global.bMoveTypeEffect *= 2; break;
- case "Flying": global.bMoveTypeEffect *= 2; break;
- case "Electric": global.bMoveTypeEffect *= 2; break;
- case "Ground": global.bMoveTypeEffect *= 0.5; break;
- case "Psychic": global.bMoveTypeEffect *= 0.5; break;
- case "Rock": global.bMoveTypeEffect *= 0.5; break;
- case "Dragon": global.bMoveTypeEffect *= 0.5; break;
- case "Ghost": global.bMoveTypeEffect *= 0.5; break;
- case "Steel": global.bMoveTypeEffect *= 0.5; break;
- case "Fairy": global.bMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.bMoveTypeEffect *= 0.5; break;
- default: global.bMoveTypeEffect *= 1;
- }
- }
- global.bDamageInflicted *= global.bMoveTypeEffect;
- if Var.MoveAccuracy[global.bMoveChosen] < 1 && global.bMoveTypeEffect != 0 {
- var MoveChance = irandom_range(0,100);
- if MoveChance < 100-Var.MoveAccuracy[global.bMoveChosen]*100 { //if misses...
- global.bMoveTypeEffect = -1;
- global.bDamageInflicted *= 0;
- }
- }
- ///defender_type_matchup_type1
- /* THIS SCRIPT SHOULD ONLY RUN ONE TIME SINCE CALCULATIONS ARE ACCUMULATIVE */
- /* the commented types are the type of the opponents attacking move */
- // IMMUNE --> global.aMoveTypeEffect = 0
- // IMMUNE --> global.aMoveTypeEffect = 0
- // NOT VERY EFFECTIVE --> global.aMoveTypeEffect = 0.5
- // NOT VERY EFFECTIVE --> global.aMoveTypeEffect = 0.5
- // NORMALLY EFFECTIVE --> global.aMoveTypeEffect = 1 (no need to type)
- // NORMALLY EFFECTIVE --> global.aMoveTypeEffect = 1 (no need to type)
- // SUPER EFFECTIVE --> global.aMoveTypeEffect = 2
- // SUPER EFFECTIVE --> global.aMoveTypeEffect = 2
- /* TEMPLATE
- // FIGHTING MOVE
- switch(global.bStoredPlyrType1) {
- case "Normal":
- case "Fire":
- case "Fighting":
- case "Water":
- case "Flying":
- case "Grass":
- case "Poison":
- case "Electric":
- case "Ground":
- case "Psychic":
- case "Rock":
- case "Ice":
- case "Bug":
- case "Dragon":
- case "Ghost":
- case "Dark":
- case "Steel":
- case "Fairy":
- case "Cosmic":
- }
- */
- // NORMAL MOVE
- if Var.MoveType[global.aMoveChosen] == "Normal" {
- switch(global.bStoredPlyrType1) {
- case "Rock": global.aMoveTypeEffect = 0.5; break; //NVE
- case "Ghost": global.aMoveTypeEffect = 0; break; //IMMUNE
- case "Steel": global.aMoveTypeEffect = 0.5; break; //NVE
- default: global.aMoveTypeEffect = 1;
- }
- }
- // FIRE MOVE
- if Var.MoveType[global.aMoveChosen] == "Fire" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 0.5; break;
- case "Water": global.aMoveTypeEffect = 0.5; break;
- case "Grass": global.aMoveTypeEffect = 2; break;
- case "Rock": global.aMoveTypeEffect = 0.5; break;
- case "Ice": global.aMoveTypeEffect = 2; break;
- case "Dragon": global.aMoveTypeEffect = 0.5; break;
- case "Steel": global.aMoveTypeEffect = 2; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // FIGHTING MOVE
- if Var.MoveType[global.aMoveChosen] == "Fighting" {
- switch(global.bStoredPlyrType1) {
- case "Normal": global.aMoveTypeEffect = 2; break;
- case "Flying": global.aMoveTypeEffect = 0.5; break;
- case "Poison": global.aMoveTypeEffect = 0.5; break;
- case "Psychic": global.aMoveTypeEffect = 0.5; break;
- case "Rock": global.aMoveTypeEffect = 2; break;
- case "Ice": global.aMoveTypeEffect = 2; break;
- case "Bug": global.aMoveTypeEffect = 0.5; break;
- case "Ghost": global.aMoveTypeEffect = 0; break;
- case "Dark": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 2; break;
- case "Fairy": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // WATER MOVE
- if Var.MoveType[global.aMoveChosen] == "Water" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 2; break;
- case "Water": global.aMoveTypeEffect = 0.5; break;
- case "Grass": global.aMoveTypeEffect = 0.5; break;
- case "Ground": global.aMoveTypeEffect = 2; break;
- case "Rock": global.aMoveTypeEffect = 2; break;
- case "Dragon": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // FLYING MOVE
- if Var.MoveType[global.aMoveChosen] == "Flying" {
- switch(global.bStoredPlyrType1) {
- case "Fighting": global.aMoveTypeEffect = 2; break;
- case "Grass": global.aMoveTypeEffect = 2; break;
- case "Electric": global.aMoveTypeEffect = 0.5; break;
- case "Rock": global.aMoveTypeEffect = 0.5; break;
- case "Ice": global.aMoveTypeEffect = 0.5; break;
- case "Bug": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // GRASS MOVE
- if Var.MoveType[global.aMoveChosen] == "Grass" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 0.5; break;
- case "Water": global.aMoveTypeEffect = 2; break;
- case "Flying": global.aMoveTypeEffect = 0.5; break;
- case "Grass": global.aMoveTypeEffect = 0.5; break;
- case "Poison": global.aMoveTypeEffect = 0.5; break;
- case "Ground": global.aMoveTypeEffect = 2; break;
- case "Rock": global.aMoveTypeEffect = 2; break;
- case "Bug": global.aMoveTypeEffect = 0.5; break;
- case "Dragon": global.aMoveTypeEffect = 0.5; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // POISON MOVE
- if Var.MoveType[global.aMoveChosen] == "Poison" {
- switch(global.bStoredPlyrType1) {
- case "Grass": global.aMoveTypeEffect = 2; break;
- case "Poison": global.aMoveTypeEffect = 0.5; break;
- case "Ground": global.aMoveTypeEffect = 0.5; break;
- case "Rock": global.aMoveTypeEffect = 0.5; break;
- case "Bug": global.aMoveTypeEffect = 0.5; break;
- case "Ghost": global.aMoveTypeEffect = 0.5; break;
- case "Dark": global.aMoveTypeEffect = 0.5; break;
- case "Steel": global.aMoveTypeEffect = 0; break;
- case "Fairy": global.aMoveTypeEffect = 2; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // ELECTRIC MOVE
- if Var.MoveType[global.aMoveChosen] == "Electric" {
- switch(global.bStoredPlyrType1) {
- case "Water": global.aMoveTypeEffect = 2; break;
- case "Flying": global.aMoveTypeEffect = 2; break;
- case "Grass": global.aMoveTypeEffect = 0.5; break;
- case "Electric": global.aMoveTypeEffect = 0.5; break;
- case "Ground": global.aMoveTypeEffect = 0; break;
- case "Dragon": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // GROUND MOVE
- if Var.MoveType[global.aMoveChosen] == "Ground" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 2; break;
- case "Flying": global.aMoveTypeEffect = 0; break;
- case "Grass": global.aMoveTypeEffect = 0.5; break;
- case "Electric": global.aMoveTypeEffect = 2; break;
- case "Rock": global.aMoveTypeEffect = 2; break;
- case "Bug": global.aMoveTypeEffect = 0.5; break;
- case "Steel": global.aMoveTypeEffect = 2; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- case "Poison": global.aMoveTypeEffect = 2; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // PSYCHIC MOVE
- if Var.MoveType[global.aMoveChosen] == "Psychic" {
- switch(global.bStoredPlyrType1) {
- case "Fighting": global.aMoveTypeEffect = 2; break;
- case "Poison": global.aMoveTypeEffect = 2; break;
- case "Psychic": global.aMoveTypeEffect = 0.5; break;
- case "Dark": global.aMoveTypeEffect = 0; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // ROCK MOVE
- if Var.MoveType[global.aMoveChosen] == "Rock" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 2; break;
- case "Fighting": global.aMoveTypeEffect = 0.5; break;
- case "Flying": global.aMoveTypeEffect = 2; break;
- case "Ground": global.aMoveTypeEffect = 0.5; break;
- case "Ice": global.aMoveTypeEffect = 2; break;
- case "Bug": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // ICE MOVE
- if Var.MoveType[global.aMoveChosen] == "Ice" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 0.5; break;
- case "Water": global.aMoveTypeEffect = 0.5; break;
- case "Flying": global.aMoveTypeEffect = 2; break;
- case "Grass": global.aMoveTypeEffect = 2; break;
- case "Ground": global.aMoveTypeEffect = 2; break;
- case "Ice": global.aMoveTypeEffect = 0.5; break;
- case "Dragon": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 0; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // BUG MOVE
- if Var.MoveType[global.aMoveChosen] == "Bug" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 0.5; break;
- case "Fighting": global.aMoveTypeEffect = 0.5; break;
- case "Flying": global.aMoveTypeEffect = 0.5; break;
- case "Grass": global.aMoveTypeEffect = 2; break;
- case "Poison": global.aMoveTypeEffect = 0.5; break;
- case "Ground": global.aMoveTypeEffect = 0.5; break;
- case "Psychic": global.aMoveTypeEffect = 2; break;
- case "Ghost": global.aMoveTypeEffect = 0.5; break;
- case "Dark": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Fairy": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // DRAGON MOVE
- if Var.MoveType[global.aMoveChosen] == "Dragon" {
- switch(global.bStoredPlyrType1) {
- case "Dragon": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Fairy": global.aMoveTypeEffect = 0; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // GHOST MOVE
- if Var.MoveType[global.aMoveChosen] == "Ghost" {
- switch(global.bStoredPlyrType1) {
- case "Normal": global.aMoveTypeEffect = 0; break;
- case "Psychic": global.aMoveTypeEffect = 2; break;
- case "Ghost": global.aMoveTypeEffect = 2; break;
- case "Dark": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // DARK MOVE
- if Var.MoveType[global.aMoveChosen] == "Dark" {
- switch(global.bStoredPlyrType1) {
- case "Fighting": global.aMoveTypeEffect = 0.5; break;
- case "Poison": global.aMoveTypeEffect = 0.5; break;
- case "Psychic": global.aMoveTypeEffect = 2; break;
- case "Ghost": global.aMoveTypeEffect = 2; break;
- case "Dark": global.aMoveTypeEffect = 0.5; break;
- case "Fairy": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 2; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // STEEL MOVE
- if Var.MoveType[global.aMoveChosen] == "Steel" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 0.5; break;
- case "Water": global.aMoveTypeEffect = 0.5; break;
- case "Electric": global.aMoveTypeEffect = 0.5; break;
- case "Rock": global.aMoveTypeEffect = 2; break;
- case "Ice": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Fairy": global.aMoveTypeEffect = 2; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // FAIRY MOVE
- if Var.MoveType[global.aMoveChosen] == "Fairy" {
- switch(global.bStoredPlyrType1) {
- case "Fire": global.aMoveTypeEffect = 0.5; break;
- case "Fighting": global.aMoveTypeEffect = 2; break;
- case "Poison": global.aMoveTypeEffect = 0.5; break;
- case "Dragon": global.aMoveTypeEffect = 2; break;
- case "Dark": global.aMoveTypeEffect = 2; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 2; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- // COSMIC MOVE
- if Var.MoveType[global.aMoveChosen] == "Cosmic" {
- switch(global.bStoredPlyrType1) {
- case "Normal": global.aMoveTypeEffect = 2; break;
- case "Fighting": global.aMoveTypeEffect = 2; break;
- case "Water": global.aMoveTypeEffect = 2; break;
- case "Flying": global.aMoveTypeEffect = 2; break;
- case "Electric": global.aMoveTypeEffect = 2; break;
- case "Ground": global.aMoveTypeEffect = 0.5; break;
- case "Psychic": global.aMoveTypeEffect = 0.5; break;
- case "Rock": global.aMoveTypeEffect = 0.5; break;
- case "Dragon": global.aMoveTypeEffect = 0.5; break;
- case "Ghost": global.aMoveTypeEffect = 0.5; break;
- case "Steel": global.aMoveTypeEffect = 0.5; break;
- case "Fairy": global.aMoveTypeEffect = 0.5; break;
- case "Cosmic": global.aMoveTypeEffect = 0.5; break;
- default: global.aMoveTypeEffect = 1;
- }
- }
- /* NEXT --- FACTOR IN THE <>SECOND TYPE<> IF APPLICABLE */
- if global.bStoredPlyrType2 != "" {
- defender_type_matchup_plyr2_type2();
- } else {
- global.aDamageInflicted *= global.aMoveTypeEffect;
- }
- ///defender_type_matchup_type1
- /* THIS SCRIPT SHOULD ONLY RUN ONE TIME SINCE CALCULATIONS ARE ACCUMULATIVE */
- /* the commented types are the type of the opponents attacking move */
- // IMMUNE --> global.aMoveTypeEffect *= 0
- // IMMUNE --> global.aMoveTypeEffect *= 0
- // NOT VERY EFFECTIVE --> global.aMoveTypeEffect *= 0.5
- // NOT VERY EFFECTIVE --> global.aMoveTypeEffect *= 0.5
- // NORMALLY EFFECTIVE --> global.aMoveTypeEffect *= 1 (no need to type)
- // NORMALLY EFFECTIVE --> global.aMoveTypeEffect *= 1 (no need to type)
- // SUPER EFFECTIVE --> global.aMoveTypeEffect *= 2
- // SUPER EFFECTIVE --> global.aMoveTypeEffect *= 2
- /* TEMPLATE
- // FIGHTING MOVE
- switch(global.bStoredPlyrType2) {
- case "Normal":
- case "Fire":
- case "Fighting":
- case "Water":
- case "Flying":
- case "Grass":
- case "Poison":
- case "Electric":
- case "Ground":
- case "Psychic":
- case "Rock":
- case "Ice":
- case "Bug":
- case "Dragon":
- case "Ghost":
- case "Dark":
- case "Steel":
- case "Fairy":
- case "Cosmic":
- }
- */
- // NORMAL MOVE
- if Var.MoveType[global.aMoveChosen] == "Normal" {
- switch(global.bStoredPlyrType2) {
- case "Rock": global.aMoveTypeEffect *= 0.5; break; //NVE
- case "Ghost": global.aMoveTypeEffect *= 0; break; //IMMUNE
- case "Steel": global.aMoveTypeEffect *= 0.5; break; //NVE
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // FIRE MOVE
- if Var.MoveType[global.aMoveChosen] == "Fire" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 0.5; break;
- case "Water": global.aMoveTypeEffect *= 0.5; break;
- case "Grass": global.aMoveTypeEffect *= 2; break;
- case "Rock": global.aMoveTypeEffect *= 0.5; break;
- case "Ice": global.aMoveTypeEffect *= 2; break;
- case "Dragon": global.aMoveTypeEffect *= 0.5; break;
- case "Steel": global.aMoveTypeEffect *= 2; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // FIGHTING MOVE
- if Var.MoveType[global.aMoveChosen] == "Fighting" {
- switch(global.bStoredPlyrType2) {
- case "Normal": global.aMoveTypeEffect *= 2; break;
- case "Flying": global.aMoveTypeEffect *= 0.5; break;
- case "Poison": global.aMoveTypeEffect *= 0.5; break;
- case "Psychic": global.aMoveTypeEffect *= 0.5; break;
- case "Rock": global.aMoveTypeEffect *= 2; break;
- case "Ice": global.aMoveTypeEffect *= 2; break;
- case "Bug": global.aMoveTypeEffect *= 0.5; break;
- case "Ghost": global.aMoveTypeEffect *= 0; break;
- case "Dark": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 2; break;
- case "Fairy": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // WATER MOVE
- if Var.MoveType[global.aMoveChosen] == "Water" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 2; break;
- case "Water": global.aMoveTypeEffect *= 0.5; break;
- case "Grass": global.aMoveTypeEffect *= 0.5; break;
- case "Ground": global.aMoveTypeEffect *= 2; break;
- case "Rock": global.aMoveTypeEffect *= 2; break;
- case "Dragon": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // FLYING MOVE
- if Var.MoveType[global.aMoveChosen] == "Flying" {
- switch(global.bStoredPlyrType2) {
- case "Fighting": global.aMoveTypeEffect *= 2; break;
- case "Grass": global.aMoveTypeEffect *= 2; break;
- case "Electric": global.aMoveTypeEffect *= 0.5; break;
- case "Rock": global.aMoveTypeEffect *= 0.5; break;
- case "Ice": global.aMoveTypeEffect *= 0.5; break;
- case "Bug": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // GRASS MOVE
- if Var.MoveType[global.aMoveChosen] == "Grass" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 0.5; break;
- case "Water": global.aMoveTypeEffect *= 2; break;
- case "Flying": global.aMoveTypeEffect *= 0.5; break;
- case "Grass": global.aMoveTypeEffect *= 0.5; break;
- case "Poison": global.aMoveTypeEffect *= 0.5; break;
- case "Ground": global.aMoveTypeEffect *= 2; break;
- case "Rock": global.aMoveTypeEffect *= 2; break;
- case "Bug": global.aMoveTypeEffect *= 0.5; break;
- case "Dragon": global.aMoveTypeEffect *= 0.5; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // POISON MOVE
- if Var.MoveType[global.aMoveChosen] == "Poison" {
- switch(global.bStoredPlyrType2) {
- case "Grass": global.aMoveTypeEffect *= 2; break;
- case "Poison": global.aMoveTypeEffect *= 0.5; break;
- case "Ground": global.aMoveTypeEffect *= 0.5; break;
- case "Rock": global.aMoveTypeEffect *= 0.5; break;
- case "Bug": global.aMoveTypeEffect *= 0.5; break;
- case "Ghost": global.aMoveTypeEffect *= 0.5; break;
- case "Dark": global.aMoveTypeEffect *= 0.5; break;
- case "Steel": global.aMoveTypeEffect *= 0; break;
- case "Fairy": global.aMoveTypeEffect *= 2; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // ELECTRIC MOVE
- if Var.MoveType[global.aMoveChosen] == "Electric" {
- switch(global.bStoredPlyrType2) {
- case "Water": global.aMoveTypeEffect *= 2; break;
- case "Flying": global.aMoveTypeEffect *= 2; break;
- case "Grass": global.aMoveTypeEffect *= 0.5; break;
- case "Electric": global.aMoveTypeEffect *= 0.5; break;
- case "Ground": global.aMoveTypeEffect *= 0; break;
- case "Dragon": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // GROUND MOVE
- if Var.MoveType[global.aMoveChosen] == "Ground" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 2; break;
- case "Flying": global.aMoveTypeEffect *= 0; break;
- case "Grass": global.aMoveTypeEffect *= 0.5; break;
- case "Electric": global.aMoveTypeEffect *= 2; break;
- case "Rock": global.aMoveTypeEffect *= 2; break;
- case "Bug": global.aMoveTypeEffect *= 0.5; break;
- case "Steel": global.aMoveTypeEffect *= 2; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- case "Poison": global.aMoveTypeEffect = 2; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // PSYCHIC MOVE
- if Var.MoveType[global.aMoveChosen] == "Psychic" {
- switch(global.bStoredPlyrType2) {
- case "Fighting": global.aMoveTypeEffect *= 2; break;
- case "Poison": global.aMoveTypeEffect *= 2; break;
- case "Psychic": global.aMoveTypeEffect *= 0.5; break;
- case "Dark": global.aMoveTypeEffect *= 0; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // ROCK MOVE
- if Var.MoveType[global.aMoveChosen] == "Rock" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 2; break;
- case "Fighting": global.aMoveTypeEffect *= 0.5; break;
- case "Flying": global.aMoveTypeEffect *= 2; break;
- case "Ground": global.aMoveTypeEffect *= 0.5; break;
- case "Ice": global.aMoveTypeEffect *= 2; break;
- case "Bug": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // ICE MOVE
- if Var.MoveType[global.aMoveChosen] == "Ice" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 0.5; break;
- case "Water": global.aMoveTypeEffect *= 0.5; break;
- case "Flying": global.aMoveTypeEffect *= 2; break;
- case "Grass": global.aMoveTypeEffect *= 2; break;
- case "Ground": global.aMoveTypeEffect *= 2; break;
- case "Ice": global.aMoveTypeEffect *= 0.5; break;
- case "Dragon": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 0; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // BUG MOVE
- if Var.MoveType[global.aMoveChosen] == "Bug" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 0.5; break;
- case "Fighting": global.aMoveTypeEffect *= 0.5; break;
- case "Flying": global.aMoveTypeEffect *= 0.5; break;
- case "Grass": global.aMoveTypeEffect *= 2; break;
- case "Poison": global.aMoveTypeEffect *= 0.5; break;
- case "Ground": global.aMoveTypeEffect *= 0.5; break;
- case "Psychic": global.aMoveTypeEffect *= 2; break;
- case "Ghost": global.aMoveTypeEffect *= 0.5; break;
- case "Dark": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Fairy": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // DRAGON MOVE
- if Var.MoveType[global.aMoveChosen] == "Dragon" {
- switch(global.bStoredPlyrType2) {
- case "Dragon": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Fairy": global.aMoveTypeEffect *= 0; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // GHOST MOVE
- if Var.MoveType[global.aMoveChosen] == "Ghost" {
- switch(global.bStoredPlyrType2) {
- case "Normal": global.aMoveTypeEffect *= 0; break;
- case "Psychic": global.aMoveTypeEffect *= 2; break;
- case "Ghost": global.aMoveTypeEffect *= 2; break;
- case "Dark": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // DARK MOVE
- if Var.MoveType[global.aMoveChosen] == "Dark" {
- switch(global.bStoredPlyrType2) {
- case "Fighting": global.aMoveTypeEffect *= 0.5; break;
- case "Poison": global.aMoveTypeEffect *= 0.5; break;
- case "Psychic": global.aMoveTypeEffect *= 2; break;
- case "Ghost": global.aMoveTypeEffect *= 2; break;
- case "Dark": global.aMoveTypeEffect *= 0.5; break;
- case "Fairy": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 2; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // STEEL MOVE
- if Var.MoveType[global.aMoveChosen] == "Steel" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 0.5; break;
- case "Water": global.aMoveTypeEffect *= 0.5; break;
- case "Electric": global.aMoveTypeEffect *= 0.5; break;
- case "Rock": global.aMoveTypeEffect *= 2; break;
- case "Ice": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Fairy": global.aMoveTypeEffect *= 2; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // FAIRY MOVE
- if Var.MoveType[global.aMoveChosen] == "Fairy" {
- switch(global.bStoredPlyrType2) {
- case "Fire": global.aMoveTypeEffect *= 0.5; break;
- case "Fighting": global.aMoveTypeEffect *= 2; break;
- case "Poison": global.aMoveTypeEffect *= 0.5; break;
- case "Dragon": global.aMoveTypeEffect *= 2; break;
- case "Dark": global.aMoveTypeEffect *= 2; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 2; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- // COSMIC MOVE
- if Var.MoveType[global.aMoveChosen] == "Cosmic" {
- switch(global.bStoredPlyrType2) {
- case "Normal": global.aMoveTypeEffect *= 2; break;
- case "Fighting": global.aMoveTypeEffect *= 2; break;
- case "Water": global.aMoveTypeEffect *= 2; break;
- case "Flying": global.aMoveTypeEffect *= 2; break;
- case "Electric": global.aMoveTypeEffect *= 2; break;
- case "Ground": global.aMoveTypeEffect *= 0.5; break;
- case "Psychic": global.aMoveTypeEffect *= 0.5; break;
- case "Rock": global.aMoveTypeEffect *= 0.5; break;
- case "Dragon": global.aMoveTypeEffect *= 0.5; break;
- case "Ghost": global.aMoveTypeEffect *= 0.5; break;
- case "Steel": global.aMoveTypeEffect *= 0.5; break;
- case "Fairy": global.aMoveTypeEffect *= 0.5; break;
- case "Cosmic": global.aMoveTypeEffect *= 0.5; break;
- default: global.aMoveTypeEffect *= 1;
- }
- }
- global.aDamageInflicted *= global.aMoveTypeEffect;
- if Var.MoveAccuracy[global.aMoveChosen] < 1 && global.aMoveTypeEffect != 0 {
- var MoveChance = irandom_range(0,100);
- if MoveChance < 100-Var.MoveAccuracy[global.aMoveChosen]*100 { //if misses...
- global.aMoveTypeEffect = -1;
- global.aDamageInflicted *= 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement