Even if you do have those if (prev_room_no == ...) things with an unconditional else at the end, you could work around that by adding another if (prev_room_no == ...) condition but use the current room number and just leave the code block empty. For example, if logic 10 has this code:
if (new_room)
{
// ...
if (prev_room_no == 9)
{
position(ego, 100, 100);
}
else
{
if (prev_room_no == 8)
{
position(ego, 99, 99);
}
else
{
position(ego, 89, 120);
}
}
}
You could simply change the code to look like this:
if (new_room)
{
// ...
if (prev_room_no == 9)
{
position(ego, 100, 100);
}
else
{
if (prev_room_no == 8)
{
position(ego, 99, 99);
}
else
{
if (prev_room_no == 10)
{
}
else
{
position(ego, 89, 120);
}
}
}
}
Of course, you'll need one of the updated versions of AGI Studio for that to compile, because version 1.31 doesn't allow empty code blocks.