Can someone explain to me how grapples work? I'm looking at the Vanae fight and seeing
private function vanaeGrapple(target:Creature):void
{
// Effect: Grapple chance. Failure leads to nothing, success/don't struggle leads to target grappled and consecutive "lubricate" attacks until the pin is broken or victory occurs.
if (!target.hasStatusEffect("Grappled"))
{
output("Sliding up to you as you are incapacitated, you feel her");
if (this is MaidenVanae) output(" short");
output(" tentacle skirt begin to");
if (this is MaidenVanae) output(" awkwardly");
output(" wrap around your waist");
if (!(this is MaidenVanae)) output(" and lower body");
output(". You can feel her suckers begin to stick to your skin - she's trying to pin you down!");
// [Failure]:
if (combatMiss(this, target)) output(" You forcibly shake her off of you; it's a close call. If she'd pinned you, who knows what would have happened!");
else
{
// [Success/Don't Struggle]:
output(" You can't shake her off you as she wraps around your lower body and [pc.hips], pulling herself flush against your [pc.skin]. Her [enemy.breasts] are rubbing against you, coating you in her [enemy.milk]...");
output("\n\nYou can feel your cheeks begin to flush. All of a sudden you start to lose the ability to move your limbs, but not the ability to feel what's happening to them. And what is happening feels <i>good</i>...");
target.createStatusEffect("Grappled", 0, 30, 0, 0, false, "Constrict", "You're pinned in a grapple.", true, 0);
applyDamage(new TypeCollection( { tease: 8 + rand(8) } ), this, target, "minimal");
}
}
else
{
output("You are helpless as the vanae huntress rubs her [enemy.breasts] up and down your body, smearing her wonderful breast milk all over your body. You feel like you're being lubed up by her");
if (this is MaidenVanae) output(" meager");
else output(" sizable");
output(" mounds, your [pc.groin] burning with arousal.");
applyDamage(new TypeCollection( { tease: 8 + rand(8) } ), this, target, "minimal");
}
}
but I'm not seeing the breakout mechanics defined anywhere. So what gives? Does the pc's combat otpions have a different 'struggle' option with different mechanics for every fight that uses a grapple? Or does it just play a generic function with a generic 'you break out of the grapple'?
I did the basic pinch attack and did some reformatting to help make some of what I'd already written easier to read and follow. Started to write the grab attack but can't finish it until I know how to write the player-breaking-out part. Can someone point me to where the pc's 'struggle' function lives?