• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

How to conditionally rename spell or magic item?

AncientOne

Well-known member
Suppose I want to

  1. Test to see if a specific thing (e.g., spell or magic item) is defined.
  2. If it is defined, rename it.

For example, if the Apparatus of the Crab is defined (because the user has purchased Ultimate Equipment), then I want it to appear as Apparatus of Kwalish. However, if the user has not purchased Ultimate Equipment, then I don't want the user to get an error when my user-content is loaded.

How would I go about doing that?

I know I could make a copy of it and have the copy replace the original, but that would leave me in the position of redistributing someone else's work, which seems... less than entirely moral, especially if the content I'm copying is for-pay rather than community-provided.

Thanks!
 
Back
Top