Clock system (last post latest info)

*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 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. :stuck_out_tongue:

2 Likes