bondage-college-mirr/C999_Common/BallGag/Script.js
wildsj bbb9e60f51 Rope group twins and Cassi ()
* More SlaveTwin

* To cut or not to cut

* SlaveTwin Beta Ready

The SlaveTwin section should be ready for some testing, but the accompanying RopeGroup section still needs a lot of work doing to it.

* Cleanup random selection function

This still uses the previous random number selection method, it's just been cleaned up to make it more readable and to avoid duplication.

As far as I could tell, there was no reason for the `C101_KinbakuClub_Slaves_Random#` variables to be global. So that's been incorperated into the function to keep things cleaner.

* RopeGroup tidied for Alhpa

* Change going to K Club.

* More KC fitting in

* Can leave KC

Changed the door in the club, player can now leave if not in bondage.

* A bit more RopeGroup

* Twins Stage 1

First part of main interaction with either twin.

* upload 14-11-2018

* Update Cassi 1

* Return to dorm added

* RG bug fix

Fixed reference error

* Cassi with rope group release

* Disabled save function in club
2019-01-06 14:24:21 -05:00

66 lines
No EOL
2.1 KiB
JavaScript

var C999_Common_BallGag_CurrentStage = 0;
var C999_Common_BallGag_HasLooseBallGag = false;
// Chapter Common - BallGag Load
function C999_Common_BallGag_Load() {
// Load the scene parameters
LeaveIcon = "Leave";
LoadInteractions();
// Set the correct stage
if (PlayerHasLockedInventory("BallGag")) C999_Common_BallGag_CurrentStage = 10;
else C999_Common_BallGag_CurrentStage = 0;
// If the player has a loose BallGag
C999_Common_BallGag_HasLooseBallGag = PlayerHasInventory("BallGag");
}
// Chapter Common - BallGag Run, we draw the regular player image if the item is on
function C999_Common_BallGag_Run() {
BuildInteraction(C999_Common_BallGag_CurrentStage);
if (PlayerHasLockedInventory("BallGag") && (OverridenIntroImage == "")) DrawPlayerImage(150, 0);
}
// Chapter Common - BallGag Click, allow regular interactions and clicking on another item
function C999_Common_BallGag_Click() {
OverridenIntroImage = "";
ClickInteraction(C999_Common_BallGag_CurrentStage);
InventoryClick(GetClickedInventory(), LeaveChapter, LeaveScreen);
}
// Chapter Common - Self BallGag
function C999_Common_BallGag_SelfGag() {
if ((Common_BondageAllowed) && (Common_SelfBondageAllowed)) {
if (PlayerHasLockedInventory("PantieGag") || PlayerHasLockedInventory("SockGag")) {
if (PlayerHasLockedInventory("PantieGag")) {
PlayerUngag();
PlayerLockInventory("PantieGag");
PlayerRemoveInventory("PantieGag", 1);
}
if (PlayerHasLockedInventory("SockGag")) {
PlayerUngag();
PlayerLockInventory("SockGag");
PlayerRemoveInventory("SockGag", 1);
}
} else PlayerUngag();
PlayerRemoveInventory("BallGag", 1);
PlayerLockInventory("BallGag");
C999_Common_BallGag_HasLooseBallGag = PlayerHasInventory("BallGag");
} else {
OverridenIntroText = GetText("BadTiming");
C999_Common_BallGag_CurrentStage = 0;
}
}
// Chapter Common - Self Ungag
function C999_Common_BallGag_SelfUngag() {
PlayerUnlockInventory("BallGag");
PlayerAddInventory("BallGag", 1);
}
// Chapter Common - Show the item image
function C999_Common_BallGag_ShowImage() {
OverridenIntroImage = "BallGag.jpg";
}