- Joined
- Mar 23, 2016
- Messages
- 159
- Reaction score
- 12
- First Language
- English
- Primarily Uses
So, I have this plugin I'm working on.
The problem is that it constantly executes it's code. What I want it to do is execute the code any time the player interacts with an event.
while(true) {
$gameVariables.setValue(Skurry.Param.LVID, $gameParty.leader().actorId())
}
How can I change this so that it will only run when an event is called?
The problem is that it constantly executes it's code. What I want it to do is execute the code any time the player interacts with an event.
while(true) {
$gameVariables.setValue(Skurry.Param.LVID, $gameParty.leader().actorId())
}
How can I change this so that it will only run when an event is called?
