Looping & Debugging

I am not sure if you are using RandomTest for debugging, so disregard this part is you are - but if not it is essential especially if you have complicated code as you describe. You can use *if (not(choice_randomtest)) to block RandomTest from picking certain choices if you want to focus on a particular path or section.

You can use *looplimit 0 to switch off the limit on infinite loops but that will cause issues when using RandomTest. I would suggest including an option that forces the combat to end, at least for testing purposes, so when playtesting you don’t have to play through the whole section every time and RandomTest can move past the section.

Here is more about *looplimit:

3 Likes