# Highest\_relationship triggering incorrectly

**URL:** <https://forum.choiceofgames.com/t/highest-relationship-triggering-incorrectly/110110>\
**Category:** ChoiceScript Help\
**Created:** [November 22, 2021, 6:41pm UTC](https://forum.choiceofgames.com/t/highest-relationship-triggering-incorrectly/110110 "2021-11-22T18:41:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [November 22, 2021, 6:41pm UTC](https://forum.choiceofgames.com/t/highest-relationship-triggering-incorrectly/110110/1 "2021-11-22T18:41:49Z")

</div>

So, I’m play-testing my game, as it seems I did not do quite enough before I put it up on the forum, and I am finding that a highest\_relationship variable is not triggering correctly.  
Right now, I have it set that t\_relationship is 10 above, with this format:

```
*if (highest_relationship ="l_relationship")
	*goto l_extract
*if (highest_relationship ="t_relationship")
	*goto t_extract
*if (highest_relationship ="d_relationship")
	*goto d_extract
*if (highest_relationship ="n_relationship")
	*goto n_extract

```

Despite the fact that right now T\_relationship is 60 and the rest are 50, it’s going to L\_extract.

---

<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:** [November 22, 2021, 7:17pm UTC](https://forum.choiceofgames.com/t/highest-relationship-triggering-incorrectly/110110/2 "2021-11-22T19:17:23Z")

</div>

Put ${highest\_relationship} just before your \*if statements.  
This will print out the current value of highest\_relationship. I suspect that its value will be l\_relationship for whatever reason and that will be why it goes to l\_extract.

If that is the case, then also print out the values of each relationship variable to see what those values are - this will confirm if either:

- l\_relationship is in fact the highest and you have an error somewhere causing l\_relationship to be higher than you expect or t\_relationship to be lower than you expect
- Your calculation of the highest relationship is wrong

---

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [November 22, 2021, 10:15pm UTC](https://forum.choiceofgames.com/t/highest-relationship-triggering-incorrectly/110110/3 "2021-11-22T22:15:45Z")

</div>

Seems that I had put a \*gosub\_scene highest\_calc in there. A little confused, but if it works I guess.
