Post by PrincessDigit on Aug 27, 2016 21:22:25 GMT
Possibly not my smartest idea, but I wanted to go a bit more disgaea for my game, and thanks to your absolutely incredible tutorial series, I was able to create a lot of the framework I needed in order to get there. My main issue now is basically the idea of grabbing whichever unit you want and going through there motions, ending your entire turn with an option in the CommandSelectionState called "End turn". This all works fine and dandy. The issue is the enemies turn. I'm not 100% on what is going on, but there are a few things it'll do, in no particular order.
- Crash. It'll crash hard when it can't figure out what it's meant to do next. This isn't the worst thing, and it generally only takes me a minute to get that to stop, but it does do it fairly frequently.
- Ignore the player's turn. It will occasionally allow the enemy units to just loop through their own order over and over, until I shut it down.
- Stop. This is different from crashing, because it's still allowing the program to function, it's just not doing anything or letting me do anything. It just goes through the enemies turns, (I'm using 2 enemies right now), and it will run through both their turns, then generally one of them will decide they want to do first aid, and they will do it on an empty tile, then nothing happens.
- They will also, if they actually attack the player, it just loops the ability until they win. It doesn't use any of their MP, it just cycles through the exact same move until such time as they win or I give up waiting.
Any ideas on how to better control using a two-turn system?