Precast Sets - shastaxc/silver-libs GitHub Wiki
There are additional sets supported beyond what the other libraries already support. You may already be familiar with the ability to create a fast cast set by using the name sets.precast.FC. Likewise, there already exists the ability to specify a fast cast set for a specific spell name or category by using a set name like sets.precast.FC.Dispelga or sets.precast.FC['Healing Magic']. These capabilities still exist when using SilverLibs, but there are now additional options as well.
Quick Magic
You can add a quick magic set by adding a QuickMagic breadcrumb. For example: sets.precast.FC.QuickMagic or sets.precast.FC['Healing Magic'].QuickMagic.
There is a default list of spells in SilverLibs that are defined as quick magic compatible. When any of these spells are used, if a qualifying QuickMagic set exists in your lua, it will be used.
The default spell list includes the following spells:
| Spell Type | Spell Names |
|---|---|
| WhiteMagic | Banish, Banish II, Banish III, Banishga, Banishga II, Arise, Raise, Raise II, Raise III, Reraise, Reraise II, Reraise III, Reraise IV, Reraise V, Cure, Full Cure, Recall-Jugner, Recall-Meriph, Recall-Pashh, Teleport-Altep, Teleport-Dem, Teleport-Holla, Teleport-Mea, Teleport-Vahzl, Teleport-Yhoat |
| BlackMagic | Tractor, Escape, Retrace, Warp, Warp II |
| BardSong | None |
| Ninjutsu | Myoshu: Ichi, Gekka: Ichi, Yain: Ichi, Kakka: Ichi |
| SummonerPact | All but Atomos |
| BlueMagic | Cocoon, Feather Barrier, Memento Mori, Zephyr Mantle, Amplification, Triumphant Roar, Exuviation, Osmosis, Fantod, Winds of Promy., Barrier Tusk, O. Counterstance, Pyric Bulwark, Harden Shell |
| Geomancy | None |
| Trust | All |
Customizing the quick magic spell list
You can customize the list to be different than the one above by using a special function to send a table to SilverLibs that it will use instead of the defaults. Trust category cannot be overwritten and will always use your QuickMagic set if it exists. You must overwrite the list for a whole category to change it, but you do not need to include ALL categories. If you include WhiteMagic but exclude BlackMagic, it will use your custom list for WhiteMagic and the default list for BlackMagic. The function to customize the list must be put in your job_setup() function in your job lua and you give it a Lua table which will look something like this:
function job_setup()
silibs.customize_quick_magic_spells({
['BlackMagic'] = {'Tractor', 'Escape', 'Retrace'},
['BlueMagic'] = {},
})
end
In the example above, it would overwrite the default BlackMagic and BlueMagic quick magic spell lists. This effectively removes "Warp" and "Warp II" from being cast with the quick magic set, and also removes all Blue Magic spells from being cast with the quick magic set.
Red Mage Subjob
With RDM subjob, you get Fast Cast traits (typically 15% or 20% depending on your master level). This allows you to have a more optimal fast cast set when subbing RDM, but you may still want to have the separate normal fast cast set for when you have a different subjob. With SilverLibs, you can now use the new set named sets.precast.FC.RDM which will activate when you have subjob RDM (and level is greater than 0).
Grimoire / Light Arts / Dark Arts
When main job is Scholar, you have access to some special pieces of gear which can enhance casting speed when your spell type matches your grimoire type. For example, when using Cure IV while Light Arts is active you can wear Pedagogy Mortarboard +3 which will give an additional 13% cast time reduction (which can exceed the 80% fast cast cap). Because of this, it can be advantageous to have additional fast cast sets to use when these types of conditions are met. The new set name is sets.precast.FC.Grimoire. But you can also use sets.precast.FC.LightArts and sets.precast.FC.DarkArts to be more specific if you have gear that specifically requires one of those rather than applying to both (which is what "Grimoire" stat does).
Combining precast modes
You can combine these additional modes in any combination you want (the SilverLibs ones are all optional), but the order of the breadcrumbs in the name does matter. The breadcrumbs must be in this order: sets.precast.FC (required), casting mode (optional), spell name or category (optional), QuickMagic (optional), RDM (optional), then Grimoire/LightArts/DarkArts (optional). For example:
| Valid Set | Invalid Set |
|---|---|
| sets.precast.FC.QuickMagic.RDM | sets.precast.FC.RDM.QuickMagic |
| sets.precast.FC.QuickMagic.RDM.Grimoire | sets.precast.Grimoire.QuickMagic.RDM |
| sets.precast.FC['Enhancing Magic'].RDM | sets.precast.RDM['Enhancing Magic'] |
| sets.precast.FC.Grimoire | sets.precast.Grimoire.FC |
| sets.precast.FC.RDM.LightArts | sets.precast.FC.LightArts.RDM |