Consider new tree scenario against 2 handed
reported by Aerek
A Touch Tree scenario for curing when you ONLY have 2H fractures and no other affs would be useful. I can't figure out how to script this, myself
I think svof can already accommodate this by creating a custom tree scenario:
In a script with the registered event handler set to "svo system loaded" do:
svo.tree.fractures = { desc = "Use tree for 2H fractures and no other afflictions", function () local affs = svo.affl return (#affs == affs.skullfractures + affs.wristfractures) end } I can't login to test yet but can do so later. Not sure if we would want to add this as a default scenario or not.
The general idea may work, but the script won't work for several reasons:
#works only for indexed tables (aka arrays)- the fractures are numbers, while the size operator only counts the number of elements
Had another look and tested just with some aliases in mudlet. I'll test further tonight but this should work.
svo.tree.fractures = { desc = "Use tree for 2H fractures with no other afflictions", function () local affs = svo.affl local countaffs = 0 for k, v in pairs( affs ) do countaffs = countaffs + 1 if countaffs > 2 then return false end end return (affs.wristfractures and affs.skullfractures) end }
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed as stale because it has not had recent activity. Please re-open it, if the issue persists. Thank you for your contributions.