Posted by: the bigg
« on: January 28, 2011, 12:30:13 PM »I ended up not adding that specific macro, but instead three related macros for operating on spell names.
Code: [Select]
\\
\verb+RES_NUM_OF_SPELL_NAME+: converts a spell.ids reference to resource name.
This is an ACTION macro and function.
\begin{itemize}
\item SPRINT spell_name to the IDS symbolic reference of a spell.
\item RETURNS spell_num to the IDS numerical reference of that spell.
\item RETURNS spell_res to the resource name for the referenced spell.
\end{itemize}
\\
\verb+RES_NAME_OF_SPELL_NUM+: converts a spell.ids reference to resource name.
This is an ACTION macro and function.
\begin{itemize}
\item SET spell_num to the IDS numerical reference of that spell.
\item RETURNS spell_name to the IDS symbolic reference of a spell.
\item RETURNS spell_res to the resource name for the referenced spell.
\end{itemize}
\\
\verb+NAME_NUM_OF_SPELL_RES+: converts a spell resource name to a spell.ids reference.
This is an ACTION macro and function.
\begin{itemize}
\item SPRINT spell_res to the resource name for the referenced spell.
\item RETURNS spell_num to the IDS numerical reference of that spell.
\item RETURNS spell_name to the IDS symbolic reference of a spell.
\end{itemize}
\\