# Playthrough-spanning achievements? How?

**URL:** <https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672>\
**Category:** ChoiceScript Help\
**Created:** [June 2, 2021, 3:05pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672 "2021-06-02T15:05:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 2, 2021, 3:05pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/1 "2021-06-02T15:05:44Z")

</div>

There are a couple of games in the library that have achievements that can only be attained after several playthroughs.  
Cannonfire Concerto (i hope i remembered the name right) for example has one for buying all the outfits, which can only be done over several games.

How do I make such an achievement?

---

<div class="post-metadata">

**Author:** ![CaballeroDeAndromeda](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caballerodeandromeda/32/219607_2.png) [@CaballeroDeAndromeda](https://forum.choiceofgames.com/u/CaballeroDeAndromeda)\
**Post date:** [June 2, 2021, 3:23pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/2 "2021-06-02T15:23:08Z")

</div>

Probably there’s a “hidden” variable that keeps track of how many times you’ve encountered a scene or, like in the example you provided, keeping track of how many outfits you’re bought (which I assume you can only do once per playthrough?).

Maybe have other achievements as conditions for unlocking other achievements?

🤷‍♂️

---

<div class="post-metadata">

**Author:** ![hustlertwo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hustlertwo/32/34230_2.png) [@hustlertwo](https://forum.choiceofgames.com/u/hustlertwo)\
**Post date:** [June 2, 2021, 3:36pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/3 "2021-06-02T15:36:37Z")

</div>

I was going to suggest the same, using achievements to unlock achievements. They are the one thing that spans playthroughs.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 2, 2021, 4:18pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/4 "2021-06-02T16:18:10Z")

</div>

Yeah, but in those games you do NOT get an achievement from what i saw (couldnt check the code yet, that’s why im asking)

---

<div class="post-metadata">

**Author:** ![Kaelyn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kaelyn/32/141616_2.png) [@Kaelyn](https://forum.choiceofgames.com/u/Kaelyn)\
**Post date:** [June 2, 2021, 4:45pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/5 "2021-06-02T16:45:59Z")

</div>

The easiest way, I can imagine is faking the restart page by creating an choice that brings you per label Back to the start. But I am Not sure If that will Work after release

Perhaps @HarrisPS could help creme de la Creme has achievements that recognize getting them before.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 2, 2021, 6:37pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/6 "2021-06-02T18:37:00Z")

</div>

That’d be great, cause I tried looking into Cannonfire’s coat now, and I have no idea how it’s done. By all means, the variables used should reset each playthrough by the looks of the startup O\_o

WITCHCRAFT

---

<div class="post-metadata">

**Author:** ![CaballeroDeAndromeda](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caballerodeandromeda/32/219607_2.png) [@CaballeroDeAndromeda](https://forum.choiceofgames.com/u/CaballeroDeAndromeda)\
**Post date:** [June 2, 2021, 6:44pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/7 "2021-06-02T18:44:32Z")

</div>

> [@MeltingPenguins](#):
>
> By all means, the variables used should reset each playthrough by the looks of the startup O\_o
> 
> WITCHCRAFT

In other words, a new playthrough would reset all variables, unless a “reset” is induced by this sorcery… So the “reset” would be treated as a continuation instead of a new start…

🤔

---

<div class="post-metadata">

**Author:** ![Kaelyn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kaelyn/32/141616_2.png) [@Kaelyn](https://forum.choiceofgames.com/u/Kaelyn)\
**Post date:** [June 2, 2021, 7:06pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/8 "2021-06-02T19:06:30Z")

</div>

Do you know other games that have achievements over more than one playthrough, I’d like to code Dive. But I need more sources to consider.

---

<div class="post-metadata">

**Author:** ![CaballeroDeAndromeda](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caballerodeandromeda/32/219607_2.png) [@CaballeroDeAndromeda](https://forum.choiceofgames.com/u/CaballeroDeAndromeda)\
**Post date:** [June 2, 2021, 7:18pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/9 "2021-06-02T19:18:50Z")

</div>

I know Choice of Vampire has a lot of achievements. That might be a good source to consider.

👇

Good luck!

☝

---

<div class="post-metadata">

**Author:** ![HarrisPS](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/harrisps/32/240120_2.png) [@HarrisPS](https://forum.choiceofgames.com/u/HarrisPS)\
**Post date:** [June 2, 2021, 7:38pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/10 "2021-06-02T19:38:57Z")

</div>

I don’t think so I’m afraid, sorry! I only remember seeing Cannonfire Concerto that’s got that setup.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 2, 2021, 8:44pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/11 "2021-06-02T20:44:12Z")

</div>

okay, I dove a bit deeper into the Cannonfire code and I still don’t get it. Like, the variable used only adds a +1 to clothes, but that should nevertheless reset upon a new game.

This is mindboggling.

---

<div class="post-metadata">

**Author:** ![CaballeroDeAndromeda](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caballerodeandromeda/32/219607_2.png) [@CaballeroDeAndromeda](https://forum.choiceofgames.com/u/CaballeroDeAndromeda)\
**Post date:** [June 2, 2021, 9:08pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/12 "2021-06-02T21:08:27Z")

</div>

Allow me to help you on your quest for:

[![](https://i.pinimg.com/originals/66/dc/60/66dc60b25197e2da371689f7c72bd3aa.gif) ](https://i.pinimg.com/originals/66/dc/60/66dc60b25197e2da371689f7c72bd3aa.gif)

* * *

If you’re not familiar with the game, the code might look… daunting…

> **Summary**
>
> https://www.choiceofgames.com/vampire3/scenes/

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 2, 2021, 9:16pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/13 "2021-06-02T21:16:54Z")

</div>

thanks but, it’s not really helping

---

<div class="post-metadata">

**Author:** ![Sinnie](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@Sinnie](https://forum.choiceofgames.com/u/Sinnie)\
**Post date:** [June 2, 2021, 10:04pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/14 "2021-06-02T22:04:45Z")

</div>

@MeltingPenguins What is the code for the final ‘obtained all clothes’ achievement firing? That should tell us what method is sitting underneath the persistence.

---

<div class="post-metadata">

**Author:** ![Gower](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/gower/32/21972_2.png) [@Gower](https://forum.choiceofgames.com/u/Gower)\
**Post date:** [June 2, 2021, 10:16pm UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/15 "2021-06-02T22:16:53Z")

</div>

Is this what folks are looking for?:

 ![image](https://global.discourse-cdn.com/choiceofgames/original/3X/e/2/e27251bcf5692e34e62b0a4d636741a119dffc12.png)

> **[Achievement](https://choicescriptdev.fandom.com/wiki/Achievement)**
>
> The \*achievement command is used to define one or more Achievements able to be awarded to a player for noteworthy feats or accomplishments within the game - solving puzzles or mysteries; overcoming or otherwise surviving especially tough challenges;...

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 3, 2021, 6:40am UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/16 "2021-06-03T06:40:55Z")

</div>

Thanks, but that’s not it. Cannonfire doesn’t give achievements for buying clothes individually, the achievement somehow triggers after you’ve reached a certain number of clothes which isn’t possible in one playthrough O\_o

Or maybe i’m just going cuckoo

---

<div class="post-metadata">

**Author:** ![Kaelyn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kaelyn/32/141616_2.png) [@Kaelyn](https://forum.choiceofgames.com/u/Kaelyn)\
**Post date:** [June 3, 2021, 7:31am UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/17 "2021-06-03T07:31:35Z")

</div>

I would guess the programming part for the achievements is located in the Javascript part of choice script

---

<div class="post-metadata">

**Author:** ![Riful](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/riful/32/60294_2.png) [@Riful](https://forum.choiceofgames.com/u/Riful)\
**Post date:** [June 3, 2021, 7:38am UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/18 "2021-06-03T07:38:24Z")

</div>

> [@MeltingPenguins](#):
>
> the achievement somehow triggers after you’ve reached a certain number of clothes which isn’t possible in one playthrough O\_o

Are you sure it’s not possible to do so in one playthrough? As far as I can see in the game’s startup file there is nothing out of ordinary. It has tracked variables for:

1. Each item of clothes you own. These variables are used to unlock corresponding options during the choice “what to wear for the concert”.
2. How many items of the same type you have. For example, each time you unlock a coat or a jacket, it gives +1 to the variable totaljackets. I presume that once this variable hits 6, you are granted the achievement “Jacket Enthusiat: Collect six coats and jackets”. The same thing for collecting 4 hats, 3 wigs, 6 dresses/gowns. And for having a caftan and a cape simultaneously.

I don’t have this game, so I can’t check the chapters where these achievements are granted, but from the startup file they are based on regular variables. I doubt that the trick is in the redirecting to the new game from epilogues file, otherwise it would be possible to get the achievement for 6 dresses choosing exactly same dress in the first chapter for 6 playthroughs. Or it would require many additional ifs in the scene where the last (chronologically) piece of clothes is supposed to be obtained: to check if the counting variable is \>=4 or 6 and to check if other items of the required set are actually obtained.

---

<div class="post-metadata">

**Author:** ![Myrtle](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/myrtle/32/99678_2.png) [@Myrtle](https://forum.choiceofgames.com/u/Myrtle)\
**Post date:** [June 3, 2021, 7:39am UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/19 "2021-06-03T07:39:31Z")

</div>

Are we sure the number of clothes _Cannonfire Concerto_ gives an achievement for isn’t doable in one playthrough? 😅

Edit: Ninja’ed by @Riful

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [June 3, 2021, 9:02am UTC](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672/20 "2021-06-03T09:02:13Z")

</div>

Unless I completely missed something in my playthroughs, it isn’t.

I’m so confused.

[Next page](https://forum.choiceofgames.com/t/playthrough-spanning-achievements-how/101672.md?page=2)
