Jump to content
  • How To Manage Spell-Based Macros


    Gregg

    Overview

    CA does not provide a GUI supported method for creating or modifying Condition Macros or Action Macros. However, the function that these types of Macros provides can be crucial. This article explains the steps to take for creating new or editing existing. Keep in mind, CA does not support any changes to the default Action Macros or Condition Macros and will not support any that you create. It is also highly recommended that you never modify the defaults, but rather copy them and create your own custom ones.

    Procedures

    Step 1. Extract a Sample Macro

    The first step is to extract a macro from the system and use this as guide. Take note of the macro's name the enter the following command:

    pdm_extract -f "SELECT del,fragment,lock_object,ob_type,sym,type FROM Spell_Macro WHERE sym = 'sample macro name'" > yourfile.txt

    Step 2. Add Your Script

    Now that you have the sample macro extracted from the system, modify the contents of the 'fragment' column to suit your scripting needs. Remember to use \\0012 for your carriage returns and \ to cancel out the double quotes in your script. Also, be sure to change the value of the 'sym' column or your new macro will not be loaded.

    Step 3. Load New Macro

    Run the following command to load your new macro into the system:

    pdm_load -f yourfile.txt -i -v

    Step 4. Extract New Macro for Additional Changes

    Run the following command to extract your new macro if additional changes are required:

    pdm_extract -f "SELECT * FROM Spell_Macro WHERE sym = 'sample macro name'" > yournewfile.txt
    

    Step 5. Uploading Changes

    Run the following command to load your modified macro into the system:

    pdm_load -f yournewfile.txt -v 

    Notice there is no -i this time. A -i is only used when "inserting" a new macro, not when editing an existing one.



    User Feedback

    Recommended Comments

    There are no comments to display.


×