My character can walk in a maze forward and backward. If he goes backward, all "left" in the passage text must become "right" and vice versa. I think it should be done in postrender function, but how exactly? (I don't know how to write a function which will go through every word in the passage replacing them when necessary.)
Comments
If you have a variable for $direction that is either forward or backward (boolean 0/1), then in each passage you can have text like 'turn $left' and 'turn $right', and if the $going_backwards is true, then $left = 'right' and $right = 'left'.
No?