# Clock system (last post latest info)

**URL:** <https://forum.choiceofgames.com/t/clock-system-last-post-latest-info/17251>\
**Category:** ChoiceScript Help\
**Created:** [May 7, 2016, 9:48am UTC](https://forum.choiceofgames.com/t/clock-system-last-post-latest-info/17251 "2016-05-07T09:48:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Lordirish](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirish/32/238051_2.png) [@Lordirish](https://forum.choiceofgames.com/u/Lordirish)\
**Post date:** [May 9, 2016, 3:01am UTC](https://forum.choiceofgames.com/t/clock-system-last-post-latest-info/17251/4 "2016-05-09T03:01:22Z")

</div>

```
*if (target_1_armor=-25)
 *set d_target_1_armor 25
 *return
```

getting the error Invalid expression, I take it as I am checking for a negative number I need to write this different

\*edit  
Seems I may have found the solution  
((target\_1\_armor +25) =0)  
testing after rewriting this section

\*\*Edit This did not resolve the problem but I did find thid thread [Negative stats](https://forum.choiceofgames.com/t/negative-stats/247#Item_4) that gave me a work around. I need to flip the number for player view so not to confuse them. A bit of a long work around but at least it will work well.

\*\*\*Edit after spending many many hours I have come to realize working with negatives is not a good way to work with CS. So if you can avoid all the better as you save yourself many a headache. 😛

---

_[View the full topic](https://forum.choiceofgames.com/t/clock-system-last-post-latest-info/17251)._
