Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MESG on OWNR #45

Closed
PuppyPi opened this issue May 23, 2021 · 2 comments
Closed

MESG on OWNR #45

PuppyPi opened this issue May 23, 2021 · 2 comments

Comments

@PuppyPi
Copy link

PuppyPi commented May 23, 2021

MESG normally interrupts scripts like STPT (or like STOP?), right?
(#42)

So then what happens if you MESG on OWNR? Does the script interrupt itself? XD
Or does it wait for it to finish before running the new event script?
Or does it wait for the whole CALL stack to finish before running the new event script?

@Vermidia
Copy link
Member

The script interrupts itself, so OWNR never finishes running the next part of the script, if it has to wait or something.
If both scripts(the MESGed and the Current one) are inst, the Current one finishes and then the MESGed one runs, but if the Current one has to wait or execute over a number of ticks, the MESGed on will interrupt it first.

@PuppyPi
Copy link
Author

PuppyPi commented May 23, 2021

Beautiful, thanks! :D

It seems like a lot of these Agent VM things work not by directly changing the flow, but by setting some hidden variables in the agent which are only read on the start of the "do something for this agent for this tick" function X3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants