Set Mes Macro
Signature
Description
Used before functions like Mes and A Ask 1FF to dynamically set parts of the dialogue of the next opened window.
A macro is a value defined in the ebp script which is then passed to a dialogue for display and even modification (e.g. Numbox text tag).
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, the macros of the next opened window will be set instead. To update the ones of the currently opened window, use theUpdate Mes Macro function instead.
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.
If the dialogue contains a Numbox text tag, the following macros have to be properly set before the window is opened:
Macro 29 must contain the total number of choices (e.g. 2).
Macro 28 must contain the initially selected choice (e.g. 0).
Macro 0 to x - 1 must contain the choices itself where as x is the total number of choices.
Macro Type
The type of the macro parameter.
There are a total of 16 macro types (0 -> 15) that can be used to describe the macro parameter.
Here is a list of which macro types are commonly used.
Type | Name | Description |
---|---|---|
0 | Number | The parameter is just a number. |
1 | Content | The parameter is the name of content (e.g. 0 -> Potion). |
3 | Action | The parameter is the name of an action (e.g. 0 -> Cure). |
4 | Party Member | The parameter is the name of a party member (e.g. 0 -> Vaan). |
5 | Clan Rank | The parameter is a clan rank (e.g. 1 -> Moppet). |
6 | License | The parameter is the name of a license (e.g. 32 -> Swords 1). |
If the dialogue contains a Numbox text tag, only the macro type Number is supported. All other types result in the selectable choices to be bugged.
Macro Parameter
The parameter of the macro.
Its purpose differs based on its type (number, content, ...).
Examples
A Moogle that shows the player their current Gil.
A Moogle that asks the player if they want 100 or 200 Gil.
Last updated