<set_value name="$ejectchance" exact="( (46 - $target.combinedskill / 5) * [(($target.maxhull)f / [($attacker.maxhull)f, 1.0].max), 1.0].min * [(($attacker.shieldpercentage + $attacker.hullpercentage) / [($target.shieldpercentage + $target.hullpercentage), 1.0].max), 1.0].min )i"/>
----------
Since i don't see it here, the "target.combinedskill" value is calculated elsewhere. We will leave that alone for now. For ease of math, we will assume that a max skill pilot(5 stars across 5 skills) returns a value of 1, after dividing by 5, to leave us with 45% base chance. So, back to ejection...
First line ...
(45% (base)) minus the targets (combined skills divided by 5), for starting eject chance.
Second line ...
Multiply that by (Target max hull) divided by (attacker max hull)
Third line ...
Multiply that again by (attacker shield % + hull %) divided by (target shield % + hull %)
That second line of target max hull vs attacker max hull makes me think that having an overall smaller hull size is a benefit. If you have 25k hull versus 25k hull, thats a single division, 1. If you have a 25k hull attacked by a 5k hull, that leaves you with 5, which is a much bigger multiplier.
(Just throwing numbers out for max hull...)
45% x (25k(target) / 5k(attacker)) x (100%(attacker) / 40%(target)
Im getting that 40% as a rough estimate of a target ship being at 0% shield and 80% hull
Using those numbers, you'd get a bail chance of around 5.6%... But that is a 5 star max pilot, with 80% hull. Without knowing how "target.combinedskill" is calculated we can't play with that further. If 46% is base, some part of the other 54% is up for grabs, but I don't know how much. If we assume we can increase that 46% to say 65%, that 5% becomes 8%.
-----
Now, max hull plays a pretty big roll. We look at 2 scenarios... first, if its a 25k versus 25k ship, gives us a result of 1. The second instance is a 25k ship versus a 5k ship, gives us a 5.
in the first instance a max star pilot has a 1.1% chance to bail in an equal ship, versus a 6% chance to bail against the smaller ship, while keeping shields at zero and hull at 80%.
If we adjust numbers again, and only change the "targets shield and hull" versus "attacker shield and hull", and put the target at 50% hull and no shield versus the attacker at 100% on both, that gives us a 4 multiplier, instead of a 2.5 multiplier.
A max 5 star pilot(45% base) with 50% hull, and no shield, flying a 25k hull ship, has a 9% chance to bail versus a 5k hull, and a 1.8% chance against an equal hull.
A weaker pilot(with 65% base) with 50% hull, and no shield, flying a 25k hull ship, has a 13% chance to bail versus a 5k hull, and a 2.6% chance against an equal hull.
----------------------------
Is my math correct, or am I off somewhere?
And knowing how target.combinedskill is calculated would really help, because I've made a lot of pilots bail, and only ran into a handful who didn't bail and either died eventually, or made it to a dock. So there is a decent chunk of that remaining 54% that is up for grabs when trying to make pilots bail.
I'd love some help.
Is my "ejectchance" math correct?
This forum is the ideal place for all discussion relating to X4. You will also find additional information from developers here.
Moderator: Moderators for English X Forum
Is my "ejectchance" math correct?
Post by grapedog » Mon, 1. Mar 21, 01:36
I aim to misbehave...
Maybe we've got 'em demoralised!
Guide on How to Steal Blueprints
Guide - Raw Resource Trading Post
How I completed each Terraforming project
Maybe we've got 'em demoralised!
Guide on How to Steal Blueprints
Guide - Raw Resource Trading Post
How I completed each Terraforming project
Jump to
- English Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technical Support
- ↳ X4: Foundations - Scripts and Modding
- ↳ Construction Community
- ↳ X Wiki Discussion
- ↳ X Rebirth Universe
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technical Support
- ↳ X Rebirth - Scripts and Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts and Modding
- ↳ X Trilogy Universe
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support
- ↳ X³: Terran Conflict / Albion Prelude - Scripts and Modding
- ↳ X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support
- ↳ X³: Reunion - Scripts and Modding
- ↳ X²: The Threat - Scripts and Modding
- ↳ Creative Universe
- ↳ Off Topic English
- Deutschsprachige Foren
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technische Unterstützung
- ↳ X4: Foundations - Scripts und Modding
- ↳ X Rebirth Universum
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technische Unterstützung
- ↳ X Rebirth - Scripts und Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts und Modding
- ↳ X Trilogie Universum
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technische Unterstützung
- ↳ X³: Terran Conflict / Albion Prelude - Scripts und Modding
- ↳ X³: Reunion, X²: Die Bedrohung, X-T und X-BTF - Technische Unterstützung
- ↳ X³: Reunion - Scripts und Modding
- ↳ X²: Die Bedrohung - Scripts und Modding
- ↳ Kreative Zone
- ↳ Off Topic Deutsch
- Forum Français
- ↳ X4: Foundations
- ↳ Support et Aide pour X4: Foundations
- ↳ Script et Modding pour X4: Foundations
- ↳ L'Univers X Rebirth
- ↳ Support et Aide pour X Rebirth
- ↳ Script et Modding pour X Rebirth
- ↳ Support et Aide pour la Trilogie X
- ↳ L'Univers de la Trilogie X
- ↳ Script et Modding pour la Trilogie X
- ↳ Off Topic Français
- Forum Italiano
- ↳ X4: Foundations
- ↳ Supporto Tecnico per X4: Foundations
- ↳ Script e Modding per X4: Foundations
- ↳ L'Universo di X Rebirth
- ↳ Script e Modding per X Rebirth
- ↳ Supporto Tecnico per X Rebirth
- ↳ L'Universo della Trilogia di X
- ↳ Script e Modding per la Trilogia di X
- ↳ Supporto Tecnico per la Trilogia di X
- ↳ Off Topic Italiano
- Polskie Fora
- ↳ Polskie / Polish X-Forum
- ↳ Polskie / Polish Off Topic
- Other Languages
- ↳ Česky / Czech X-Forum
- ↳ Dansk / Danish X-Forum
- ↳ Español / Spanish X-Forum
- ↳ Nederlands / Dutch X-Forum
- ↳ Português / Portuguese X-Forum
- ↳ Русский / Russian X-Forum
- DevNet: General
- ↳ MSCI Reference
- DevNet: X4: Foundations
- ↳ X4: Foundations - Public Beta Feedback
- DevNet: X Rebirth
- ↳ XR - Technical Troubleshooting