To make a long story short, I have a combo system in my game which increases a variable by 1 for each time you land a hit. The way I have it registering if the attack landed or not is by flipping a switch on whenever the attack hits via the damage formula:
(the combo switch is switch 9, the other switches don't matter for this specific issue unless I'm wrong)
I also have a common event attached to the attack which detects if the switch is turned on and increases the Combo variable by 1. With that I can do a bunch of other things within the Troop events like increase the combo meter graphic I have. I had a whole system in place which worked up until about an hour ago. I didn't touch anything, the most I did was copy and paste the above code into a new attack I was working on, which shouldn't do anything.
My problem is that the switches no longer trigger. Like I said, they did a couple hours ago, but when I went to test my new attack, the switch simply wouldn't trigger. It wasn't just with the new attack either, I went back to the other attack's which worked fine before and now, for some reason they just aren't triggering. I'm completely stumped. I have legitimately no Idea why the switches will not trigger from the formula. While setting up and testing my system, the switches were extremely finicky and it confused me then, but I managed to get it working up until now.
This is quite the dilemma and I would really appreciate some help figuring this out. Its very integral to my game to get this working, which is why I'm so frustrated at how finicky this is being. Thanks guys.
Code:
$gameSwitches.setValue(9, true); $gameSwitches.setValue(10, true); $gameSwitches.setValue(21, true); if (a.isStateAffected(13)) + (a.atk * 2.5 - b.def * 1); else (a.atk * 1.1 - b.def * 1)
(the combo switch is switch 9, the other switches don't matter for this specific issue unless I'm wrong)
I also have a common event attached to the attack which detects if the switch is turned on and increases the Combo variable by 1. With that I can do a bunch of other things within the Troop events like increase the combo meter graphic I have. I had a whole system in place which worked up until about an hour ago. I didn't touch anything, the most I did was copy and paste the above code into a new attack I was working on, which shouldn't do anything.
My problem is that the switches no longer trigger. Like I said, they did a couple hours ago, but when I went to test my new attack, the switch simply wouldn't trigger. It wasn't just with the new attack either, I went back to the other attack's which worked fine before and now, for some reason they just aren't triggering. I'm completely stumped. I have legitimately no Idea why the switches will not trigger from the formula. While setting up and testing my system, the switches were extremely finicky and it confused me then, but I managed to get it working up until now.
This is quite the dilemma and I would really appreciate some help figuring this out. Its very integral to my game to get this working, which is why I'm so frustrated at how finicky this is being. Thanks guys.