Hello,
Finally I have found myself. It is not 100% perfect because
- Code: Select all
cash_hand_player_statistics.amt_before
without "max" is not cacheable then I have found another solution that works 99%.
Indeed if I not leave the game when I reach the loss limit and after I win a lot of money then the color stay "red". It is better than nothing.
Here my method to do it :
1°/I create the column "amt_max_stack_bb" with the expression :
- Code: Select all
max(cash_hand_player_statistics.amt_before / cash_limit.amt_bb)
2°/I create the stat "max_stack_bb" with the expression :
- Code: Select all
amt_max_stack_bb
3°/I create the stat "net_result" with the expression :
- Code: Select all
amt_won
4°I create the stat "net_result_bb" with the expression
- Code: Select all
amt_bb_won
4°/ Now in the section color condition of the stat "net_result", I need to compare money with money then I put:
RED :
- Code: Select all
#net_result_bb# <= #max_stack_bb# - 200
(200 because I buyin 100bb and I want a 100bb loss limit then -100 -100 = -200. If you want a 200bb loss limit then put -300 because -100 -200 = -300 etc)
YELLOW :
- Code: Select all
#net_result_bb# < 0
GREEN
- Code: Select all
#net_result_bb# > 0
My main problem is that I can not do so much since
- Code: Select all
cash_hand_player_statistics.amt_before
is not cacheable.
So if someone has an idea to do it cacheable or another method to have a loss limit please let us know that would be cool
Best regards,
9ae6