Advertisement
TJSJ

PokeAttempt / mon_party_switcher

Sep 30th, 2024
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///mon_party_selecter
  2.  
  3. if global.PartyMemberSelected = 1
  4. switch(global.PartyMember) {
  5.     case 1:
  6.         SelectedId2 = global.aStoredPartyMember1;
  7.         global.aStoredPartyMember1 = SelectedId2;
  8.         global.aStoredPartyMember1 = SelectedId1;
  9.         LevelId2 = global.aStoredLevel1;
  10.         global.aStoredLevel1 = LevelId2;
  11.         global.aStoredLevel1 = LevelId1;
  12.         break;
  13.     case 2:
  14.         SelectedId2 = global.aStoredPartyMember2;
  15.         global.aStoredPartyMember1 = SelectedId2;
  16.         global.aStoredPartyMember2 = SelectedId1;
  17.         LevelId2 = global.aStoredLevel2;
  18.         global.aStoredLevel1 = LevelId2;
  19.         global.aStoredLevel2 = LevelId1;
  20.         break;
  21.     case 3:
  22.         SelectedId2 = global.aStoredPartyMember3;
  23.         global.aStoredPartyMember1 = SelectedId2;
  24.         global.aStoredPartyMember3 = SelectedId1;
  25.         LevelId2 = global.aStoredLevel3;
  26.         global.aStoredLevel1 = LevelId2;
  27.         global.aStoredLevel3 = LevelId1;
  28.         break;
  29.     case 4:
  30.         SelectedId2 = global.aStoredPartyMember4;
  31.         global.aStoredPartyMember1 = SelectedId2;
  32.         global.aStoredPartyMember4 = SelectedId1;
  33.         LevelId2 = global.aStoredLevel4;
  34.         global.aStoredLevel1 = LevelId2;
  35.         global.aStoredLevel4 = LevelId1;
  36.         break;
  37.     case 5:
  38.         SelectedId2 = global.aStoredPartyMember5;
  39.         global.aStoredPartyMember1 = SelectedId2;
  40.         global.aStoredPartyMember5 = SelectedId1;
  41.         LevelId2 = global.aStoredLevel5;
  42.         global.aStoredLevel1 = LevelId2;
  43.         global.aStoredLevel5 = LevelId1;
  44.         break;
  45.     case 6:
  46.         SelectedId2 = global.aStoredPartyMember6;
  47.         global.aStoredPartyMember1 = SelectedId2;
  48.         global.aStoredPartyMember6 = SelectedId1;
  49.         LevelId2 = global.aStoredLevel6;
  50.         global.aStoredLevel1 = LevelId2;
  51.         global.aStoredLevel6 = LevelId1;
  52.         break;
  53.     default:
  54.     }
  55.    
  56. if global.PartyMemberSelected = 2
  57. switch(global.PartyMember) {
  58.     case 1:
  59.         SelectedId2 = global.aStoredPartyMember1;
  60.         global.aStoredPartyMember2 = SelectedId2;
  61.         global.aStoredPartyMember1 = SelectedId1;
  62.         LevelId2 = global.aStoredLevel1;
  63.         global.aStoredLevel2 = LevelId2;
  64.         global.aStoredLevel1 = LevelId1;
  65.         break;
  66.     case 2:
  67.         SelectedId2 = global.aStoredPartyMember2;
  68.         global.aStoredPartyMember2 = SelectedId2;
  69.         global.aStoredPartyMember2 = SelectedId1;
  70.         LevelId2 = global.aStoredLevel2;
  71.         global.aStoredLevel2 = LevelId2;
  72.         global.aStoredLevel2 = LevelId1;
  73.         break;
  74.     case 3:
  75.         SelectedId2 = global.aStoredPartyMember3;
  76.         global.aStoredPartyMember2 = SelectedId2;
  77.         global.aStoredPartyMember3 = SelectedId1;
  78.         LevelId2 = global.aStoredLevel3;
  79.         global.aStoredLevel2 = LevelId2;
  80.         global.aStoredLevel3 = LevelId1;
  81.         break;
  82.     case 4:
  83.         SelectedId2 = global.aStoredPartyMember4;
  84.         global.aStoredPartyMember2 = SelectedId2;
  85.         global.aStoredPartyMember4 = SelectedId1;
  86.         LevelId2 = global.aStoredLevel4;
  87.         global.aStoredLevel2 = LevelId2;
  88.         global.aStoredLevel4 = LevelId1;
  89.         break;
  90.     case 5:
  91.         SelectedId2 = global.aStoredPartyMember5;
  92.         global.aStoredPartyMember2 = SelectedId2;
  93.         global.aStoredPartyMember5 = SelectedId1;
  94.         LevelId2 = global.aStoredLevel5;
  95.         global.aStoredLevel2 = LevelId2;
  96.         global.aStoredLevel5 = LevelId1;
  97.         break;
  98.     case 6:
  99.         SelectedId2 = global.aStoredPartyMember6;
  100.         global.aStoredPartyMember2 = SelectedId2;
  101.         global.aStoredPartyMember6 = SelectedId1;
  102.         LevelId2 = global.aStoredLevel6;
  103.         global.aStoredLevel2 = LevelId2;
  104.         global.aStoredLevel6 = LevelId1;
  105.         break;
  106.     default:
  107.     }
  108.    
  109. if global.PartyMemberSelected = 3
  110. switch(global.PartyMember) {
  111.     case 1:
  112.         SelectedId2 = global.aStoredPartyMember1;
  113.         global.aStoredPartyMember3 = SelectedId2;
  114.         global.aStoredPartyMember1 = SelectedId1;
  115.         LevelId2 = global.aStoredLevel1;
  116.         global.aStoredLevel3 = LevelId2;
  117.         global.aStoredLevel1 = LevelId1;
  118.         break;
  119.     case 2:
  120.         SelectedId2 = global.aStoredPartyMember2;
  121.         global.aStoredPartyMember3 = SelectedId2;
  122.         global.aStoredPartyMember2 = SelectedId1;
  123.         LevelId2 = global.aStoredLevel2;
  124.         global.aStoredLevel3 = LevelId2;
  125.         global.aStoredLevel2 = LevelId1;
  126.         break;
  127.     case 3:
  128.         SelectedId2 = global.aStoredPartyMember3;
  129.         global.aStoredPartyMember3 = SelectedId2;
  130.         global.aStoredPartyMember3 = SelectedId1;
  131.         LevelId2 = global.aStoredLevel3;
  132.         global.aStoredLevel3 = LevelId2;
  133.         global.aStoredLevel3 = LevelId1;
  134.         break;
  135.     case 4:
  136.         SelectedId2 = global.aStoredPartyMember4;
  137.         global.aStoredPartyMember3 = SelectedId2;
  138.         global.aStoredPartyMember4 = SelectedId1;
  139.         LevelId2 = global.aStoredLevel4;
  140.         global.aStoredLevel3 = LevelId2;
  141.         global.aStoredLevel4 = LevelId1;
  142.         break;
  143.     case 5:
  144.         SelectedId2 = global.aStoredPartyMember5;
  145.         global.aStoredPartyMember3 = SelectedId2;
  146.         global.aStoredPartyMember5 = SelectedId1;
  147.         LevelId2 = global.aStoredLevel5;
  148.         global.aStoredLevel3 = LevelId2;
  149.         global.aStoredLevel5 = LevelId1;
  150.         break;
  151.     case 6:
  152.         SelectedId2 = global.aStoredPartyMember6;
  153.         global.aStoredPartyMember3 = SelectedId2;
  154.         global.aStoredPartyMember6 = SelectedId1;
  155.         LevelId2 = global.aStoredLevel6;
  156.         global.aStoredLevel3 = LevelId2;
  157.         global.aStoredLevel6 = LevelId1;
  158.         break;
  159.     default:
  160.     }
  161.    
  162. if global.PartyMemberSelected = 4
  163. switch(global.PartyMember) {
  164.     case 1:
  165.         SelectedId2 = global.aStoredPartyMember1;
  166.         global.aStoredPartyMember4 = SelectedId2;
  167.         global.aStoredPartyMember1 = SelectedId1;
  168.         LevelId2 = global.aStoredLevel1;
  169.         global.aStoredLevel4 = LevelId2;
  170.         global.aStoredLevel1 = LevelId1;
  171.         break;
  172.     case 2:
  173.         SelectedId2 = global.aStoredPartyMember2;
  174.         global.aStoredPartyMember4 = SelectedId2;
  175.         global.aStoredPartyMember2 = SelectedId1;
  176.         LevelId2 = global.aStoredLevel2;
  177.         global.aStoredLevel4 = LevelId2;
  178.         global.aStoredLevel2 = LevelId1;
  179.         break;
  180.     case 3:
  181.         SelectedId2 = global.aStoredPartyMember3;
  182.         global.aStoredPartyMember4 = SelectedId2;
  183.         global.aStoredPartyMember3 = SelectedId1;
  184.         LevelId2 = global.aStoredLevel3;
  185.         global.aStoredLevel4 = LevelId2;
  186.         global.aStoredLevel3 = LevelId1;
  187.         break;
  188.     case 4:
  189.         SelectedId2 = global.aStoredPartyMember4;
  190.         global.aStoredPartyMember4 = SelectedId2;
  191.         global.aStoredPartyMember4 = SelectedId1;
  192.         LevelId2 = global.aStoredLevel4;
  193.         global.aStoredLevel4 = LevelId2;
  194.         global.aStoredLevel4 = LevelId1;
  195.         break;
  196.     case 5:
  197.         SelectedId2 = global.aStoredPartyMember5;
  198.         global.aStoredPartyMember4 = SelectedId2;
  199.         global.aStoredPartyMember5 = SelectedId1;
  200.         LevelId2 = global.aStoredLevel5;
  201.         global.aStoredLevel4 = LevelId2;
  202.         global.aStoredLevel5 = LevelId1;
  203.         break;
  204.     case 6:
  205.         SelectedId2 = global.aStoredPartyMember6;
  206.         global.aStoredPartyMember4 = SelectedId2;
  207.         global.aStoredPartyMember6 = SelectedId1;
  208.         LevelId2 = global.aStoredLevel6;
  209.         global.aStoredLevel4 = LevelId2;
  210.         global.aStoredLevel6 = LevelId1;
  211.         break;
  212.     default:
  213.     }
  214.    
  215. if global.PartyMemberSelected = 5
  216. switch(global.PartyMember) {
  217.     case 1:
  218.         SelectedId2 = global.aStoredPartyMember1;
  219.         global.aStoredPartyMember5 = SelectedId2;
  220.         global.aStoredPartyMember1 = SelectedId1;
  221.         LevelId2 = global.aStoredLevel1;
  222.         global.aStoredLevel5 = LevelId2;
  223.         global.aStoredLevel1 = LevelId1;
  224.         break;
  225.     case 2:
  226.         SelectedId2 = global.aStoredPartyMember2;
  227.         global.aStoredPartyMember5 = SelectedId2;
  228.         global.aStoredPartyMember2 = SelectedId1;
  229.         LevelId2 = global.aStoredLevel2;
  230.         global.aStoredLevel5 = LevelId2;
  231.         global.aStoredLevel2 = LevelId1;
  232.         break;
  233.     case 3:
  234.         SelectedId2 = global.aStoredPartyMember3;
  235.         global.aStoredPartyMember5 = SelectedId2;
  236.         global.aStoredPartyMember3 = SelectedId1;
  237.         LevelId2 = global.aStoredLevel3;
  238.         global.aStoredLevel5 = LevelId2;
  239.         global.aStoredLevel3 = LevelId1;
  240.         break;
  241.     case 4:
  242.         SelectedId2 = global.aStoredPartyMember4;
  243.         global.aStoredPartyMember5 = SelectedId2;
  244.         global.aStoredPartyMember4 = SelectedId1;
  245.         LevelId2 = global.aStoredLevel4;
  246.         global.aStoredLevel5 = LevelId2;
  247.         global.aStoredLevel4 = LevelId1;
  248.         break;
  249.     case 5:
  250.         SelectedId2 = global.aStoredPartyMember5;
  251.         global.aStoredPartyMember5 = SelectedId2;
  252.         global.aStoredPartyMember5 = SelectedId1;
  253.         LevelId2 = global.aStoredLevel5;
  254.         global.aStoredLevel5 = LevelId2;
  255.         global.aStoredLevel5 = LevelId1;
  256.         break;
  257.     case 6:
  258.         SelectedId2 = global.aStoredPartyMember6;
  259.         global.aStoredPartyMember5 = SelectedId2;
  260.         global.aStoredPartyMember6 = SelectedId1;
  261.         LevelId2 = global.aStoredLevel6;
  262.         global.aStoredLevel5 = LevelId2;
  263.         global.aStoredLevel6 = LevelId1;
  264.         break;
  265.     default:
  266.     }
  267.    
  268. if global.PartyMemberSelected = 6
  269. switch(global.PartyMember) {
  270.     case 1:
  271.         SelectedId2 = global.aStoredPartyMember1;
  272.         global.aStoredPartyMember6 = SelectedId2;
  273.         global.aStoredPartyMember1 = SelectedId1;
  274.         LevelId2 = global.aStoredLevel1;
  275.         global.aStoredLevel6 = LevelId2;
  276.         global.aStoredLevel1 = LevelId1;
  277.         break;
  278.     case 2:
  279.         SelectedId2 = global.aStoredPartyMember2;
  280.         global.aStoredPartyMember6 = SelectedId2;
  281.         global.aStoredPartyMember2 = SelectedId1;
  282.         LevelId2 = global.aStoredLevel2;
  283.         global.aStoredLevel6 = LevelId2;
  284.         global.aStoredLevel2 = LevelId1;
  285.         break;
  286.     case 3:
  287.         SelectedId2 = global.aStoredPartyMember3;
  288.         global.aStoredPartyMember6 = SelectedId2;
  289.         global.aStoredPartyMember3 = SelectedId1;
  290.         LevelId2 = global.aStoredLevel3;
  291.         global.aStoredLevel6 = LevelId2;
  292.         global.aStoredLevel3 = LevelId1;
  293.         break;
  294.     case 4:
  295.         SelectedId2 = global.aStoredPartyMember4;
  296.         global.aStoredPartyMember6 = SelectedId2;
  297.         global.aStoredPartyMember4 = SelectedId1;
  298.         LevelId2 = global.aStoredLevel4;
  299.         global.aStoredLevel6 = LevelId2;
  300.         global.aStoredLevel4 = LevelId1;
  301.         break;
  302.     case 5:
  303.         SelectedId2 = global.aStoredPartyMember5;
  304.         global.aStoredPartyMember6 = SelectedId2;
  305.         global.aStoredPartyMember5 = SelectedId1;
  306.         LevelId2 = global.aStoredLevel5;
  307.         global.aStoredLevel6 = LevelId2;
  308.         global.aStoredLevel5 = LevelId1;
  309.         break;
  310.     case 6:
  311.         SelectedId2 = global.aStoredPartyMember6;
  312.         global.aStoredPartyMember6 = SelectedId2;
  313.         global.aStoredPartyMember6 = SelectedId1;
  314.         LevelId2 = global.aStoredLevel6;
  315.         global.aStoredLevel6 = LevelId2;
  316.         global.aStoredLevel6 = LevelId1;
  317.         break;
  318.     default:
  319.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement