Jump to content

Terminate random event script


Soldtodie

Recommended Posts

If you want to be able to stop a random event executor mid-execution, you will probably have to override its shouldActivate method with:

 

public boolean shouldActivate() {

    return super.shouldActivate() && running;

}

 

where running is a boolean you create in the solver itself. Then you could stop it by setting running to false.

Interrupting it wont do any good. Scripts are used to being interrupted (eg. by randoms) and will continue on the very next loop.

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...