Unknown2010-04-16 16:10:45
So, I went Astrology (skillflex, much love), and I'm having a bit of a problem with if-elseif statements for MUSH (Lua). One of the STARGAZE triggers is this:
Aapek in Spider is square Lion.
Variable AapekSphere is used to make a new STARGAZE, complete with the effects of all the planets (thus we have SunSphere, MoonSphere, EroeeSphere, and so on in the other triggers.)
However, when ColourNote (GetVariable("AapekSphere")) always displays +4 power cost, as if it's always conjunct. This happens across all the triggers, and I can't figure out why.
Any ideas?
Aapek in Spider is square Lion.
CODE
^Aapek in (\\w+|Twin Crystals|Burning Censer) is (\\w+) (\\w+)\\.$
CODE
if %2 == "conjunct" then
  SetVariable ("AapekSphere","+4 power cost")
elseif %2 == "semisextile" then
  SetVariable ("AapekSphere","+2 power cost")
elseif %2 == "sextile" then
  SetVariable ("AapekSphere","+1 power cost")
elseif %2 == "square" then
  SetVariable ("AapekSphere","-1 power cost")
elseif %2 == "trine" then
  SetVariable ("AapekSphere","+3 power cost")
elseif %2 == "quincunx" then
  SetVariable ("AapekSphere","-2 power cost")
elseif %2 == "opposite" then
  SetVariable ("AapekSphere","-3 power cost")
end
  SetVariable ("AapekSphere","+4 power cost")
elseif %2 == "semisextile" then
  SetVariable ("AapekSphere","+2 power cost")
elseif %2 == "sextile" then
  SetVariable ("AapekSphere","+1 power cost")
elseif %2 == "square" then
  SetVariable ("AapekSphere","-1 power cost")
elseif %2 == "trine" then
  SetVariable ("AapekSphere","+3 power cost")
elseif %2 == "quincunx" then
  SetVariable ("AapekSphere","-2 power cost")
elseif %2 == "opposite" then
  SetVariable ("AapekSphere","-3 power cost")
end
Variable AapekSphere is used to make a new STARGAZE, complete with the effects of all the planets (thus we have SunSphere, MoonSphere, EroeeSphere, and so on in the other triggers.)
However, when ColourNote (GetVariable("AapekSphere")) always displays +4 power cost, as if it's always conjunct. This happens across all the triggers, and I can't figure out why.
Any ideas?
Unknown2010-04-16 16:32:30
if "%2" == "blah" then
Unknown2010-04-16 17:36:52
Woo, thanks!