If you want to modify these strings for your own dungeon, you can create your own copy of localtext.txt in your dungeon's directory, containing your own text strings. You can also overwrite any of DSB's standard text strings. The format of a localtext.txt is a series of lines, each one consisting of a key (without whitespace), one or more tabs, and then a text string. In your code, use dsb_locstr(key) to grab an entry from your local text.
Example:
The following is defined in DSB's localtext.txt:
Code: Select all
COINFLIP_HEADS IT COMES UP HEADS.
Code: Select all
dsb_write(system_color, dsb_locstr("COINFLIP_HEADS"))
Attack methods themselves also have localization text. The key can be specified by the dungeon designer or auto-generated by DSB via the auto_loc_key property. Methods without proper localized text are displayed using their name in the table (just like they were in 0.75 and before) so this shouldn't break any older dungeons.
You can also create additional localtext files with an underscore and an uppercase two-letter code for the purpose of localization, for example, localtext_DE.txt for German text. If (and only if) the user's locale (in dsb.ini) is set to DE, it will load this file.