FixitFelixJr.asl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. state("FixitFelixJr")
  2. {
  3. int start1 : 0x1B294;
  4. int reset1 : 0x24264;
  5. int levels : 0x21808;
  6. }
  7. start
  8. {
  9. if (current.start1 == 4)
  10. {
  11. return true;
  12. }
  13. }
  14. startup
  15. {
  16. settings.Add("Level", true, "Stages");
  17. settings.Add("Level1", true, "Stage 1", "Level");
  18. settings.Add("Level2", true, "Stage 2", "Level");
  19. settings.Add("Level3", true, "Stage 3", "Level");
  20. settings.Add("Level4", true, "Stage 4", "Level");
  21. settings.Add("Level5", true, "Stage 5", "Level");
  22. }
  23. split
  24. {
  25. if(settings["Level"])
  26. {
  27. return ((settings["Level1"] && old.levels == 0 && current.reset1 != old.reset1 && current.reset1 == 6) ||
  28. (settings["Level2"] && current.levels == 1 && current.reset1 != old.reset1 && current.reset1 == 6) ||
  29. (settings["Level3"] && current.levels == 2 && current.reset1 != old.reset1 && current.reset1 == 6) ||
  30. (settings["Level4"] && current.levels == 3 && current.reset1 != old.reset1 && current.reset1 == 6) ||
  31. (settings["Level5"] && current.levels == 4 && current.reset1 == 6));
  32. }
  33. }
  34. reset
  35. {
  36. return((current.reset1 == 0));
  37. }