Author Topic: WeiDU 221 ADD_SPELL bug?  (Read 6722 times)

Offline Galactygon

  • Modding since 2002
  • Planewalker
  • *****
  • Posts: 374
  • Gender: Male
  • Not an AD&D rules lawyer.
Re: WeiDU 221 ADD_SPELL bug?
« Reply #25 on: January 28, 2011, 12:27:42 PM »
Thanks!

-G...

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: WeiDU 221 ADD_SPELL bug?
« Reply #26 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}
\\
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: