Using 1 FSM was my initial idea.
Using 4 global transforms, 1 for each equation.
Each round 1 equation gets created (add, substract, multiply or divide)
This way everything was kept together.
The Adding equation works fine (is the easiest off course)
but for instance with the substract equation, I do a compare Int to check if the first generated Int is higher than the second. If not I use a thidt variable to swap these around and continue create the equation.
90% this works, but sometimes I still get a minus answer, which means the Int compare didn't work.
The multiply and divide equations do some more compares and calculations, so they basicly fail too often.
But I'll re-create all of them this weekend from scratch without copying actions, see if things will start working again.
By the way, it did work at first, but soon started to fail ;-S
Keep u posted