Page 1 of 1

Help with randomizer

Posted: Sun Nov 18, 2012 2:35 pm
by plzkickem
I need help with setting up a randomizer in my tag. A couple of years ago there was a girl who developed a tease with a "May I Cum" button on it. After you selected that button, you got random responces. I want to develop a much more in-depth using this same format. Problem is that I don't know how to program a randomizer. Can anyone give me the basics.
Say I want to go from my page1#, select the "May I Stroke" button and be ramdonized to 10 different pages. Programming wise...what does that look like.

Re: Help with randomizer

Posted: Sun Nov 18, 2012 3:22 pm
by Nezhul
it would look like
go(range(1..10,'page'))

where 1# 2# 3# 4# .... 9# 10# are target pages.

Actually that's very common in a webteases.

Read those topics first:
http://www.milovana.com/forum/viewtopic ... 55&start=0
http://www.milovana.com/forum/viewtopic.php?f=2&t=5926

Re: Help with randomizer

Posted: Sun Nov 18, 2012 8:47 pm
by plzkickem
So what am I doing wrong? Please help.

randomizerstart#page(
'The next page will be randomly selected',
pic("no-015.jpg"),
go(range(1,3,'page'))
);

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")
);

Re: Help with randomizer

Posted: Sun Nov 18, 2012 9:26 pm
by plzkickem
This is the updated code that I am using. What am I doing wrong?

start#page(
'',
pic("nicole-front-webpage.jpg"),
go(range(1,3,'page'))#)
);

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")
);

Re: Help with randomizer

Posted: Mon Nov 19, 2012 2:16 am
by Venus
plzkickem wrote: start#page(
'',
pic("nicole-front-webpage.jpg"),
go(range(1,3,'page'))#)
);
There's a # behind the range command. Each time you are watching the page in visual mode nyx will add this #. You must add the range command in script mode and avoid watching the page in visual mode.

Re: Help with randomizer

Posted: Mon Nov 19, 2012 5:02 am
by Nezhul
And don't forget, when you are all done, to check all your range commands in script view before publishing.