Notepad++ Python scripts for DinkC

Disclaimer: I don't claim that this is particularly good Python code. Also, if the scripts somehow ruin your file, they respect Ctrl+Z. If they somehow don't, tough luck.

I've had these scripts for personal use for a while, but I may as well share them. They're Python scripts for Notepad++, though people using another editor with Python support will hopefully find it easy to salvage the good bits.

For this to work, you must first install the "Python Script" plugin. Install it from the plugin manager (the "Plugins->Plugin Manager->Show Plugin Manager" option from the menu). Having done that, put the files in "C:\Users\YOURUSERNAMEHERE\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts" .

If they don't show up in the "Plugins->Python Script->Scripts" menu, restarting Notepad++ may help.

As you see, "//& 120" specifies the wait() to use between lines. Some people like this, some people don't. If there's no "//&" line, or a "//& 0" line, no wait() will be added.

"//< 4" sets the speech colour of the other person to '4'. These are the same numbers as set_font_color() uses, and they translate to the same colour code. So "//< 15" will produces lines that start with "`%".

If you have more than one character, or you don't want to talk to &current_sprite, you can do this:

This works the way you may guess. The first line to have "---" gets replaced by choice_start(). The first line to have "+++" gets replaced by title_start(), the second "+++" is title_end(), and the second "---" is choice_end().

Any lines that are not between the two "+++"-lines and have quotes in them are interpreted as a choice option. Yes, even when it's between the first "---" and the first "+++". The script is not particularly clever. The text between the quotation marks is used to generate the comment in front of the if-statement.