Update Mes Macro
Signature
Description
Used after the Set Mes Macro function to update a macro of the currently opened window instead of the next one.
It's usually used when you want to refresh a variable in a dialogue while its still open.
Arguments
Window Identifier
The window the dialogue will be displayed in.
There are a total of 8 windows (0 -> 7) that can be used to simultaneously display several dialogues, shapes (textures), etc. at the same time.
If a value of -1
is passed, it will be changed to 0
.
If the window is already used before calling this function, it will overwrite the properties of the current one.
Macro Identifier
The macro identifier of the dialogue that will be displayed.
There are a total of 32 macros (0 -> 31) that can be used to simultaneously display several dynamically modified parts of a text at the same time.
Examples
A Moogle that allows the player to adjust their current Gil.
Notes
Opening a window results in all its macros to be read and then cleared for the next time its opened. This function works by setting the macros of the next opened window, but then using those macros to update the ones of the current window. The small downside of this is that the macros are not cleared when the window is closed. So if the next window also has a macro that wasn't properly set, it will have the values from the last opened window. This is a very rare case though and should almost never happen.
Last updated