Saturday, October 5, 2019

Well, what can I say. I don't use this thing much. What happened is I couldn't decide between starting a blog or a private journal, so I made both at about the same time thinking I would either use whichever seemed more appropriate whenever I felt like writing something, or cross-post the occasional journal entry to the blog. I now use the journal pretty much exclusively and I'm not sure what to do with the blog. It's not even that I'm uncomfortable presenting "personal" topics on an ostensibly public platform (I'm perhaps dangerously unbothered by the idea), but rather it just seems incorrect to do so. Or maybe unnecessary is the better word.

Well, let's do something. At this particular point in my life, I spend most of my time pacing back and forth, sitting still and thinking, wasting time in vague, random ways, drawing (or at least thinking about it). I'm barely playing video games, I never go for walks anymore, I'm not doing yoga at all. Other "tests of responsibility and motivation" are not happening either. Sleep is neither great nor terrible.

This is a weird place to be. A lot has been stripped away, and yet, I draw. I set my sights on that one specific thing and it appears to finally be happening. If I can do to it what I've done to games in the past, maybe something good can come of it. As for my total inability to focus on more than exactly one thing at a time, it's not like it's anything new. If it's going to be a lifelong curse I'm prepared to accept that. After all the whole point in shifting the focus to drawing is to try to "work with" this problem.

As for posting drawings here, I just feel no reason to do it at the moment, but there's a fair chance I eventually will. Maybe when I reach a skill level I deem satisfactory.

Thursday, August 15, 2019

drawing stuff

So let's think about drawing. I've been copying things lately. I'm not really sure what the best approach to learning is, but this is at least something I can get myself to do, and I think it's sensible. I mean, you'd normally use real people or objects as references if those are what you're drawing. If you're drawing anime girls, you've got to use anime girls, right? It's a little weird though of course because that's somebody else's art, but I remember a number of assignments from high school art class that were just copying famous paintings and stuff, so maybe it's not so weird. Still, I think an extra step needs to be introduced. I think after copying something, I should try to recreate it from memory the next day, with intentional changes here and there when I think I know what I'm doing. And keep doing that, increasing the experimentation each time, and then try to frankenstein different things together. And so forth and so on.





Have I mentioned that the formatting on this site makes me want to kill someone? Can't I just put them horizontally in one row? No, I can't. The universe would sooner implode. Anyway, here's some recent and not so recent stuff, all blatant copies (nametake, fkey, fatalpulse). I don't really know what to say about them. They were fun. I did the third one last night. It was a first foray into heart pupils, drool, and gargantuan tits, among other things. So, let's say tonight I do that drawing again, but without looking at any reference. Then I can see how much I've absorbed.

I think this was a good idea. Let's try to do this regularly, and entertain the notion of being organized and thoughtful and such. It beats scribbling a bunch of cryptic nonsense into the margins of the pages. I should still write down what I was listening to though, just for fun. For the demon girl it was, of all things, the Jerma Rumble.

Wednesday, July 3, 2019

So I made this blog and then proceeded to live in fear of it, in my usual fashion. But let's give it a try. What's the worst that can happen? I humiliate myself? That's not really a big deal. In truth there's nothing to worry about. Better to go looking for something and fail to find it than not go looking at all, right? Maybe.

Things are strange right now. Every year things seem to get weirder, and this one's the weirdest so far. I thought some time ago that I'd made a revelation, and I think in some ways I did. I'm not quite the same person (psychologically, emotionally, what have you) I was at the start of the year. Once again I'm playing by different rules.

For a while I actually had a normal sleep schedule. I think getting an appropriate amount of sleep is one of the best things you can do for yourself. That's one of the lessons I've learned, and I hope I will never forget it. Sleep is sanity, pure and simple. At the same time, it's beyond my control. That, too, is something I'm convinced of now. I've generally accepted that I'm not trying hard enough, and certainly (and as is often the case) if I'm not even getting into bed, I'm not trying hard enough. Even when I do get into bed and "try" to sleep only to be kept awake by the mania du jour, I can hold myself accountable in some way, but sleep has become strange lately. Often times I cannot tell if I've actually slept. I've been having this experience of "coming to my senses" in the middle of the night. It's very smooth and sudden, and I can't remember what I was thinking about before it happens. Was I asleep? It doesn't really feel like it. I don't know too much about this stuff, but I think there are stages of sleep. You get deeper into it as time passes. I think what's happening in these cases is I've actually begun to sleep, but I'm waking up before getting to the next stage. Further, the experience of "properly" waking up is worse than ever. I wake up straight into the grip of powerful emotions, the kinds of things I almost never experience in day to day life, and as usual there's a touch of delirium or something. That's probably why they seem so strong. Sometimes I forget things about my life while focusing intently on others, and the screwed up context gives me some overwhelming concern. Once I felt that I'd somehow recovered the ability to want things, a trait that I'd apparently been lacking for most of my adult life, and now that I had it back my mind just raced incoherently. And this all slides into the realm of "was it a dream?", "was it sleep paralysis?". I'm not really sure. In any case I'm in sleep hell again.

I've had some concern over where motivation should come from. As a teenager I had it. As a teenager I was also a crazy person. I think a part of me is still looking for... what? Something that can't coexist with my worldview today. I don't even know which parts are incompatible. It's not like any of it was compatible back then either; I was just fucking nuts.

There was a big sexuality rant I wanted to go on, but it's too hard to articulate. I'm not sure my suspicions are even correct anyway. Suffice to say it's like everything else. Is there a common thread somewhere?

Well, I'm worried about where things are headed. Very worried. I don't know how to put it into words. I feel like a simulacrum of a person, and life is like a prison. It's not even that I'm depressed. In college for instance, I felt so awful that I'm pretty sure people could just sense it when they were in my presence. I remember the first time I walked into the counseling office, I couldn't have uttered more than two sentences before they were scrambling to find someone to talk to me. I learned afterward that that's not how that place is supposed to work. You're supposed to make an appointment. I'm still not even sure what it was about my demeanor that made them react like that. But where was I? There was a silver lining to that time. When you're in hell, you get to believe that things will go back to normal once you're out. Now I'm (ostensibly) out and the world is more unreal than ever. Something needs to be done I guess. Something even more than what I've been doing. When I've talked to psychologists and such in the past I've always downplayed what was going on. Maybe it's about time I go somewhere and just puke everything onto the table. Can't exactly make anything worse at this point.

I wasn't planning to talk about the past, but I just let my mind wander and that's where it always seems to go. Writing this was probably a good idea. I don't know what I expected, if anything.

And whoa, my dad just walked in on me and asked if I'm okay, and I told him I think I should see someone again. It was that easy. Surreal! (And yikes, I really am so easy to read, aren't I?)

Monday, June 10, 2019

Kotohime Observations

Kotohime is all about planning and foresight. More than most characters, she rewards you for "screen watching" and understanding some of the game's more subtle aspects. She gives you a lot of control over the flow of the game, but you have to use that control wisely to get the most out of her.

Let's start with what I think is her most defining trait: the significant delay on her spell attacks. This delay means her spells need to be timed differently from any other character's, and the number of factors you can realistically take into consideration when choosing your timing is more limited. For example, let's say you're playing Mima. What do you think about when you cast Mima's spell? Some important things would be: the formations which are currently on your and your opponent's screens, the formations which will appear after these (assuming you have this knowledge), how soon and how completely your spell will be reflected based on your opponents formation, how well your charge attack can clear or avoid clearing the formation you've currently got, your current position and potential mobility in the immediate future, which fireball phase you're in and how long before it shifts, and whatever dodging needs to be done in the meantime for the sake of your survival. Nevermind that truly keeping track of all this requires having a swirling galaxy for a brain, my point is that it's a lot. But now let's look at Kotohime. The first thing to realize is that, for Kotohime, most of the more "immediate" factors (current formations, current position, the impact of her charge attack) are actually pretty unimportant. If you can anticipate the next formation or two, this can be very useful, but in practice it's rarely possible. So what does Kotohime have to think about? There are basically two critical things, and one of them is uncommon: whether or not you've recently triggered a level 3 spell, and which fireball phase you're in, or more specifically, which phase you will be in in about 5 seconds. If you trigger a level 3 but then cast a level 2 before it explodes, the level 3 is often retroactively transformed into a level 2, and if you're not prepared for this you may get a surprise shitstorm to the face. But in general, the most important element to consider when choosing your spell timing is the fireball phase. Kotohime's spell takes about 5 seconds to explode, and the phases last 5 seconds, so if you want the spell to explode in focus phase you should cast it right at the start of the preceding scatter phase, or in other words, every 10th second.

Now, the timing for the initial casting may be easy to choose, but what you do in the next 5 seconds is very important. Basically, all of the factors which you would normally think about when casting a spell (but couldn't because they were too far into the future) will quickly reveal themselves to you in the time before the bomb explodes. The key now is to guide things in a favorable direction. Let's look at the general idea step by step. First, the formation you've got on screen at the moment you cast the spell is not going to be the one you use to reflect the shitstorm. The formation that does the reflecting will be either the next one, or more commonly, the one after the next one. The general idea is to remove the current formation, then remove the second just before the bomb explodes, and then use the third formation to reflect. If the first formation is one of the few that can be stalled an extremely long time, then you may stall that one until just before the bomb explodes and then reflect with the second formation. When the shitstorm arrives, it's important to be ready to macrododge the pellets even if you've got an exploding formation to shelter you, especially if the game is in focus phase. In doing this, it's important to understand that when fireballs are created, their aim is already set in stone, but pellets do not choose their aim until they materialize at the top of your screen. For example, let's assume you're right in the middle of the screen with a small formation exploding directly above you. At this moment, your spell explodes on the opponent's screen and is totally reflected. The instant this happens, you should dive to the left wall, so that even as all the pellets and fireballs come flying to the top of your screen, you're already on your way over to the left. The fireballs will still be aimed to the middle, since that's where you were when they were created, but the pellets will aim at the left wall. Now you macrododge down and under, returning safely to the middle. (Kotohime is fast enough to consistently macrododge the reflected spell regardless of whether you reflect any of it as long as you're prepared and nothing gets in your way.) It's also very important to keep an eye on the opponent's screen before the bomb explodes. Because you can see the bomb's exact position, approximately when it will explode, which formation the opponent has on screen, and where they are shooting it, you can predict almost exactly when and how your spell will be reflected. You can see, for instance, if the spell won't be reflected all at once, but rather will be reflected late after the bullets have spread out, and react accordingly. It also helps to understand that the further the point of reflection is from the inner wall, the longer the reflected bullets and fireballs will take to reach your screen, and similarly, the further you are from the inner wall, the longer aimed fireballs will take to reach you.

Another quirk about Kotohime is that her boss attack barely uses any pellets. This makes it very safe. In fact, from a scoring perspective, it's existence is actually counterproductive, since it tends to distract the AI from shooting the formations. Nonetheless, between the safe boss, and the careful precision with which shitstorms can be created and reflected, Kotohime is a character who, when played thoughtfully, can score very high very safely. If you're swimming in energy and want to take greater risks, start casting spells every 5 seconds rather than every 10 seconds. If you want the game to cool off, just stop casting spells. Your boss attack rarely backfires and suppresses the AI very well.

Now let's look at some particulars.

At the start of each round, I think the usual goal should be to build up enough energy to cast a spell at 20 seconds. You could cast one at 10 seconds but it's almost never possible to get enough energy in time. Triggering a boss attack before you've cast your first spell seems to be a bad thing more often than not, so don't go out of your way to preserve your spell points in the beginning. If you lose a round and start the next with enough energy for a spell, you have two options. Unlike most characters, who can cast a spell after about 3 or 4 seconds and get it reflected by the first formation right at the start of focus phase, Kotohime can't quite get her spell out fast enough. If you cast the spell as soon as possible, it explodes towards the end of focus phase, but the first formation tends to show up a little too soon. The most effective response to this seems to be immediately killing the first formation with a charge attack and then reflecting with the second, but this is a little unreliable. The safer option is to just wait and cast the spell at 10 seconds. If you've only got the energy for a single spell, that's the one I would pick. If you've got a lot of energy though, may as well take the risk and cast instantly.

Kotohime's charge attack is great for some things and terrible for others. Bosses melt when pointblanked by it, and it invariably destroys any fireballs that cross it, making it reliable for self defense. It's slow speed makes it hard to use for chaining though, and playing Kotohime against characters whose extra attacks block bullets can be a struggle. It's also difficult to reactively clear a formation just as it passes over a boss that's about to shoot a bunch of pellets. This is especially annoying against bosses who move while shooting, such as Rikako and Ellen. I think Kotohime's most favorable opponents (for scoring) are Marisa and Mima.

As mentioned before, you can actually convert level 3's from boss panics into level 2's. This can be very lucrative, but keep an eye on the opponent's screen to see when the bomb will explode.

Boss cancelling is very good for Kotohime since you'd usually rather not have her boss on screen anyway.

It can be very tempting to try to speedkill Yumemi's boss attack, since you can indeed sometimes kill her before she attacks, but this is a bit of an illusory advantage. You generally can only kill her that fast when she was going to do one of her weaker attacks anyway. You need near perfect timing to kill her before she does the cloud (and if you over commit you just take it to the face), and even preventing the swirl is difficult. Further, if you try to speedkill before the swirl but aren't fast enough, you now probably don't have time to use another charge attack to go through the swirl with i-frames. Speedkilling her has its merits of course, just be careful.

And here are a few gameplay examples.

https://youtu.be/nZO6AdrkLKc?t=1553
In this case the first formation takes a long time to clear, so I reflect the fireballs with the second. I destroy it on the right to make the fireballs appear sooner.

https://youtu.be/nZO6AdrkLKc?t=895
A level 3 converted to level 2.

https://youtu.be/nZO6AdrkLKc?t=2136
A surprisingly viable way to dodge shitstorms when you're too low to properly macrododge them. Dive upward into the space created by exploding fireballs, then cut right.

https://youtu.be/nZO6AdrkLKc?t=2327
Another example of how being near the inner wall makes the fireballs arrive sooner. If I had tried the exact same thing on the left it would have failed. Also shows how starting with an instant spell tends to cut it very close. Alternatively I could have speedkilled that formation and then reflected with the next.

Monday, June 3, 2019

PoDD Info

Last updated Novemeber 07, 2018

This is a collection of information that I, Zil, have learned about Touhou 3 in my numerous years of playing it. It is still, and probably always will be, a work in progress. Bear with me as I am some kind of inarticulate autist. Here's a list of the sections with vague descriptions of what they contain. They are in no particular order.

1. Bullets, fireballs, extra attacks
Where they come from and how they behave.

2. Boss attacks, behavior, etc.
How boss attacks work, from general to specific things. Can definitely be expanded upon.

3. Triggering bosses through spell points
The ways in which spells and bosses are triggered with spell points. More or less complete with my current knowledge, not to say it can't be written better.

4. AI behavior
My understanding of the rules which govern the AI's playing. Why it gets hit, why it bombs, etc.

5. Miscellaneous
Glitches and other oddments that don't fit anywhere else.

6. Terminology
Clarification of PoDD lingo, and my inconsistent usage of it.

-----
1. Bullets, fireballs, extra attacks

There are two basic kinds of bullet, pellets and spell bullets. Pellets are the tiny white bullets. They are fired en masse by level 2 spells and bosses, can be created in small numbers by combos, and can be reflected by explosions. Spell bullets only come from level 3 spells and bosses. Though all characters' spell bullets look different (for instance, Marisa's are five pointed stars, Ellen's are little hearts) I am quite sure they all have the same hitbox size, and indeed are probably the same size as pellets as well.

Reflected bullets and bullets created by combos have the same behavior. First, one way or the other they will always originate from an explosion. They appear as tiny white rings and fly straight to a random spot at the top of the other player's screen. When they reach this spot they become pellets and are fired in the general direction of the other player. Reflected bullets retain their original speed while the speed of newly created bullets is determined by rank.

Extra attacks usually come from reflected fireballs, but can be created less frequently by any combo. They first appear as blue "glyphs" and fly to a point on the other player's screen where they become extra attacks. At most eight of a given player's extra attacks can exist at once, including glyphs. Some bosses can also create extra attacks directly, but these are special and do not contribute to the total.

Blue fireballs are created by combos. They explode when they touch existing explosions and can also be destroyed by direct damage, though destroying them this way doesn't make an explosion. In either case they are reflected, however. When fireballs are reflected a number of things can happen. Usually a red fireball is created, though sometimes it will be an extra attack, a red fireball and an extra attack, two red fireballs, or two extra attacks. The chance of multiple attacks seems to be much greater if the original fireball is reflected by an explosion rather than direct destruction. Red fireballs are slightly healthier than blue ones but otherwise behave identically.

Now, the aiming of fireballs is a mysterious matter. I don't understand it completely, but I'll describe what I know as best I can. Anyone who's played PoDD knows that sometimes when a wave of fireballs is launched, they all seem to aim at the player, and other times they all scatter across the screen. Which one of these things they do is actually not random. It is determined by the amount of time that has passed. Every 5 seconds, the game shifts between what I've dubbed 'scatter phase' and 'focus phase'. During scatter phase, the small red and blue orbs (soon-to-be fireballs) select a random destination at the top of the other player's screen and fly straight toward it from the place where they were created. When they reach that destination, they become fireballs and fall straight down. During focus phase, the orbs choose a destination directly above the other player's current position (that is, her position at the moment the orb was created), fly straight to it, become fireballs, and fall straight down. Every round starts out in scatter phase.
 
Of course, this is PoDD so nothing can be simple. In my testing I've found that sometimes the game is nice and changes phase every 5 seconds, with seemingly exact precision. Usually however, the timing is gradually distorted somehow. I've thought of a number of theories attempting to explain this problem. My first suspicion was that the momentary pauses from spell cut-ins would freeze the game's timer and so delay the phase shifts by about half a second for each cut-in. However, I've tested this extensively and I've concluded that this IS NOT the cause. The timer for phase shifts proceeds through spell cut-ins. In fact, even the AI's survival timer seems to keep counting seamlessly through the cut-ins.
 
My next best theory was that it is caused by slowdown. Verily, if there's any slowdown at all, it's going to distort the timer. Of course, I've been finding this problem even in matches that seem to have no slowdown at all. I eventually concluded that the game must actually be slowing very slightly: enough to gradually alter the timings over the course of a match. This explanation seemed a bit dubious to me but it was the best I could come up with. However, I've recently studied some of my older recordings from a time when I never experienced slowdown at all in this game, under any circumstances. Even in these recordings, I found that the timings deviated, seemingly at random, and so I now believe that the slowdown theory is also wrong.

Implications...

- Almost all bullets initially appear as some kind of "soon-to-be" bullet. Tiny white rings for pellets, blue glyph thingies for EX attacks, red and blue circles for fireballs. These have to physically move to the other side of the screen before they become bullets, and their movement speed is always the same. This means that when many bullets are created simultaneously, the ones that are headed toward a spot near the inner wall will arrive sooner than those headed toward the outer wall. This creates a kind of "sweeping" effect as bullets spawn across the top of the screen. (This video provides a good example: https://www.youtube.com/watch?v=xoibq3J2uFY)

- Pellets can be macro-dodged, even if hundreds of them come at you at once. Further, it's easiest to do this with counterclockwise movements. Note that if you begin on the left side of the screen, it takes the first bullets longer to reach you, and thus you are forced to move later. If you end up on the right side, the last bullets will be coming from the upper left, and so you can continue your dodge by moving upward. In the most extreme cases (for instance, when you are trapped by Chiyuri's lasers), all but the last bullets to appear can be dodged by moving straight down the left wall, and all but the first bullets can be dodged by moving straight up the right wall.

- Once fireballs are on their way, their destination is locked in. Pellets, on the other hand, aim at you when they reach the top of your screen. Knowing this, you can stand under some exploding enemies to lure the fireballs to that spot and then move the instant the opponent sends a big attack in order to misdirect the pellets.

- Because every round starts in scatter phase, and the first wave of enemies appears roughly 5 seconds into the round, casting a spell just as the first enemies appear will always result in aimed fireballs (assuming your spell is reflected) because the game will have just shifted to focus phase. This is of course only possible after having lost a round, and is a strong incentive to die with enough energy for a level 2.

-----
2. Boss attacks, behavior, etc.

Aside from Chiyuri's, bosses always follow the same movement path after appearing. They spawn in the upper center of the field, and start moving left at a slightly downward angle. Once they get close enough to the wall, they bounce to the right. When they get low enough on the screen they bounce upward, and so on. That takes them on exactly the same path across the field every time. Of course, some patterns cause the bosses to stop moving, but they simply start up again in whatever direction they were going. Chiyuri is different in that she teleports randomly after every pattern.

Each character's boss has a specific amount of health. The HP values for each boss are:

- 100 for Ellen and Kana
- 110 for Reimu, Mima, Marisa, Kotohime, and Rikako
- 130 for Yumemi
- 140 for Chiyuri

For an idea of what these actually mean, note that a single shot does 2 damage, and a bomb does 89/90. Credit for finding these numbers goes to Arcorann.
https://www.shrinemaiden.org/forum/index.php/topic,12670.msg896106.html#msg896106

If bosses are not destroyed they will eventually leave of their own volition by moving downward off the bottom of the screen. The amount of time they will spend on the screen before deciding to leave appears to be random. They may sometimes leave even after using just one pattern. They will always use at least one pattern though. (Note that the act of leaving the screen occurs in the place of using a pattern. i.e. they will move around a bit, or in Chiyuri's case teleport, after using their last pattern, then begin descending at the moment when they would have otherwise attacked again.) Also worth noting is that they don't actually reach the walls before changing direction, meaning that if a boss is heading straight toward you, hugging the wall will guarantee that it doesn't collide with you.

-----
3. Triggering bosses through spell points

Normal boss attacks can be triggered in two ways. The more straightforward method is simply casting a level 4 spell. This consumes three gauge levels and instantly triggers a boss attack, no strings attached. Note that if you try to cast a level 4 spell while your own boss is already active, you'll cast a level 3 spell instead, consuming only 2 gauge levels, as usual.

However, boss attacks can also be triggered through spell points. When your spell points reach certain values, boss attacks will be triggered automatically, at no cost. Now, the exact workings of this system are quite complex, and I may not understand them completely. I'll try to explain them as best I can, but know that there may be errors. I'll call the amount of spell points needed to trigger a boss attack at a given moment the "spell point requirement," or "SPR" for short. Initially, the SPR is 51,200. As soon as a player meets or exceeds that number, their boss attack is triggered. When that happens, the SPR is increased by 51,200, bringing it to 102,400. That means that in order for the other player to trigger a boss reversal, they'll need 102,400 spell points. Should they reach that amount, they trigger a boss reversal, and the SPR is increased by another 51,200 points, and so on. With each successive boss reversal, the SPR increases by 51,200. If at any point one of the bosses either leaves the screen on it's own or is directly destroyed, the SPR resets to its original value of 51,200.

Subtleties...

- If you destroy the opponent's boss attack or it leaves on its own while your spell points are over 51,200, you do not get an instant boss attack; however, any small increase to your spell points which occurs after the boss left but before your spell points reset will trigger a boss attack.

- Likewise, if the opponent sends a boss over, and your spell points are already above the new SPR, all you need to do to reverse the boss attack is increase your spell points by a small amount before they reset, and a reversal is triggered instantly.

- It is possible for the SPR to be raised "beyond" 655,350 (the most spell points you can have at once). In this case, the SPR actually wraps around to 10,250. Credit goes to KirbyComment for discovering this phenomenon.
https://www.twitch.tv/kirbycomment/v/91118220
https://www.shrinemaiden.org/forum/index.php/topic,8095.msg1288350.html#msg1288350

Due to the above, it can appear to those who don't know how it works that boss attacks are sometimes triggered at random; however, once you grasp the mechanics you can see that everything (usually) makes sense.

Now, about "boss panics." These are boss attacks which are accompanied by a level 3 spell (cast at the same instant as the boss attack). They are triggered at 300,000 spell points. This amount never changes. The triggering works in more or less the same ways as it does for regular boss attacks, though there are some slight differences.

- A boss panic can be triggered while you already have a boss active. This simply casts a level 3 spell.

- If you suddenly jump to 300,000 spell points, a normal boss attack is triggered, not a boss panic. If you then increase the spell points by a small amount more (and perhaps, after a certain amount of time has passed) you'll trigger the boss panic. Essentially, it seems that when you meet the requirements for a normal boss attack and a boss panic at the same time, the normal boss attack takes priority. Because of this, it's actually somewhat rare to see boss panics triggered when you didn't already have a boss onscreen.

- Once you have triggered a boss panic, you cannot trigger another one until your spell points have reset.

- Boss Panics increase the SPR just like normal boss attacks, even if you already have a boss on-screen.

-----
4. AI Behavior

The AI is supposed to last a certain time in each stage. The later the stage, the longer it lasts, and individual stage’s times are reduced when you lose lives to them. (i.e. dying in stage 6 shortens the time for the next round in stage 6, but stage 7 is unaffected, etc.) The way the AI actually carries this out is by taking “intentional” hits at certain times in the match. For example, in stage 1 the AI takes intentional hits at 1:00, 1:20, and 1:40 (meaning minutes:seconds elapsed since the start of the round). Also note that it's not always exact with its timing for these hits, but in general it’s pretty close.

That’s the basic idea. However, it's possible for the AI to become trapped from time to time. Usually this involves big enemies moving sideways into it, blobs of fireballs smothering it, or some characters' EX attacks exploiting its lack of foresight. When this happens, the AI bombs the instant it is hit, and this is the only situation in which the AI ever bombs. If it’s out of bombs but has a full gauge, it uses a hyper. (Note, if the AI is charging when it gets hit, it instantly releases the charge, potentially saving itself with the tenth of a second invincibility from the charge attack. I believe that if this is sufficient to avoid the hit, it doesn’t waste a bomb.) Under certain conditions, the AI stops using spells and just saves the energy for hypers. I’m not completely sure what the conditions for this are, but for starters it must at the very least be out of bombs. From there I'm not sure if simply being on the last hit point is enough, or if it must have taken more damage than expected for that point in the match, or if perhaps either of these circumstances will cause that behavior.

If the AI has no way to avoid the unintentional hit, then it just takes it, possibly causing it to die early. Furthermore, It does not make up for the unintentional hit by skipping the next intentional one, so for instance if the AI has already taken its planned first hit, and you manage to get a second hit on the AI before it takes the planned second hit, it will simply kill itself by taking a third hit when the time for what should have been the second hit arrives.

The first round (and only the first round) against Yumemi is a bit unique. She does not have any planned hits. She just survives as best she can for as long as she can. One important thing to note is that if she is reduced to her last hit point she will always start saving her spell energy for defensive hypers. As long as her gauge is full, you can be sure that she will not be killed, and that she will not use the energy to cast spells or boss attacks. Occasionally Yumemi will do this when she has more than one hit point left (see this run http://www.hitbox.tv/video/474199). This seems to be the result of her taking two hits in quick succession, so that even though she was hit twice, it will still take two more hits to kill her. In other words, her "defense mode" is activated when she has been hit twice, rather than when she's reduced to her last hit point.

A bit more about the AI's use of spell energy. I don't know what causes it to start charging up to cast a spell when the gauge is partly full, as opposed to simply saving the energy, but I do know what seem to be a few general rules about its behavior. For one, whenever its spell gauge is completely full, and its bomb stock is not empty, it will start charging up. It also tends to start charging when a round begins (i.e. when you've lost a previous round to it). Furthermore, once it has begun charging, regardless of the situation or how much energy it has, it will keep charging until the entire bar is lit up, and will then release the charge immediately. The only time it will release the charge early is when it is about to be hit while charging, in which case it releases the charge to utilize the invincibility frames, as I mentioned earlier.

Here's another thought. In PoFV at least, because of the way damage works (which I will not explain here), it is possible for the AI to take its 3 planned hits and survive due to the player having been hit just before each of the first two hits, reducing the damage taken by the AI. While damage does work similarly in PoDD, I'm not sure if it's actually possible for the AI to survive 3 planned hits, even if the player reduces the damage by taking hits just before. What little testing I've done leads me to believe that this is not possible, as the time between hits is too great. If it can happen, however, I don't know how the AI reacts afterword. It may have a backup fourth hit planned, as the PoFV AI does, or it may simply go on until it dies accidentally.

-----
5. Miscellaneous

This is just a list of various observations that may or may not be of any importance. This could use some organizing.

- If you trigger a boss attack, but cast a spell before it physically appears, the boss will fail to appear, though the SPR is still increased, and you will still be rewarded for the boss attack in the stage's clear bonus. If you can get your spell points up to the new SPR, you'll trigger another boss attack. If your spell points are already above that amount, (for instance if you gained over 102,400 at once, then cancelled the resulting boss attack) you just have to increase them by a small amount and you'll trigger the next boss attack. I believe it's also possible to cancel a boss attack by casting a spell immediately before the boss is triggered, though the timing window is very small. (Also note that all of this applies only to your own boss attacks. You can't cancel the opponent's boss attacks like this.) This phenomenon has some utility so I will refer to it as "boss cancelling" in the future.

- If you cast a spell while you already have a spell active on the opponent's screen, the pre-existing spell will stop as soon as the new one starts. Essentially this means you can't have two spells firing at the same time. Summoning a boss attack while you have a spell active will also cancel the spell. Kotohime's spell can only be cancelled before the mine actually spawns. Once it's appeared nothing she does will impede it, and so Kotohime alone can effectively attack with two spells at once.

- Ordinarily, spell and boss rank increase by 1 when a spell or boss is triggered, as you'd expect. However, they are also increased in some less obvious ways. When a player triggers a boss panic, that player's spell rank goes up by 3, in addition to the normal increase to boss rank. Also (and this is very strange), whenever either player destroys a boss attack by depleting its health, the next time a spell or boss is triggered (by either player) the boss rank will increase by 1, in addition to whatever would normally have been increased.

- There are 6 frames of invincibility when using a charge attack. This applies to any level of charge attack, not just level 1. You can see the character sprite's outline flash for the duration of this invincibility.

- Marisa and Chiyuri cannot shoot, bomb, or activate hypers during their charge attacks. I’ve never seen the AI shoot during a charge attack as either of those characters, though if I'm not mistaken I have seen it somehow bomb during a charge attack as Marisa.

- If you are out of bombs with a full gauge and you charge up to level 2 or 3, then activate your hyper without releasing the shot button, you cast the spell and hyper simultaneously. The normal energy cost of the spell is still subtracted from your gauge, and so the duration of the hyper is shortened by roughly 3 seconds for each section of of the gauge you lost.

- If you lose a match to Rikako while her hyper is active, the gears will still be spinning around her at the start of the next round. In this state, she can't use any charge attacks, and sometimes it seems she can't shoot either. She remains like this until she uses another hyper. Once that hyper ends, the gears will vanish and she'll be able to charge and shoot again.

- There is a limit to the number of bullets that can be on the screen at once. You see this most commonly with Yumemi and Kotohime. Strangely, I've never noticed bullets missing from a boss's attack in this game, though it happens with spells. For instance, the rings in Yumemi's spell may appear as quarter circles rather than complete rings if fired at the same time as her boss's cloud of death. Kotohime's mines can be missing some or all of their bullets if two of them explode at the same time.

-----
6. Terminology

For the sake of everyone's sanity, let me define some things that may be unclear.

Boss attack / pattern = I use "boss attack" inconsistently to refer to bosses themselves (which agrees with the game's usage) and the bullet patterns they create. I'll try to avoid this and say "pattern" or something, but I might do it without realizing.

Chain / combo = Other words I use inconsistently, so let's try to set it in stone. I would say that a "combo" is everything that results from your destruction of a single enemy such that the hit counter is increased without resetting. I think that's sensible since your highest value for the hit counter is called "MAX combo" in the clear bonus. A "chain" then is a series of combos that are strung together such that the spell points are increased without resetting.

Enemy = I'm terrible about this. Generally when I say "enemy" I mean the little ghosts/stars/moons/etc. I try to call the other character (the one you're fighting) the "opponent" or something. I think, ideally, we'd call the ghosts and stars "zako" like people do in Twinkle Star Sprites and other games, but this will require lots of rewriting, and I'm lazy... so lazy...

Hyper = When you have no bombs, your gauge is full, and you press the bomb button. The appropriate term for this, if I'm not mistaken, is "charge max ability", but people have been calling it hyper since ancient times.

Level 2, etc. = "Level 2" is just short for "level 2 spell". Also sometimes shortened further to "lvl2" or somesuch.