我正在创建一个解析电子表格以格式化文本。文本可能会因几个单元格而异,可能需要背对背完成几个部分。
我有一个文本示例:(由于自动换行,我已在每行中添加了单元格编号)
b16:Darkheart Hive Aura. All other friendly shrill within 60 feet learn the Hive Offering reaction.
b17: False Appearance. While the shrill remains motionless, it is indistinguishable from a tangle of vines.
b18: Spellcasting. The shrill's spellcasting ability is Intelligence (spell save DC 16, +7 to hit with spell attacks), and is considered an 11th level spellcaster. The shrill can innately cast the following spells, requiring no material components:
b19: At Will: Druidcraft, Thorn Whip, Booming Blade
b20: 5/day each: Entangle, Healing Word (3rd level)
b21: 3/day each: Spike Growth
b22: 1/day each: Contagion
b23: Actions
b24: Talon. Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit 18 (3d8 + 6) slashing damage.
b25: Reactions
b26: Hive Offering. When another shrill within 30 feet is being damaged by another creature. The shrill can reduce its HP to 0. Up to six shrill within 30 feet, including the one being damaged, regain hit points equal to 2d4 + 1 for each shrill within 30 feet. The shrill crumbles to ash and dies.
b27: Legendary Actions
b28: The shrill can take 3 legendary actions, choosing from the options below. Only one legendary action can be used at a time and only at the end of another creature's turn. The shrill regains spent legendary actions at the start of its turn.
b29: Move. The shrill moves up to its speed without provoking opportunity attacks.
b30: Cantrip. The shrill casts a cantrip.
b31: Healing Word (Costs 2 Actions). The shrill casts the Healing Word spell.
我需要将所有从施法开始到反应前的信息结合起来,并将其移至一个新的单元格中。与此同时,我需要将每条线从Darkheart移动到I17到I21单元格之前的动作,然后将线放在反应下方并放入I30单元格。在单元格i23到i29中,行后行为相同。传奇动作下方的线条进入I31至I34单元格
有将其移至其他咒语的代码,但我不确定如何组合或找到一种应对方式,每个领域下或多或少。如果在单元格b23和b25之间还有更多行