Lamei wrote: ↑Wed Mar 13, 2019 4:17 am
Hi guys. I trying to make a maze tease as I really liked webteases such as Talia's maze. I would like the girls to appear randomly for each tease room but this creates a problem.
At the moment I have some corridors and 9 tease rooms. When entering a tease room I can set a variable, var roomA1 = 1, then use EOS to ramdomly goto one of many girls, GOTO girl*. When the girl has finished I use many IF commands to check which room's var is currently set to 1, IF roomA1 === 1
then GOTO pageA1. This works fine with only a handfull of room but as the maze grows the webtease needs too many IF commands.
Is there a better way to do this. I've tried trying to save a string of text and then go back to that text later but can't get it to work. Eg when a random girl is finished it checks var 'exit' then goes to that page, pages.goto('%s', exit).
Any help would be great!
Ok, so if I understand the problem correctly then the following might work (which seems similar to the last thing you tried):
1. Create a variable, let's call it posi, in Init Script via "var posi;".
2. When you enter the room, save the name of the page you want to return to in posi. For example, if you wish to return to page5, then create an Eval with "posi = 'page5';"
3. Then go to the random module you wish to run.
4. At the end of the random module have an Eval with "pages.goto(posi);"
That seems to work for me, in a simple test example.