Impulse command question

kumpy1

New Member
Aug 4, 2019
3
1
50
First, its been over 25 years since I did any programming so I apologize if I'm not using the correct terminology.

I've been playing around with the 'impulse' command to play scenes I have never seen or haven't seen in a while. Some of the scenes call subroutines which produce an output which defines how the main scene proceeds. Is there a way using the impulse command to force a particular output for one of the subroutines?

As a made up example:

in the main scene ShowSexMenu ();
there is a subroutine called BlackOrWhite() which returns Black if xxxxx and returns White otherwise.
The main scene then displays text "abcabc" if Black was returned or displays text "defdef" if White was returned.

Can I impulse the ShowSexMenu scene forcing a Black output to the BlackOrWhite subroutine?

Thanks for the help!