Help with sequencers/contingencies
in UI Modding
The user and all related content has been deleted.
0
Comments
to
There are multiple instances of the first line.
If it's only intended for these specific sequencer/contingency spells, you will need to filter it with an lua function. You would still use the REPLACE_TEXTUALLY, but replace 'DEFAULT' with the function call.
<div>function filterMasterBookResRef() if type(actionMasterBookSpell[contingencyResRef]) == 'function' then actionMasterBookSpell(contingencyResRef) else return bookSpells[currentBookSpell].masterResref end end function filterMasterBottomResRef() if type(actionMasterBottomSpell[contingencyResRef]) == 'function' then actionMasterBottomSpell(contingencyResRef) else return bottomSpells[currentBottomSpell].masterResref end end <span style="background-color: transparent; color: inherit; font-size: inherit; font-family: "lucida grande", "lucida sans unicode", tahoma, sans-serif;">actionMasterBookResRef = {} -- Append this to BGEE.lua </span><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: "lucida grande", "lucida sans unicode", tahoma, sans-serif;">actionMasterBottomResRef = {} -- Append this to BGEE.lua </span><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: "lucida grande", "lucida sans unicode", tahoma, sans-serif;">actionMasterBookResRef['d5w4420'] = function () return 'DEFAULT' end -- repeat for each </span><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: "lucida grande", "lucida sans unicode", tahoma, sans-serif;">actionMasterBottomResRef['d5w4420'] = function () return 'DEFAULT' end -- repeat for each</span></div>This way others will be able to opt-in, define their own, or continue to use the existing functionality. Aside from the two lines specifying BGEE.lua, the rest would go in an M_*.lua file.