Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Endless loop when the first hero is named is \N #1145
In RPG Maker (tested on RM2k v.1.61), when
In EasyRPG, a substitution is performed recursively. If the first character is named
Judging by how text lines are broken in winning messages (see my comment on #588 (comment)), I think RPG Maker does the code replacement in two passes: first,
Just checked. If the hero name contains \N or \V, it is displayed as . But this  is different from normal , because it can’t be used with other message commands.
This is different from a case with a hero named :
Strange, you said in the other post linked above that
EDIT: Hm actually I think I know what is going on here.
First of all, the
There are multiple kinds of message displays:
On the map, everything comes from point 1 of course. Mostly the message pool is kind of redundant because only 4 lines can be used in the "Show Message" event command anyway, so it is not used there at the moment, but level-up messages use it for example (because you may learn tons of skills).
In battle, most of the things you see come from point 2, the battle message window directly. Messages created by events as well as game over and victory messages (including level-up) come from point 1, the full message window. Only the battle start messages ("xxx appears") come from the weird combo in point 3 because they behave like the other in-battle messages (not like the full message window) but can have more than 4 lines.
The RM handles the escape sequences at different places, and this explains the differences and bugs as well:
In all cases where
As for the word wrapping bugs - I do the wrapping at two places: I wrap text before it is pushed into the message pool (and then push multiple lines if needed), and I wrap the lines in the 4-lines buffer of the battle window before actually displaying them (unlike the message pool, this can cause lines to be completely hidden because only 4 actual lines can be shown - but it will very rarely happen so I took that risk). This means that those codes are never taken into account, unfortunately, and that's very hard to fix, so I'll probably leave it.
Also, given this information and the explanations above, it should become clear why
This means that a hero named
By the way, I realized only now that