Issue with script

Hey all,

i been working on a custom script for MZ, and i am having issues getting it to work... I was hoping someone could take a peak at it for me and see if i am missing something.
No one can do anything without pictures.
No one can do anything without pictures.
There are like 400 lines of code if someone can help me go through it and find the issue I’ll give them a copy of the script
But we still need more information to even decide if someone wants to help you.
script analysis of code written by other people is not easy, and bughunting a large script can be very tedious.

no one will commit to something like that, especially not for free, without more infos.

what is the purpose of the script?
how did you write it?
what are the errors or problems?
how much experience do you have with programming?
And was it AI generated. You have to disclose that too.
But we still need more information to even decide if someone wants to help you.
script analysis of code written by other people is not easy, and bughunting a large script can be very tedious.

no one will commit to something like that, especially not for free, without more infos.

what is the purpose of the script?
how did you write it?
what are the errors or problems?
how much experience do you have with programming?
it is a day/night system that allows for day/night and also allows me to have specific enemies spawn and only between specific times of days.. As far as my skill level i am just learning i bought some books, online tutorials, seeing how other scripts were written etc.. I used Visual Studio to write it, with some plugins to help me along the way.

the debug console shows me the follow errors..
Screenshot 2025-05-31 025314.png

Screenshot 2025-05-31 025251.png

Screenshot 2025-05-31 025159.png

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-script.178040/