vampiregoat69 wrote:
> I am using a script for breath weapon counter and I can't figure out WTF
> I need to set in the description for it to understand it.The creature I
> want has a 7d8 damage from fire and I wanted it 1d4 rounds.I tried to
> use the syntex it uses to put the damage and rounds in the description
> only for it to tell me NOPE.
>
> I copied Breath Weapon.*:.*\r into the description and tried 7d8.1d4\r
> and I am at a loss.
It's a regular expression, a text-parsing command language. "\r" is
the "new line" special character so it'll read and parse the whole
line, .* is any amount of text and numbers until the following character
is found.
So the code searches for the text "damage" near a dice expression,
and the text "round" near another dice expression, separated by ":", and
terminated by a new line.
Breath Weapon deals 7d8 damage : reusable after 1d4 rounds.
Though I'm out of practice and can't test that, but it's something
like that. <code snipped, see op>
--
tussock