Wait for info from another script?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Wait for info from another script?

Eva Isotalo-2
I wasn't sure what to write in the subject.

I have a script in a button which asks questions that fills in a form which adds bought items to an inventory stack. After each item is added one is asked if there are more items to add, if yes script jumps to a function which will repeat most of the questions. And so on.
In middle of the script a list field is opened where the user will click/choose a line. The field is then closed and one is supposed to get back to the first script and continue the questions. This is where I can't figure out how to pause the first script so it waits until the list field is clicked and closed and the continues.
What is the smartest way (or any way) to solve this?

The thing is I think I had some solution for this in my first game but since my brain is a fraction of what it was due to my illness I can't remember.

Any suggestions much appreciated.
Eva

_______________________________________________
metacard mailing list
[hidden email]
http://lists.runrev.com/mailman/listinfo/metacard
Reply | Threaded
Open this post in threaded view
|

Re: Wait for info from another script? - never mind

Eva Isotalo-2
Never mind.
I stumbled upon the solution. All good now.
:)

Eva

On 2011-08-28 08:48, Eva Isotalo wrote:
I wasn't sure what to write in the subject.

I have a script in a button which asks questions that fills in a form which adds bought items to an inventory stack. After each item is added one is asked if there are more items to add, if yes script jumps to a function which will repeat most of the questions. And so on.
In middle of the script a list field is opened where the user will click/choose a line. The field is then closed and one is supposed to get back to the first script and continue the questions. This is where I can't figure out how to pause the first script so it waits until the list field is clicked and closed and the continues.
What is the smartest way (or any way) to solve this?

The thing is I think I had some solution for this in my first game but since my brain is a fraction of what it was due to my illness I can't remember.

Any suggestions much appreciated.
Eva

_______________________________________________
metacard mailing list
[hidden email]
http://lists.runrev.com/mailman/listinfo/metacard