go(range(7,56,)#)
But when I run the preview, the "Continue" button shows, but doesn't work.
make it look like this:
while you name your pages like this:
Code: Select all
1#page('This page shows up if range generated a 1',
pic("yourpic.jpg"),
buttons(whereyouwanttogo#,"Ok")
);
2#page('This page shows up if range generated a 2',
pic("yourpic.jpg"),
buttons(whereyouwanttogo#,"Ok")
);
3#page('This page shows up if range generated a 3',
pic("yourpic.jpg"),
buttons(whereyouwanttogo#,"Ok")
);
And on my custom buttons:
buttons(range(58,107)#, "I killed it!", page108#, "I lost!")
but the buttons don't appear at all!
I think multiple buttons can't have the range command (I may be wrong though), so I suggest to create an extra page with a timer(0seconds) that triggers the next random page.
And I actually do mean "Must" and/or "NumActionsfrom" Like I said, I used to write PCM2 scripts, and know how they function there, as well as "set" and "unset". I just don't know the proper syntax on how to code it.
Ah thats simple:
Code: Select all
punishmentsamepc#page('Oh nooo.... Time ran out',
pic("luba*.jpg"),
mult(
unset(7#), unset(8#), unset(9#),unset(10#),unset(11#),unset(12#),unset(13#),unset(14#),unset(15#),unset(16#),unset(17#),unset(18#),unset(19#),unset(20#),
delay(10sec, range(7,20,'page'))),
hidden:sound(id:'whip2.mp3')
);
This is an example from my "Edging Challenge".
The part you're looking for is this:
Code: Select all
mult(
unset(7#), unset(8#), unset(9#),unset(10#),unset(11#),unset(12#),unset(13#),unset(14#),unset(15#),unset(16#),unset(17#),unset(18#),unset(19#),unset(20#));
That code comes after the image part, you can also add a button that leads to the next page like this:
Code: Select all
mult(
unset(7#), unset(8#), unset(9#),unset(10#),unset(11#),unset(12#),unset(13#),unset(14#),unset(15#),unset(16#),unset(17#),unset(18#),unset(19#),unset(20#),
go(nextpage#));
So this Resets the pages so, that Range can still "trigger" those.
Hope that was helpful : D.. Feel free to ask if anything is still unclear.
~green~