Flash Tease Script Problems

All about the past, current and future webteases and the art of webteasing in general.
---
Post Reply
User avatar
masterstroke
Explorer At Heart
Explorer At Heart
Posts: 273
Joined: Sun Jun 28, 2009 12:07 am
Location: Minnesota

Flash Tease Script Problems

Post by masterstroke »

I am trying to incorporate random pages into my next tease.

I got the random page function to work but not without some glitches.

The first glitch is the random page function works but I can't hide the timer. Here's the script:

page19#page(
'<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Hands off, slut.</FONT></P></TEXTFORMAT>',
pic("heather.jpg"),
delay(time:20sec, target:range(from:20,to:22,prefix:'page'),style:hidden))
);

The second glitch is a custom button using the random function. I can create a random page button using "Continue". That script is:

page5#page(
'',
pic("heather8.jpg"),
go(target:range(from:6,to:8,prefix:'page'),style:hidden))
);

However, when I try to create a custom button with the random page function, I can't the button to show up.

The script I have is:

page5#page(
'',
pic("heather8.jpg"),
buttons(target:range(from:6,to:8,prefix:'page') "Ready"))
);

Any ideas?

:wall:

Thanks.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

Re: Flash Tease Script Problems

Post by Nezhul »

I don't know where did you get all those extra words from, really....
go(range(1,10,'page'))
delay(10sec, range(1,10,'page'),style:hidden)

where did you get all those from: to: time: and other stuff? Only guess - thought them up yourself. Nyx don't create those, and range command you write completely yourself.

I'v chosen this one as a special case....
go(target:range(from:6,to:8,prefix:'page'),style:hidden))
Again, where did you get all the useless words such as "target" from? Whatever.
style:hidden Hidden button? Aha.... Buttons don't have such parameter.
And to complete the mess - an extra bracket ) in the end.
No wonder it doesn't work. Now I'm not mocking you just pointing errors. You should study the nyx a bit more. Feel free to ask more questions, but the major advice in scripting/programming: you should ALWAYS understand what you are writing and what for. You don't. Style:hidden prooves it... Just spend a bit more time to understand nyx.
However, when I try to create a custom button with the random page function, I can't the button to show up
Unfortunately in my topic I discussed that you just can't. Range works only with "delay", "continue" "goto() function" and maybe I'm forgetting things but I believe yes\no buttons too. It doesnt work with custom buttons.

There's a trick how you may do that. If you want your custom button to link to a random page - create another page (that won't be shown), and make your button link to it. On that service page use either delay with 0 seconds leading to your random pages, or goto() function leading there.
How it will work: When you press your custon button it leads you to your service page, then instantly to the one from your range. The change is so quick that user will not notice it.

Read those please.
http://www.milovana.com/forum/viewtopic.php?f=2&t=4355
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
User avatar
masterstroke
Explorer At Heart
Explorer At Heart
Posts: 273
Joined: Sun Jun 28, 2009 12:07 am
Location: Minnesota

Re: Flash Tease Script Problems

Post by masterstroke »

First of all, I did read one of the links you provided before I posted my question.

http://www.milovana.com/forum/viewtopic.php?f=2&t=4355

Second, I did not pull that script out of my ass. I pulled it off of another tease.

http://www.milovana.com/webteases/showflash.php?id=3604

Maybe I made a mistake in copying and editing the script but that's not the point.

The point everyone is an expert programmer so quit mocking people for asking legitimate questions and trying to improve their programming skills.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

Re: Flash Tease Script Problems

Post by Nezhul »

I'm not mocking you as I said. But I can't help but laugh a bit, if you have problems with it - it surely not my problems. I'v given you all advice you needed, if you don't like the form that's YOUR problems. If you read that topic carefully and still don't see that your script looks odd, that's YOUR problems too.

now...
I pulled it off of another tease.
The point is there's a difference between the script you write when you create your tease, and the script that a tease PLAYER uses to actually run a ready tease. You can't copy a compiled script (from some tease you like) and paste it into the editor and expect it to work. The editor just won't understand those additional words.
In other words, when a tease is published, the editor changes your script so it can be read by the player. That's called compiling. But the editor can not recognise compiled script - it can work only with a pure script you write.
The only way to copy some ideas from someone is to ask the author if he can provide you with a source code (he'll have to open he's tease in the editor and get a script there). Or at least you should know how the commands should look like and delete all the extra parts.
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
User avatar
Decker
Explorer
Explorer
Posts: 87
Joined: Mon Jun 21, 2010 8:36 pm

Re: Flash Tease Script Problems

Post by Decker »

I don't know shit about programming. I learned a few things along the way as I got in to writing teases, and a lot of the bugs I figured out just like you... from shit not working. It's certainly a pain in the ass. Basically, what I've learned to incorporate with (relative) ease is randomness, sounds, and set/unset (getting a button to lead to certain pages in certain situations, basically... it's all over my latest tease with the keys and doors and whatnot). I'm happy to send you my script if you're interested in pulling from it.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

Re: Flash Tease Script Problems

Post by Nezhul »

I really doubt it'll work tho. Script with no comments is extremely hard to read unless you KNOW what page does what. Once i tryed to finish a tease that was forgotten for a few months and it took me ages to figure out what is what even tho it was MY script.
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