Ok so I don't have much experience with scripting but I've pieced together some stuff with the help of the forums here and youtube. I have put together a day/night cycle following LvL up Design's video on day/night cycles and I have a problem with a respawn event I'm working on. I'm trying to get the value of one of my time counting variables and add 300 frames to it so I can use it in a conditional branch. Basically if timevariable > (timevariable +300) set self switch A off. I'll attach a few picture to try to illustrate this problem better.
I think the if statement part of my script may have some problems also. This is my first script so it may be written wrong anyways. Just in case that is the problem I re wrote it without the if statement and just used the conditional branch event command and another variable.
So my problem is that the respawntime variable (or Respawn_Timer in the second version) continues to increase with the Frame_Counter variable. It just always stays 300 frames ahead of the Frame_Counter. Is it possible to set the repawntime variable to the value the Frame_Counter is currently at and not have it continually update? First time post so sorry if anything is wrong here.
I think the if statement part of my script may have some problems also. This is my first script so it may be written wrong anyways. Just in case that is the problem I re wrote it without the if statement and just used the conditional branch event command and another variable.
So my problem is that the respawntime variable (or Respawn_Timer in the second version) continues to increase with the Frame_Counter variable. It just always stays 300 frames ahead of the Frame_Counter. Is it possible to set the repawntime variable to the value the Frame_Counter is currently at and not have it continually update? First time post so sorry if anything is wrong here.