It's exactly like GTCK03 said.
There are two possibilities:
First possibility is one page per picture
I did this for the monopoly game. For every possibility of a picture I needed one page!
The page name is for instance
XXMonopoly-Q2-0100000011.jpg where every 1 stands for a hotel placed and 0 for empty field. Q for which quarter. There are tons of pictures and pages to generate. I did it with irfanview.exe. The pages were generated by Excel (JSON File expanded).
In the eval, you have to calculate, which page you wanna show and where to come back:
- Spoiler: show
- boarddisplay = chooseboard(position); //chooseboard is a function to calculate the proper name
returnpage = pages.getCurrentPageId();
pages.goto(boarddisplay);
I do all this in an if
!framed condition.
After the condition comes, what you want to say or do while showing this picture.
Kind of:
- Spoiler: show
- if (!framed) {
calculate where to jump
jump
}
else {
reset flag framed
do what you do after coming back
}
Picture Page eval is as follows:
- Spoiler: show
- show picture
mark framed
jump back
the eval in the picture page is as follows:
- Spoiler: show
- framed = true; // switch, that you go on after jumping back to original page
pages.goto(returnpage);
2nd possibility is not one page per picture but one page per girl with flags.
the jumping there goes like:
- Spoiler: show
- returnpage = "memorystep"
censoredpic = true;
pages.goto(girlpage);
Here you jump to the girl page and depending on the flag censoredpic you decide which picture you show.
The girl page contains a
- Spoiler: show
- if (censoredpic)
show the according picture
else
show the other
jump back
I think, this would be the easiest way for your tease. I did it this way in teasefight (for the decision of which stage you want to show).