Page 1 of 1

Scripting in Nyx question

Posted: Thu Aug 30, 2012 9:15 pm
by Bandit224
Where in Nyx's scripts can if statements be placed, and can they test button choices of the previous page that directed to them?
Example:

int count = 0;

start#page(('text blah blah'),
pic(blah),
yn(page2#,page2#)
);

page2#page(('text blah blah'),
pic(blah),
if(yes), count++;
if(count==10), end;
else delay(0sec,start#)
endif);

Re: Scripting in Nyx question

Posted: Fri Aug 31, 2012 12:59 am
by Nezhul
1) there is no variables as such
2) there is no actual conditions
3) you can mimic both using simple binary logic by analysing weather a certain page was or was not previously viewed.

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