Board Thread:Dark Assembly/@comment-653063-20150303021112/@comment-653063-20150514014747

I initially typed all this up for BetaDragon's talk page, then realized, this could apply to anyone who wants to regex some DD2 Monsters. (Note: The regex I'm posting is somewhat specific to a program called SublimeText2, mostly because I've named the capture groups, and ST2 apparently has a really unique naming scheme. If anyone else uses this regex, be aware you probably have to adjust accordingly.) Incoming: Giant quantity of text. I wonder if posts have some kind of a character limit on them....

So, look at Template:Disgaea D2 Classes and Armor_Knight_(Disgaea_D2). I've T2C'd the armor knight page, that's the 'finished look' guide page. If I were to T2C Sea_Angel, these are the steps I do: \|name = (?\w*\s?\-?\w*\s?\-?\w*) \|move = (?\d)\n? \|jump = (?\d+)\n? \|range = (?\d)\n? \|counter = (?\d)\n? \|throw = (? \d)\n? \|Fire% = (?-?\d+)%\s? \|Wind% = (?-?\d+)%\s? \|Ice% = (?-?\d+)%\s? \|HP% =\s(?.*)%\s? \|SP% =\s(?.*)%\s? \|ATK% =\s(?.*)%\s? \|DEF% =\s(?.*)%\s? \|INT% =\s(?.*)%\s? \|RES% =\s(?.*)%\s? \|HIT% =\s(?.*)%\s? \|SPD% =\s(?.*)%\s? \|\w* =\s(? .*) \|\w* =\s(? .*) \|\w* =\s(? .*) \|\w* =\s(? .*) \|\w* =\s(? .*) \|\w* =\s(? .*) \|\w* =\s(? .*) \|\w* =\s(? .*) And in the 'replace with' box: $+{n} = Replace all, copy-paste the result into Sea Angel. I have to paste in the tabber-open and tabber-close lines separately.
 * 1. Open Sea Angel in a tab. At the bottom, expand the DD2 Classes and open all of the tier pages in new tabs. Edit the Sea Angel page and the first tier page.
 * 2. Copy all the lines from |japanese through |BaseSPD, paste into ST2. Ctrl H for the replace interface. In the 'find what' box, this is the regex:

Obvs I delete out of the 'incomp table' whatever doesn't apply, it's quicker to delete than to remember what maybe isn't here and is needed. Before:
 * 3. I'm about 85% thinking that the 'reincarnation costs' on those tier pages is not right; the few i've come across all say incomp cost is 10, and... that just can't be right. (or else DD2 does Reinc way differently than before. it's possible, i spose.) Probably best to copy it, because we /have/ it now, and if it needs fixing later... we'll just have to cross that bridge later.
 * 4. On the main Class page, the section titled 'disgaea 2 a brighter darkness'... well, might be easier to say this way.

Disgaea D2: A Brighter Darkness
Here there be some text. After:

Quotes
"The Job Description quote off the tier one page"

- Job Description, Disgaea D2: A Brighter Darkness

"Here there be some text."

- Disgaea D2: A Brighter Darkness

and as the edit summary: VFD|reason=Tier-to-Class. OA is in charge of deleting these. Save and you're done with that Tier page.
 * 5. In the Gallery on the Tier page, copy out the image and paste it into the Gallery on the Class page. DD2 has a unique CutIn image for each tier, not just one for the class, so make sure they all get displayed. In the Sea Angel case, past the 'Clio' one over, because the Sea Angel class page is using the Clio cutin and just calling it 'sea angel', which isn't wholly correct.
 * 6. I think, except for Sea Angel, Monster Class pages do not already exist, so copy the 'personality' and 'evility' charts out of the tier one page and put class=dd2a/b stuff on them like in armor knight.
 * 7. Put this at the top of the tier page, possibly overlaying any other IncompleteTable template that may already be there:
 * 8. Continue to the next tier page and repeat steps 2, 3, 5, and 7.
 * 9. When you're done for the day, edit the DD2 Classes template and remove the links from the tiers that you VFD'd.

It may look like a lot, but once you get done with that first tier page, the rest of them go pretty quickly. A highlight, copy, paste, Ctrl H, check for highlight, apply, copy, paste into class page; type in the Incomp Cost, copy over the image, paste in the VFD and save. The good thing about DD2 Monsters is that for the ones not done, data for all 6 tiers should already be there.

Let me know if you have any questions!

Edit: I removed the part of the 'paste' code that would create broken file links. I had done that intentionally, with a specific but admittedly probably quirky plan in mind, and... I have seen that the plan will not work like I thought it would, it created an issue that had not occurred to me. That's fine. It's fixable. But no sense in making /more/ broken file links.