mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
66 lines
No EOL
2.1 KiB
JavaScript
66 lines
No EOL
2.1 KiB
JavaScript
var C999_Common_TapeGag_CurrentStage = 0;
|
|
var C999_Common_TapeGag_HasLooseTape = false;
|
|
|
|
// Chapter Common - TapeGag Load
|
|
function C999_Common_TapeGag_Load() {
|
|
|
|
// Load the scene parameters
|
|
LeaveIcon = "Leave";
|
|
LoadInteractions();
|
|
|
|
// Set the correct starting stage
|
|
if (PlayerHasLockedInventory("TapeGag") == true) C999_Common_TapeGag_CurrentStage = 10;
|
|
else C999_Common_TapeGag_CurrentStage = 0;
|
|
|
|
// If the player has some loose tape
|
|
C999_Common_TapeGag_HasLooseTape = PlayerHasInventory("TapeGag");
|
|
|
|
}
|
|
|
|
// Chapter Common - Tapegag Run, we draw the regular player image if the item is on
|
|
function C999_Common_TapeGag_Run() {
|
|
BuildInteraction(C999_Common_TapeGag_CurrentStage);
|
|
if (PlayerHasLockedInventory("TapeGag") && (OverridenIntroImage == "")) DrawPlayerImage(150, 0);
|
|
}
|
|
|
|
// Chapter Common - TapeGag Click, allow regular interactions and clicking on another item
|
|
function C999_Common_TapeGag_Click() {
|
|
OverridenIntroImage = "";
|
|
ClickInteraction(C999_Common_TapeGag_CurrentStage);
|
|
InventoryClick(GetClickedInventory(), LeaveChapter, LeaveScreen);
|
|
}
|
|
|
|
// Chapter Common - Self TapeGag
|
|
function C999_Common_TapeGag_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("TapeGag", 1);
|
|
PlayerLockInventory("TapeGag");
|
|
C999_Common_TapeGag_HasLooseTape = PlayerHasInventory("TapeGag");
|
|
} else {
|
|
OverridenIntroText = GetText("BadTiming");
|
|
C999_Common_TapeGag_CurrentStage = 0;
|
|
}
|
|
}
|
|
|
|
// Chapter Common - Self Ungag, leave the screen if no tape is left
|
|
function C999_Common_TapeGag_SelfUngag() {
|
|
PlayerUnlockInventory("TapeGag");
|
|
if (!PlayerHasInventory("TapeGag")) SetScene(LeaveChapter, LeaveScreen);
|
|
}
|
|
|
|
// Chapter Common - Show the item image
|
|
function C999_Common_TapeGag_ShowImage() {
|
|
OverridenIntroImage = "Tape.jpg";
|
|
} |