Help with randomizer

This is the place for general discussions on fetishes, sexuality and anything else. What's on your mind right now?
Post Reply
plzkickem
Explorer
Explorer
Posts: 5
Joined: Tue Oct 11, 2011 7:56 am

Help with randomizer

Post 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.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

Re: Help with randomizer

Post 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
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
plzkickem
Explorer
Explorer
Posts: 5
Joined: Tue Oct 11, 2011 7:56 am

Re: Help with randomizer

Post 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")
);
plzkickem
Explorer
Explorer
Posts: 5
Joined: Tue Oct 11, 2011 7:56 am

Re: Help with randomizer

Post 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")
);
User avatar
Venus
Explorer At Heart
Explorer At Heart
Posts: 358
Joined: Tue Jul 03, 2012 1:28 pm
Location: Germany

Re: Help with randomizer

Post 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.
Cock Hero - Overwatch 3 is out! viewtopic.php?f=25&t=22817
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

Re: Help with randomizer

Post by Nezhul »

And don't forget, when you are all done, to check all your range commands in script view before publishing.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
Post Reply