Trouble with Nyx

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
tallguy2241
Explorer
Explorer
Posts: 78
Joined: Wed Apr 11, 2007 3:27 am

Trouble with Nyx

Post by tallguy2241 »

I've been working for a while now on a new Flash tease, and seem to be having trouble getting things to work. Specifically:

1. How exactly should I code the "range" function? I've switched the page names from "page1#" to "1#" (having read somewhere that that was helpful)

2. My custom buttons don't show on the page when I preview!

3. How exactly do I code the "must" and/or the "NumActionsFrom" functions?

While my programming skills are amateur at best, I did quite a bit of work with the old PCM2 program, and got things to work fine. If possible, I'd like to make the changes on the "Visual" page, as the "Script" page just makes my eyes bug out! :\'-(

Thanks in advance!
User avatar
green
Explorer At Heart
Explorer At Heart
Posts: 792
Joined: Thu Jul 24, 2008 11:43 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch
Location: Germany

Re: Trouble with Nyx

Post by green »

Heya,

Check out my thread about nyx.

http://www.milovana.com/forum/viewtopic ... nyx+tricks

It's basicly all covered there
3. How exactly do I code the "must" and/or the "NumActionsFrom" functions?
do you mean set and unset ?, you can use those commands to alter the randomizer (range) to not generate certain numbers.

~green~
You can own the earth and still - All you'll own is earth until
You can paint with all the colors of the wind
tallguy2241
Explorer
Explorer
Posts: 78
Joined: Wed Apr 11, 2007 3:27 am

Re: Trouble with Nyx

Post by tallguy2241 »

green wrote:Heya,

Check out my thread about nyx.

http://www.milovana.com/forum/viewtopic ... nyx+tricks

It's basicly all covered there
3. How exactly do I code the "must" and/or the "NumActionsFrom" functions?
do you mean set and unset ?, you can use those commands to alter the randomizer (range) to not generate certain numbers.

~green~
I've looked over that page. Many times in fact.
What I need is specifics....where do the commas go, the parentheses, do I need to put a number sign?
For example: in the code I show:
go(range(7,56,)#)
But when I run the preview, the "Continue" button shows, but doesn't work.

And on my custom buttons:
buttons(range(58,107)#, "I killed it!", page108#, "I lost!")

but the buttons don't appear at all!

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.

I appreciate your help! :smile:

tallguy
User avatar
green
Explorer At Heart
Explorer At Heart
Posts: 792
Joined: Thu Jul 24, 2008 11:43 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch
Location: Germany

Re: Trouble with Nyx

Post by green »

go(range(7,56,)#)
But when I run the preview, the "Continue" button shows, but doesn't work.
make it look like this:

Code: Select all

go(range(1,3,'page'))
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~
You can own the earth and still - All you'll own is earth until
You can paint with all the colors of the wind
tallguy2241
Explorer
Explorer
Posts: 78
Joined: Wed Apr 11, 2007 3:27 am

Re: Trouble with Nyx

Post by tallguy2241 »

Thank you for your help, green....I really do appreciate it.

I'll have to try your suggestion on the zero delay page, for the random jumps.

As far as the "unset"....what I'm trying to do is have a random jump from between pages 7 and 57, but not be able to go to page 57 until pages 7 through 56 have been visited. I want 7 through 56 to set and stay set. There seems to be a code for "must" or "NumActionsFrom" (which would be easier to use, I suspect). I just want to be sure how to code it so it works.

Thanks again for your input...I hope to get this up and running soon!

tallguy
User avatar
green
Explorer At Heart
Explorer At Heart
Posts: 792
Joined: Thu Jul 24, 2008 11:43 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch
Location: Germany

Re: Trouble with Nyx

Post by green »

Hi.

I did update my thread again ;) .

http://www.milovana.com/forum/viewtopic ... 840#p49840

All the commands you need are in there now (see 9. and 10.).


~green~
You can own the earth and still - All you'll own is earth until
You can paint with all the colors of the wind
tallguy2241
Explorer
Explorer
Posts: 78
Joined: Wed Apr 11, 2007 3:27 am

Re: Trouble with Nyx

Post by tallguy2241 »

Thank you! That's what I needed!

Now to finish this up...hopefully soon!

Thanks again for all your help!

tallguy
Post Reply