HyperNext Studio

HyperNext Studio => Interface Controls => Topic started by: apheline on October 05, 2016, 10:16:08 PM

Title: Changing script of a control
Post by: apheline on October 05, 2016, 10:16:08 PM
I wondering if it is possible to change a script of a button through an If, Then statement on another button.  For instance:

If variable>0 Then
    Put 'Goto card3' into Button1Script
EndIf

Is there anything like "Button1Script" in the above example that I could use to do this?

Thanks!

(Also, sorry for all the questions at once, I guess I've been storing them up for a few weeks).
Title: Re: Changing script of a control
Post by: Malkom on October 06, 2016, 06:23:43 AM
Sorry it isn't possible - actually never thought of it before - but thats a great idea and is now added to the to-do-list although not sure how to implement it as scripts are compiled to p-code.

Title: Re: Changing script of a control
Post by: apheline on October 06, 2016, 06:21:01 PM
Thanks!  I appreciate the quick response!