I'm not too beat up about it. TBH The only reason I made this was for my levelling mod, and I just figured it would be neat to spin the system into its own mod.
Honestly my coding is pretty sloppy and some other mod authors could probably make a much better version of this concept.
This genuinely inspired me to make mods. such a wonderful, seemingly passed over framework, and your character progression mod fills the holes I feel are left in Morrowind's gameplay. Forgive me if this is out of place, but I'm slowly working on a small perk mod using this framework, and I've hit an awkward point in my code due to the requirement fields not accepting 'or' logic. Is that something that could be implemented in the future or is that either out of your intended scope or just too hard/impossible? regardless on 'or' implementation happening or not (for what ever reasons there are), is it theoretically possible to currently use the 'customReq' field for 'or' logic? thank you for your time
Heya, sorry to respond really late to this, but looking at the code, custom requirements are supported; When you create the perk, just pass a function that returns a true or false as the customReq param;
createPerk({ id = "myperk", -- ... and so on... CustomReq = function() return conditionA or conditionB end, CustomReqText = "needs conditionA and conditionB" }) Hope that helps
Thanks for answering this, I hadn't even noticed this comment in my notifications. Yes, CustomReq works for this, and 'or' tests were actually the whole reason I added it.
CustomReq allows you to run custom code during the requirements check, so you can use it for a whole variety of things. For example, you can make perks that requires certain quests to be completed, perks that require specific ranks in a faction, etc.
This is a really cool mod idea, I've been looking for something like this forever. Shame it's MWSE, an OpenMW version would be amazing eventually. Thank you for your hard work
This is pretty awesome. I am considering a perk system as a part of my mod and it might be a good way to implement it. Although it might clutter the UI if you use perk system with other mods.
13 comments
Honestly my coding is pretty sloppy and some other mod authors could probably make a much better version of this concept.
Forgive me if this is out of place, but I'm slowly working on a small perk mod using this framework, and I've hit an awkward point in my code due to the requirement fields not accepting 'or' logic. Is that something that could be implemented in the future or is that either out of your intended scope or just too hard/impossible?
regardless on 'or' implementation happening or not (for what ever reasons there are), is it theoretically possible to currently use the 'customReq' field for 'or' logic?
thank you for your time
When you create the perk, just pass a function that returns a true or false as the customReq param;
createPerk({
id = "myperk",
-- ... and so on...
CustomReq = function()
return conditionA or conditionB
end,
CustomReqText = "needs conditionA and conditionB"
})
Hope that helps
CustomReq allows you to run custom code during the requirements check, so you can use it for a whole variety of things. For example, you can make perks that requires certain quests to be completed, perks that require specific ranks in a faction, etc.