# \#eternascript

**URL:** https://forum.eternagame.org/tag/eternascript/136.md

[Latest](https://forum.eternagame.org/latest.md) · [Categories](https://forum.eternagame.org/categories.md) · [Tags](https://forum.eternagame.org/tags.md)

---

## [Pairing\_probabilities behavior](https://forum.eternagame.org/t/pairing-probabilities-behavior/5841)

<div class="topic-metadata">

**Author:** [@AaronP](https://forum.eternagame.org/u/AaronP)\
**Replies:** 2\
**Last updated:** [September 28, 2026, 4:41pm UTC](https://forum.eternagame.org/t/pairing-probabilities-behavior/5841 "2026-09-28T16:41:44Z")

</div>

I have playing with scripts that calculate pairing probabilities in an effort to find strategies other than free energy delta minimization when it occurred to me that most engines will return the same array for a mispair…

---

## [Possible new booster api functions for multi-state puzzles](https://forum.eternagame.org/t/possible-new-booster-api-functions-for-multi-state-puzzles/5674)

<div class="topic-metadata">

**Author:** [@jandersonlee](https://forum.eternagame.org/u/jandersonlee)\
**Replies:** 0\
**Last updated:** [December 31, 2025, 3:16am UTC](https://forum.eternagame.org/t/possible-new-booster-api-functions-for-multi-state-puzzles/5674 "2025-12-31T03:16:18Z")

</div>

state\_full\_pairing\_probabilities\_async(index=0) for engines that support it, computes the pairing probabilities/dot plot for the state specified by index with the current sequence and oglios, plus any other reagents i…

---

## [Current view info (mode and switch state) for booster scripts](https://forum.eternagame.org/t/current-view-info-mode-and-switch-state-for-booster-scripts/5578)

<div class="topic-metadata">

**Author:** [@Wipf0](https://forum.eternagame.org/u/Wipf0)\
**Replies:** 2\
**Last updated:** [September 19, 2025, 8:20am UTC](https://forum.eternagame.org/t/current-view-info-mode-and-switch-state-for-booster-scripts/5578 "2025-09-19T08:20:05Z")

</div>

I would like to be able to get the currently displayed switch state and mode (natural mode or target mode) from the EternaScript booster API. Here are some mock-ups with the information I would like to be able to get in…

---

## [Half-Life JS code or api call](https://forum.eternagame.org/t/half-life-js-code-or-api-call/5064)

<div class="topic-metadata">

**Author:** [@jandersonlee](https://forum.eternagame.org/u/jandersonlee)\
**Replies:** 7\
**Last updated:** [September 18, 2024, 5:30pm UTC](https://forum.eternagame.org/t/half-life-js-code-or-api-call/5064 "2024-09-18T17:30:20Z")

</div>

Is there some Javascipt code or an api call to compute the half-life metric used in the latest Covid-19 lab? I’d like to make a mutations booster and it would be helpful to have that to help evaluate/rank mutated designs…

---

## [Eternascript documentation](https://forum.eternagame.org/t/eternascript-documentation/4493)

<div class="topic-metadata">

**Author:** [@jandersonlee](https://forum.eternagame.org/u/jandersonlee)\
**Replies:** 4\
**Last updated:** [April 27, 2023, 10:30pm UTC](https://forum.eternagame.org/t/eternascript-documentation/4493 "2023-04-27T22:30:01Z")

</div>

Is there any current EternaScript documentation? I tried outln(Lib.fold(seq)) as per the in game documentation and it did not find the fold function. Furthermore, (how) can I set the energy model to NuPACK so I can get a…
