This is my first time on a forums page.. So please forgive me if I do something wrong. (Formatting, code-wise, etc etc.)
I have 0 coding experience (At the most I understand logic gates, and the basics of RMMV.)
I'm trying to make a timer that when reaching 0.. gives you a debuff. But an if gate is there, where if you already have that debuff, it gives you a different variant of the debuff, removing the first one. (Oliver woods is the main character's name.)
(This name is not intended to be related to any real person dead or alive.)
I know that the way I wrote it, It'll simply loop over and over again whilst the switch is on. (Or maybe even indefinitely!) But any attempt of adding a timer, Or a wait function has either resulted in the game spamming my character with the two debuffs and text boxes, or just 100% freezing the game. I originally tried to put this mess of code into the common events, and then in a hidden event box, which I've had set to both Autorun and parallel.
If someone could please help me and explain what I'm doing wrong I'd appreciate it!
I have 0 coding experience (At the most I understand logic gates, and the basics of RMMV.)
I'm trying to make a timer that when reaching 0.. gives you a debuff. But an if gate is there, where if you already have that debuff, it gives you a different variant of the debuff, removing the first one. (Oliver woods is the main character's name.)
(This name is not intended to be related to any real person dead or alive.)
◆If:hungrytimer is ON
◆Loop
◆If:Oliver Woods is affected by Peckished
◆Change State:Oliver Woods, - Peckished
◆Change State:Oliver Woods, + Hungry
◆Text:None, Window, Bottom
: :You're getting hungry.
◆
:Else
◆Change State:Oliver Woods, + Peckished
◆Text:None, Window, Bottom
: :You could do with a snack..
◆
:End
◆
:Repeat Above
◆
:Else
◆
:EndI know that the way I wrote it, It'll simply loop over and over again whilst the switch is on. (Or maybe even indefinitely!) But any attempt of adding a timer, Or a wait function has either resulted in the game spamming my character with the two debuffs and text boxes, or just 100% freezing the game. I originally tried to put this mess of code into the common events, and then in a hidden event box, which I've had set to both Autorun and parallel.
If someone could please help me and explain what I'm doing wrong I'd appreciate it!