# Issue with a counter

**URL:** <https://forum.vassalengine.org/t/issue-with-a-counter/78021>\
**Category:** Technical Support & Bugs\
**Tags:** v3\_7\
**Created:** [October 10, 2023, 7:48am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021 "2023-10-10T07:48:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wath](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@Wath](https://forum.vassalengine.org/u/Wath)\
**Post date:** [October 10, 2023, 7:48am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/1 "2023-10-10T07:48:43Z")

</div>

WIN64

Warhammer Underworlds mod  
In this game you can spend / unspend a ressource called Glory  
We have issues with the unspend feature of the Glory counter (see **image below** )

Normally when you use the unspend feature, the spent glory counter on the right should decrease by 1, while the unspent glory counter on the left should increase by 1.

Vassal 3.6 and older : works  
Vassal 3.7.1 : not working anymore

 ![1](https://forum.vassalengine.org/uploads/default/original/2X/1/14880829661ef0a0faa2f709f8fa16599f4c971c.jpeg)

I’ll share print screens of the concerned traits below

Steps to reproduce:

- Open the mod
- Start a new game offline
- New game
- Join as Player 1
- Right click on the Glory counter
- Add glory
- Spend Glory
- Unspend glory : this is the part that used to work but doesn’t anymore

Could it be linked to the following ?  
_Changes since 3.7.0_  
_Bug fixes_  
_12676: IncrementProperty: Corrected bad wrap-around calculation when increment is negative_

---

<div class="post-metadata">

**Author:** ![Wath](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@Wath](https://forum.vassalengine.org/u/Wath)\
**Post date:** [October 10, 2023, 7:51am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/2 "2023-10-10T07:51:07Z")

</div>

![2](https://forum.vassalengine.org/uploads/default/original/2X/9/9d01a726e0f3a430a894c95c444c2203ff777841.jpeg)

---

<div class="post-metadata">

**Author:** ![Wath](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@Wath](https://forum.vassalengine.org/u/Wath)\
**Post date:** [October 10, 2023, 7:52am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/3 "2023-10-10T07:52:01Z")

</div>

![2](https://forum.vassalengine.org/uploads/default/original/2X/d/da52ca50accd7c4937b5e27bd145641161524a49.jpeg)

---

<div class="post-metadata">

**Author:** ![Wath](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@Wath](https://forum.vassalengine.org/u/Wath)\
**Post date:** [October 10, 2023, 7:52am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/4 "2023-10-10T07:52:35Z")

</div>

![3](https://forum.vassalengine.org/uploads/default/original/2X/b/b7d14e565f5696c60dad57a3be08aabe74954ec1.jpeg)

---

<div class="post-metadata">

**Author:** ![Wath](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@Wath](https://forum.vassalengine.org/u/Wath)\
**Post date:** [October 10, 2023, 7:53am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/5 "2023-10-10T07:53:38Z")

</div>

![4](https://forum.vassalengine.org/uploads/default/original/2X/0/0b7beff6a96d64a50c0f7f7cdf8e48f6329461b7.jpeg)

---

<div class="post-metadata">

**Author:** ![jrwatts](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/jrwatts/32/6972_2.png) [@jrwatts](https://forum.vassalengine.org/u/jrwatts)\
**Post date:** [October 10, 2023, 7:56am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/6 "2023-10-10T07:56:52Z")

</div>

Your screenshot of the Trigger Action shows it is set to repeat an undefined number of times. Either turn off the checkbox to repeat the trigger, or add something specifying the number of repeats. (Don’t ask me to explain why it used to work; I have no idea.)

---

<div class="post-metadata">

**Author:** ![Wath](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/w/c67d28/32.png) [@Wath](https://forum.vassalengine.org/u/Wath)\
**Post date:** [October 10, 2023, 8:00am UTC](https://forum.vassalengine.org/t/issue-with-a-counter/78021/7 "2023-10-10T08:00:59Z")

</div>

Many thanks ! It works like a charm.  
Have a great day
