affliction healing table
Hi Looking for some help.
I made the following script
function cure()
for i,v in pairsByKeys(affData) do
if currentAffs[v.name] and wwbal then
send(v.cure)
wwbal = false
break
end
end
end
affData = {
--Muscular
{name = "Prone", cure = "stand"},
{name = "Atrophy", cure = "ww mend muscular"},
{name = "Broken Ribs", cure = "ww mend muscular"},
{name = "Crippled Movement", cure = "ww mend muscular"},
{name = "Damaged Left Arm", cure = "ww mend muscular"},
{name = "Damaged Right Arm", cure = "ww mend muscular"},
{name = "Damaged Left Leg", cure = "ww mend muscular"},
{name = "Damaged Right Leg", cure = "ww mend muscular"},
{name = "Mangled Head", cure = "ww mend muscular"},
{name = "Mangled Left Arm", cure = "ww mend muscular"},
{name = "Mangled Right Arm", cure = "ww mend muscular"},
{name = "Mangled Left Leg", cure = "ww mend muscular"},
{name = "Mangled Right Leg", cure = "ww mend muscular"},
{name = "Mangled Torso", cure = "ww mend muscular"},
{name = "Myopathy", cure = "ww mend muscular"},
{name = "Scorched", cure = "ww mend muscular"},
{name = "Spasms", cure = "ww mend muscular"},
{name = "Structure Collapse (L1)", cure = "ww mend muscular"},
{name = "Structure Collapse (L2)", cure = "ww mend muscular"},
{name = "Structure Collapse (L3)", cure = "ww mend muscular"},
{name = "Structure Failure", cure = "ww mend muscular"},
{name = "Tender", cure = "ww mend muscular"},
{name = "Weak Knees", cure = "ww mend muscular"},
{name = "Weakened Arms", cure = "ww mend muscular"},
{name = "Weakened Legs", cure = "ww mend muscular"},
--Mind
{name = "Acrophobia", cure = "ww mend mind"},
{name = "Brain Swelling", cure = "ww mend mind"},
{name = "Catatonia (L1)", cure = "ww mend mind"},
{name = "Catatonia (L2)", cure = "ww mend mind"},
{name = "Catatonia (L3)", cure = "ww mend mind"},
{name = "Confusion", cure = "ww mend mind"},
{name = "Disorientation", cure = "ww mend mind"},
{name = "Encroachment", cure = "ww mend mind"},
{name = "Forgetfulness", cure = "ww mend mind"},
{name = "Hallucinations", cure = "ww mend mind"},
{name = "Seizures", cure = "ww mend mind"},
{name = "Distraction", cure = "ww mend mind"},
{name = "Sluggish", cure = "ww mend mind"},
{name = "Stupefied", cure = "ww mend mind"},
{name = "Stupidity", cure = "ww mend mind"},
{name = "Vegetative", cure = "ww mend mind"},
{name = "Vertigo", cure = "ww mend mind"},
--internal
{name = "Bleeding", cure = "ww mend internal"},
{name = "Choking", cure = "ww mend internal"},
{name = "Coughing Blood", cure = "ww mend internal"},
{name = "Frozen", cure = "ww mend internal"},
{name = "Hypertension", cure = "ww mend internal"},
{name = "Internal Bleeding", cure = "ww mend internal"},
{name = "Sepsis (L1)", cure = "ww mend internal"},
{name = "Sepsis (L2)", cure = "ww mend internal"},
{name = "Sepsis (L3)", cure = "ww mend internal"},
{name = "Sepsis Overload", cure = "ww mend internal"},
{name = "Sickness", cure = "ww mend internal"},
{name = "Sleeping", cure = "wake"},
{name = "Slowness", cure = "ww mend internal"},
{name = "Rejection", cure = "ww mend internal"},
{name = "Winded", cure = "ww mend internal"},
{name = "Trauma", cure = "ww mend internal"},
--Sensory
{name = "Blind", cure = "ww mend sensory"},
{name = "Blurry Vision", cure = "ww mend sensory"},
{name = "Comm Blackouts", cure = "ww mend sensory"},
{name = "Dazed", cure = "ww mend sensory"},
{name = "Deaf", cure = "ww mend sensory"},
{name = "Delirium (L1)", cure = "ww mend sensory"},
{name = "Delirium (L2)", cure = "ww mend sensory"},
{name = "Delirium (L3)", cure = "ww mend sensory"},
{name = "Demented Vision", cure = "ww mend sensory"},
{name = "Dizzy", cure = "ww mend sensory"},
{name = "Double Vision", cure = "ww mend sensory"},
{name = "Echoing", cure = "ww mend sensory"},
{name = "Nearsighted", cure = "ww mend sensory"},
{name = "Painspike", cure = "ww mend sensory"},
{name = "Sensory Shutdown", cure = "ww mend sensory"},
--Wetwiring
{name = "Glitching", cure = "ww mend wetwiring"},
{name = "Hard Lock", cure = "ww mend wetwiring"},
{name = "Malfunction (L1)", cure = "ww mend wetwiring"},
{name = "Malfunction (L2)", cure = "ww mend wetwiring"},
{name = "Malfunction (L3)", cure = "ww mend wetwiring"},
{name = "Meltdown", cure = "ww mend wetwiring"},
{name = "Overload", cure = "ww mend wetwiring"},
{name = "Shortcircuit", cure = "ww mend wetwiring"},
{name = "Vulnerable", cure = "ww mend wetwiring"},
}
for i,v in pairsByKeys(affData) do
if currentAffs[v.name] and wwbal then
send(v.cure)
wwbal = false
break
end
end
end
affData = {
--Muscular
{name = "Prone", cure = "stand"},
{name = "Atrophy", cure = "ww mend muscular"},
{name = "Broken Ribs", cure = "ww mend muscular"},
{name = "Crippled Movement", cure = "ww mend muscular"},
{name = "Damaged Left Arm", cure = "ww mend muscular"},
{name = "Damaged Right Arm", cure = "ww mend muscular"},
{name = "Damaged Left Leg", cure = "ww mend muscular"},
{name = "Damaged Right Leg", cure = "ww mend muscular"},
{name = "Mangled Head", cure = "ww mend muscular"},
{name = "Mangled Left Arm", cure = "ww mend muscular"},
{name = "Mangled Right Arm", cure = "ww mend muscular"},
{name = "Mangled Left Leg", cure = "ww mend muscular"},
{name = "Mangled Right Leg", cure = "ww mend muscular"},
{name = "Mangled Torso", cure = "ww mend muscular"},
{name = "Myopathy", cure = "ww mend muscular"},
{name = "Scorched", cure = "ww mend muscular"},
{name = "Spasms", cure = "ww mend muscular"},
{name = "Structure Collapse (L1)", cure = "ww mend muscular"},
{name = "Structure Collapse (L2)", cure = "ww mend muscular"},
{name = "Structure Collapse (L3)", cure = "ww mend muscular"},
{name = "Structure Failure", cure = "ww mend muscular"},
{name = "Tender", cure = "ww mend muscular"},
{name = "Weak Knees", cure = "ww mend muscular"},
{name = "Weakened Arms", cure = "ww mend muscular"},
{name = "Weakened Legs", cure = "ww mend muscular"},
--Mind
{name = "Acrophobia", cure = "ww mend mind"},
{name = "Brain Swelling", cure = "ww mend mind"},
{name = "Catatonia (L1)", cure = "ww mend mind"},
{name = "Catatonia (L2)", cure = "ww mend mind"},
{name = "Catatonia (L3)", cure = "ww mend mind"},
{name = "Confusion", cure = "ww mend mind"},
{name = "Disorientation", cure = "ww mend mind"},
{name = "Encroachment", cure = "ww mend mind"},
{name = "Forgetfulness", cure = "ww mend mind"},
{name = "Hallucinations", cure = "ww mend mind"},
{name = "Seizures", cure = "ww mend mind"},
{name = "Distraction", cure = "ww mend mind"},
{name = "Sluggish", cure = "ww mend mind"},
{name = "Stupefied", cure = "ww mend mind"},
{name = "Stupidity", cure = "ww mend mind"},
{name = "Vegetative", cure = "ww mend mind"},
{name = "Vertigo", cure = "ww mend mind"},
--internal
{name = "Bleeding", cure = "ww mend internal"},
{name = "Choking", cure = "ww mend internal"},
{name = "Coughing Blood", cure = "ww mend internal"},
{name = "Frozen", cure = "ww mend internal"},
{name = "Hypertension", cure = "ww mend internal"},
{name = "Internal Bleeding", cure = "ww mend internal"},
{name = "Sepsis (L1)", cure = "ww mend internal"},
{name = "Sepsis (L2)", cure = "ww mend internal"},
{name = "Sepsis (L3)", cure = "ww mend internal"},
{name = "Sepsis Overload", cure = "ww mend internal"},
{name = "Sickness", cure = "ww mend internal"},
{name = "Sleeping", cure = "wake"},
{name = "Slowness", cure = "ww mend internal"},
{name = "Rejection", cure = "ww mend internal"},
{name = "Winded", cure = "ww mend internal"},
{name = "Trauma", cure = "ww mend internal"},
--Sensory
{name = "Blind", cure = "ww mend sensory"},
{name = "Blurry Vision", cure = "ww mend sensory"},
{name = "Comm Blackouts", cure = "ww mend sensory"},
{name = "Dazed", cure = "ww mend sensory"},
{name = "Deaf", cure = "ww mend sensory"},
{name = "Delirium (L1)", cure = "ww mend sensory"},
{name = "Delirium (L2)", cure = "ww mend sensory"},
{name = "Delirium (L3)", cure = "ww mend sensory"},
{name = "Demented Vision", cure = "ww mend sensory"},
{name = "Dizzy", cure = "ww mend sensory"},
{name = "Double Vision", cure = "ww mend sensory"},
{name = "Echoing", cure = "ww mend sensory"},
{name = "Nearsighted", cure = "ww mend sensory"},
{name = "Painspike", cure = "ww mend sensory"},
{name = "Sensory Shutdown", cure = "ww mend sensory"},
--Wetwiring
{name = "Glitching", cure = "ww mend wetwiring"},
{name = "Hard Lock", cure = "ww mend wetwiring"},
{name = "Malfunction (L1)", cure = "ww mend wetwiring"},
{name = "Malfunction (L2)", cure = "ww mend wetwiring"},
{name = "Malfunction (L3)", cure = "ww mend wetwiring"},
{name = "Meltdown", cure = "ww mend wetwiring"},
{name = "Overload", cure = "ww mend wetwiring"},
{name = "Shortcircuit", cure = "ww mend wetwiring"},
{name = "Vulnerable", cure = "ww mend wetwiring"},
}
and I have setup some triggers to confirm when I have the affliction and when its been removed
currentAffs["Structure Collapse (L1)"] = true
currentAffs["Structure Collapse (L1)"] = False
but it will not fire the healing...I think I'm missing something. I have highlights active to confirm the triggers are working and they are but still no cure effect.
I want to do it this way as you simply reorder the afflictions to set a curing priority.
Any tips?
1
Comments
Cure={}