^(.*) in (.*) is (.*) Volcano.$And the code that is executed:
planet=matches[2] aspect=matches[4] selectCurrentLine() replace("") cecho("<span>VOLCANO: ") if (planet=="Sun") then if (aspect=="conjunct") then cecho("Impact on Strength of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on Strength of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on Strength of Sphere is <span>NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on Strength of Sphere is <span>MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on Strength of Sphere is <span>POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on Strength of Sphere is <span>MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on Strength of Sphere is <span>MAJOR NEGATIVE") end elseif (planet=="Moon") then if (aspect=="conjunct") then cecho("Impact on Duration of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on Duration of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on Duration of Sphere is <span>NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on Duration of Sphere is <span>MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on Duration of Sphere is <span>POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on Duration of Sphere is <span>MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on Duration of Sphere is <span>MAJOR NEGATIVE") end elseif (planet=="Eroee") then if (aspect=="conjunct") then cecho("Impact on Mana Cost of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on Mana Cost of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on Mana Cost of Sphere is <span>NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on Mana Cost of Sphere is <span>MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on Mana Cost of Sphere is <span>POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on Mana Cost of Sphere is <span>MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on Mana Cost of Sphere is <span>MAJOR NEGATIVE") end elseif (planet=="Sidiak") then if (aspect=="conjunct") then cecho("Impact on EQ Cost of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on EQ Cost of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on EQ Cost of Sphere is <span>NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on EQ Cost of Sphere is <span>MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on EQ Cost of Sphere is <span>POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on EQ Cost of Sphere is <span>MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on EQ Cost of Sphere is <span>MAJOR NEGATIVE") end elseif (planet=="Tarox") then if (aspect=="conjunct") then cecho("Impact on Health Cost of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on Health Cost of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on Health Cost of Sphere is <span>NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on Health Cost of Sphere is <span>MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on Health Cost of Sphere is <span>POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on Health Cost of Sphere is <span>MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on Health Cost of Sphere is <span>MAJOR NEGATIVE") end elseif (planet=="Papaxi") then if (aspect=="conjunct") then cecho("Impact on Random of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on Random of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on Random of Sphere is <span>NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on Random of Sphere is <span>MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on Random of Sphere is <span>POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on Random of Sphere is <span>MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on Random of Sphere is <span>MAJOR NEGATIVE") end elseif (planet=="Aapek") then if (aspect=="conjunct") then cecho("Impact on Power Cost of Sphere is <span>HUGELY POSITIVE") elseif (aspect=="trine") then cecho("Impact on Power Cost of Sphere is <span>MAJOR POSITIVE") elseif (aspect=="square") then cecho("Impact on Power Cost of Sphere is NEGATIVE") elseif (aspect=="quincunx") then cecho("Impact on Power Cost of Sphere is MINOR NEGATIVE") elseif (aspect=="sextile") then cecho("Impact on Power Cost of Sphere is POSITIVE") elseif (aspect=="semisextile") then cecho("Impact on Power Cost of Sphere is MINOR POSITIVE") elseif (aspect=="opposite") then cecho("Impact on Power Cost of Sphere is MAJOR NEGATIVE") end end resetFormat()
Comments
planetEffects = {["Sun"]="Strength", ["Moon"]="Duration", ["Eroee"]="Mana Cost", ["Sidiak"]="EQ Cost", ["Tarox"]="Health Cost", ["Papaxi"] = "Random", ["Aapek"]="Power Cost"}
aspectEffects = {["conjunct"]="HUGELY POSITIVE", ["trine"]="MAJOR POSITIVE", ["square"]="NEGATIVE", ["quincunx"]="MINOR NEGATIVE", ["sextile"]="POSITIVE", ["semisextile"]="MINOR POSITIVE", ["opposite"]="MAJOR NEGATIVE"}
selectCurrentLine()
replace("")
cecho("<span>VOLCANO: ")
cecho("Impact on " .. planetEffects[matches[2]] .. " of Sphere is " .. aspectEffects[matches[4]])
resetFormat()