Hi Jeroen
The first part of your question is easy to code but the pictures are a problem as they cannot be inserted into text fields
PART 1:-
Local var1,var2,sep,direct1,direct2,idx
Put 'You wake up in a small, damp room. There are exits to the North |2| or to the South |3|. Which route do you take?' into var1
Put '|' into sep
@ --- get directions ---
Put NthChunkFN(var1,sep,2) into direct1
Put NthChunkFN(var1,sep,4) into direct2
@ --- extract text ---
Put NthChunkFN(var1,sep,1) into var2
Append NthChunkFN(var1,sep,3) onto var2
Append NthChunkFN(var1,sep,5) onto var2
Note, there are some spaces left where the directions used to be but you could either format your intial string or trim the extracted parts.
PART 2:-
This really requires a canvas as used in the Solar System demo project because text fields cannot have images placed within them. Canvases are much more flexible than text fields and can have text, images and events.
I'm sorry about the Text Field limitations but hope this helps you.
Malkom