MZ Change skill description?

I know about this script line:

$dataSkills[X].description = "blablabla"

But it seems it doesn't work if you'd like to change both lines in the description field (or just the second one).
Is there a way to edit specifically the second line of the description field while leaving the first untouched? Thanks in advance!
Hi there!

Well, if your description text indeed has two lines, you can try do this in a script call:

JavaScript:
// This should return an array. Each array's element will be a line.
const skillTextLines = $dataSkills[X].description.split("\n")

// Array's index starts at zero. So [0] is the first line, [1] is the second line, etc...
// Make your changes on the line you want.
skillTextLines[1] = "your text"

// Put together all the text again.
$dataSkills[X].description = skillTextLines.join("\n")

Another way of doing that is putting a variable on the script description:
1628513268086.png
If you mean, add a new line, try adding "\n".
As in "This text is in line 1\nThis text is in line 2".

Don't have MZ opened right now, so I couldn't test it.

Edit:
Ninja'd
\n worked, thank you.
Adding further information (in case someone found this thread).

Changing the skill description through this means will not make the change permanent. As in, if you reboot the game, the description will be reset.

Original thread: https://forums.rpgmakerweb.com/threads/change-skill-description.139410/