You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all directives actually require an argument to work. For example, the macro get_protect_count requires a byte argument for the target as seen in the macro definition:
data/battle_ai_scripts.s: Assembler messages:
data/battle_ai_scripts.s:2028: Error: Missing value for required parameter `target' of macro `get_protect_count'
The text was updated successfully, but these errors were encountered:
Not all directives actually require an argument to work. For example, the macro
get_protect_count
requires a byte argument for the target as seen in the macro definition:However, omitting the argument will not produce a compile time error, and will instead output the following:
From the docs:
Therefore, by not specifying an argument, it will just skip emitting a byte at all.
This can be fixed by using the
:req
specifier, which will enforce all arguments be specified:Example assembler error output:
The text was updated successfully, but these errors were encountered: