if (hasMemo("gaveLamps")) return "gave_lamps";
if (hasMemo("gaveDemonKey"))
{
  if (itemCount("Lamp_Cyan") == 1 && itemCount("Lamp_Magenta") == 1 && itemCount("Lamp_Yellow") == 1)
  {
    //useItem("Lamp_Cyan");
    //useItem("Lamp_Magenta");
    //useItem("Lamp_Yellow");
    //setMemo("gaveLamps");
    return "got_lamps";
  }
  return "lamp_quest";
}
else
{
  if (hasMemo("talkedToDemon") && useItem("DevilKey"))
  {
    setMemo("gaveDemonKey");
    return "got_key";
  }
  else
  {
    return "key_quest";
  }
}