I have a random action in my post-flop code that will re-raise small raises to try to get opponents to fold. Is it possible to set a variable to true while also performing that action?
As an example:
When (BotsLastPreflopAction = Raise) and (other conditions met)
When stacksize => 30 and Random <= 50 Raisepot Force
When this action happens, I want to set a (user_bluffraise) variable to true so we can follow this action up in the river code instead of doing our usual river code (which may fold in this situation). But since it's randomly doing this, I am not sure how I would set the variable to true at the same time as performing the action.
Edit:
Guess the only way would be to set a variable to true randomly. Like when random <= 50 user_bluffraise
And then in the post-flop we'd just do
When (BotsLastPreflopAction = Raise) and (other conditions met) and user_bluffraise
When stacksize => 30 Raisepot Force
Don't think there is a way to set a variable in the same line as an action otherwise?