bondage-college-mirr/Cheat.js
Ben987 a3b43ec073 Cheaters version final tests
Cheaters version final tests
2018-04-28 17:28:13 -04:00

54 lines
No EOL
2.2 KiB
JavaScript

var CheatAllow = false;
// Receives cheat keys
function CheatKey() {
// No cheats until the player has a name
if (Common_PlayerName != "") {
// In a fight or a race, the user can press * to win automatically
if (!FightEnded && (FightTimer > 0)) { if (KeyPress == 42) FightEnd(true); return; }
if (!DoubleFightEnded && (DoubleFightTimer > 0)) { if (KeyPress == 42) DoubleFightEnd(true); return; }
if (!RaceEnded && (RaceTimer > 0)) { if (KeyPress == 42) { RaceProgress = RaceGoal; RaceEnd(true); } return; }
// Actors and inventory cheat
if (CurrentActor != "") CheatActor();
CheatSkill();
CheatInventory();
}
}
// Cheats to change actor love or submission (from 1 to 4)
function CheatActor() {
if (KeyPress == 49) ActorChangeAttitude(1, 0);
if (KeyPress == 50) ActorChangeAttitude(-1, 0);
if (KeyPress == 51) ActorChangeAttitude(0, 1);
if (KeyPress == 52) ActorChangeAttitude(0, -1);
}
// Cheats to gain a skill (from 5 to 9)
function CheatSkill() {
if (KeyPress == 53) PlayerAddSkill("Arts", 1);
if (KeyPress == 54) PlayerAddSkill("Fighting", 1);
if (KeyPress == 55) PlayerAddSkill("RopeMastery", 1);
if (KeyPress == 56) PlayerAddSkill("Seduction", 1);
if (KeyPress == 57) PlayerAddSkill("Sports", 1);
}
// Cheats to add inventory (each letter represent an item)
function CheatInventory() {
if ((KeyPress == 65) || (KeyPress == 97)) PlayerAddInventory("Armbinder", 1);
if ((KeyPress == 66) || (KeyPress == 98)) PlayerAddInventory("BallGag", 1);
if ((KeyPress == 67) || (KeyPress == 99)) PlayerAddInventory("Cuffs", 1);
if ((KeyPress == 70) || (KeyPress == 102)) PlayerAddInventory("ChastityBelt", 1);
if ((KeyPress == 71) || (KeyPress == 103)) PlayerAddInventory("ClothGag", 1);
if ((KeyPress == 75) || (KeyPress == 107)) PlayerAddInventory("CuffsKey", 1);
if ((KeyPress == 76) || (KeyPress == 108)) PlayerAddInventory("Collar", 1);
if ((KeyPress == 80) || (KeyPress == 112)) PlayerAddInventory("Crop", 1);
if ((KeyPress == 82) || (KeyPress == 114)) PlayerAddInventory("Rope", 1);
if ((KeyPress == 83) || (KeyPress == 115)) PlayerAddInventory("SleepingPill", 1);
if ((KeyPress == 84) || (KeyPress == 116)) PlayerAddInventory("TapeGag", 1);
if ((KeyPress == 86) || (KeyPress == 118)) PlayerAddInventory("VibratingEgg", 1);
}