SHARE
TWEET

Untitled

a guest Sep 21st, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rule("Creator: Doomyfate - YT: RelevantInterests")
  2. {
  3.     event
  4.     {
  5.         Ongoing - Global;
  6.     }
  7. }
  8.  
  9. rule("Player vars")
  10. {
  11.     event
  12.     {
  13.         Ongoing - Each Player;
  14.         All;
  15.         All;
  16.     }
  17.  
  18.     actions
  19.     {
  20.         Set Player Variable At Index(Event Player, A, 0, 1);
  21.         Set Player Variable At Index(Event Player, A, 1, 10000);
  22.         Set Player Variable At Index(Event Player, A, 2, 0);
  23.         Set Player Variable At Index(Event Player, A, 3, 0);
  24.         Set Player Variable At Index(Event Player, A, 4, 0);
  25.         Set Player Variable At Index(Event Player, A, 5, 0);
  26.         Set Player Variable At Index(Event Player, A, 6, 0);
  27.         Set Player Variable At Index(Event Player, A, 7, 0);
  28.         Set Player Variable At Index(Event Player, A, 8, 0);
  29.         Set Player Variable At Index(Event Player, A, 9, 0);
  30.         Set Player Variable At Index(Event Player, A, 10, 5);
  31.         Set Player Variable At Index(Event Player, A, 11, 100);
  32.         Set Player Variable At Index(Event Player, A, 12, 0);
  33.         Set Player Variable At Index(Event Player, B, 1, 1.200);
  34.         Set Player Variable At Index(Event Player, B, 2, 100);
  35.         Set Player Variable At Index(Event Player, B, 3, 200);
  36.         Set Player Variable At Index(Event Player, B, 4, 200);
  37.         Set Player Variable At Index(Event Player, B, 5, 100);
  38.         Set Player Variable At Index(Event Player, B, 6, 150);
  39.         Set Player Variable At Index(Event Player, B, 7, 350);
  40.         Set Player Variable At Index(Event Player, B, 8, 350);
  41.         Set Player Variable At Index(Event Player, B, 9, 1000);
  42.         Set Player Variable At Index(Event Player, B, 10, 150);
  43.         Set Player Variable At Index(Event Player, B, 11, 150);
  44.         Set Player Variable At Index(Event Player, B, 12, 200);
  45.         Set Player Variable At Index(Event Player, C, 2, 10);
  46.         Set Player Variable At Index(Event Player, C, 3, 10);
  47.         Set Player Variable At Index(Event Player, C, 4, 5);
  48.         Set Player Variable At Index(Event Player, C, 5, 10);
  49.         Set Player Variable At Index(Event Player, C, 6, 10);
  50.         Set Player Variable At Index(Event Player, C, 7, 1);
  51.         Set Player Variable At Index(Event Player, C, 8, 1);
  52.         Set Player Variable At Index(Event Player, C, 9, 1);
  53.         Set Player Variable At Index(Event Player, C, 10, 5);
  54.         Set Player Variable At Index(Event Player, C, 11, 50);
  55.         Set Player Variable At Index(Event Player, C, 12, 5);
  56.         Set Player Variable(Event Player, D, Empty Array);
  57.         Set Player Variable At Index(Event Player, E, 0, 1);
  58.         Set Player Variable At Index(Event Player, E, 1, 1);
  59.         Set Player Variable At Index(Event Player, E, 2, 1);
  60.     }
  61. }
  62.  
  63. rule("Disable Abilities")
  64. {
  65.     event
  66.     {
  67.         Ongoing - Each Player;
  68.         All;
  69.         All;
  70.     }
  71.  
  72.     actions
  73.     {
  74.         Set Ability 1 Enabled(Event Player, False);
  75.         Set Ability 2 Enabled(Event Player, False);
  76.         Set Ultimate Ability Enabled(Event Player, False);
  77.     }
  78. }
  79.  
  80. rule("Handle Crouch")
  81. {
  82.     event
  83.     {
  84.         Ongoing - Each Player;
  85.         All;
  86.         All;
  87.     }
  88.  
  89.     conditions
  90.     {
  91.         Is Button Held(Event Player, Crouch) == True;
  92.     }
  93.  
  94.     actions
  95.     {
  96.         Set Player Variable At Index(Event Player, E, 0, 0);
  97.         Skip If(Compare(Value In Array(Player Variable(Event Player, E), 2), ==, 0), 1);
  98.         Set Player Variable At Index(Event Player, E, 1, 0);
  99.     }
  100. }
  101.  
  102. rule("Handle Uncrouch")
  103. {
  104.     event
  105.     {
  106.         Ongoing - Each Player;
  107.         All;
  108.         All;
  109.     }
  110.  
  111.     conditions
  112.     {
  113.         Is Button Held(Event Player, Crouch) == False;
  114.     }
  115.  
  116.     actions
  117.     {
  118.         Set Player Variable At Index(Event Player, E, 0, 1);
  119.         Skip If(Compare(Value In Array(Player Variable(Event Player, E), 2), ==, 0), 1);
  120.         Set Player Variable At Index(Event Player, E, 1, 1);
  121.     }
  122. }
  123.  
  124. rule("Handle Can Modify")
  125. {
  126.     event
  127.     {
  128.         Ongoing - Each Player;
  129.         All;
  130.         All;
  131.     }
  132.  
  133.     conditions
  134.     {
  135.         Value In Array(Player Variable(Event Player, E), 2) == 1;
  136.         Compare(Value In Array(Player Variable(Event Player, E), 0), !=, Value In Array(Player Variable(Event Player, E), 1)) == True;
  137.     }
  138.  
  139.     actions
  140.     {
  141.         Set Player Variable At Index(Event Player, E, 1, Value In Array(Player Variable(Event Player, E), 0));
  142.     }
  143. }
  144.  
  145. rule("Update menu option uncrouched")
  146. {
  147.     event
  148.     {
  149.         Ongoing - Each Player;
  150.         All;
  151.         All;
  152.     }
  153.  
  154.     conditions
  155.     {
  156.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  157.     }
  158.  
  159.     actions
  160.     {
  161.         Set Player Variable At Index(Event Player, E, 2, 0);
  162.         Wait(0.010, Ignore Condition);
  163.         Skip If(Compare(Count Of(Player Variable(Event Player, D)), ==, 0), 2);
  164.         Destroy HUD Text(Value In Array(Player Variable(Event Player, D), Subtract(Count Of(Player Variable(Event Player, D)), 1)));
  165.         Set Player Variable(Event Player, D, Array Slice(Player Variable(Event Player, D), 0, Subtract(Count Of(Player Variable(
  166.             Event Player, D)), 1)));
  167.         Loop If(Compare(Count Of(Player Variable(Event Player, D)), >, 0));
  168.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Run", Null, Null, Null), String("Fast", Null, Null,
  169.             Null), String("Total", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 12), Null), Null, Null, Right, 0,
  170.             White, White, White, Visible To and String, Default Visibility);
  171.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  172.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Money", Null, Null, Null), String("On", Null, Null,
  173.             Null), String("Kill", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 11), Null), Null, Null, Right, 0,
  174.             White, White, White, Visible To and String, Default Visibility);
  175.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  176.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null,
  177.             Null, Null), String("Time", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 10), Null), Null, Null, Right,
  178.             0, White, White, White, Visible To and String, Default Visibility);
  179.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  180.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Attack", Null, Null, Null), String("Fast", Null,
  181.             Null, Null), String("Total", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 6), Null), Null, Null, Right,
  182.             0, White, White, White, Visible To and String, Default Visibility);
  183.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  184.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Damage", Null, Null, Null), String("Upgrade", Null,
  185.             Null, Null), String("Total", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 5), Null), Null, Null, Right,
  186.             0, White, White, White, Visible To and String, Default Visibility);
  187.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  188.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Heal", Null, Null, Null), String("On", Null, Null,
  189.             Null), String("Damage", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 4), Null), Null, Null, Right, 0,
  190.             White, White, White, Visible To and String, Default Visibility);
  191.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  192.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Heal", Null, Null, Null), String("Over", Null,
  193.             Null, Null), String("Time", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 3), Null), Null, Null, Right,
  194.             0, White, White, White, Visible To and String, Default Visibility);
  195.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  196.         Create HUD Text(Event Player, String("{0} - {1}", String("{0} {1} {2}", String("Life", Null, Null, Null), String("Upgrade", Null,
  197.             Null, Null), String("Total", Null, Null, Null)), Value In Array(Player Variable(Event Player, A), 2), Null), Null, Null, Right,
  198.             0, White, White, White, Visible To and String, Default Visibility);
  199.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  200.         Create HUD Text(Event Player, String("{0} - {1}", String("Money", Null, Null, Null), Value In Array(Player Variable(Event Player,
  201.             A), 1), Null), Null, Null, Top, 0, White, White, White, Visible To and String, Default Visibility);
  202.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  203.     }
  204. }
  205.  
  206. rule("Update menu option crouched")
  207. {
  208.     event
  209.     {
  210.         Ongoing - Each Player;
  211.         All;
  212.         All;
  213.     }
  214.  
  215.     conditions
  216.     {
  217.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  218.     }
  219.  
  220.     actions
  221.     {
  222.         Set Player Variable At Index(Event Player, E, 2, 0);
  223.         Wait(0.010, Ignore Condition);
  224.         Skip If(Compare(Count Of(Player Variable(Event Player, D)), ==, 0), 2);
  225.         Destroy HUD Text(Value In Array(Player Variable(Event Player, D), Subtract(Count Of(Player Variable(Event Player, D)), 1)));
  226.         Set Player Variable(Event Player, D, Array Slice(Player Variable(Event Player, D), 0, Subtract(Count Of(Player Variable(
  227.             Event Player, D)), 1)));
  228.         Loop If(Compare(Count Of(Player Variable(Event Player, D)), >, 0));
  229.         Create HUD Text(Event Player, String("{0} - {1}", String("Money", Null, Null, Null), Value In Array(Player Variable(Event Player,
  230.             A), 1), Null), Null, Null, Top, 0, White, White, White, Visible To and String, Default Visibility);
  231.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  232.         Create HUD Text(Event Player, String("{0} - {1}", String("Credits", Null, Null, Null), Value In Array(Player Variable(Event Player,
  233.             B), Add(Value In Array(Player Variable(Event Player, A), 0), 1)), Null), Null, Null, Right, 0, White, White, White,
  234.             Visible To and String, Default Visibility);
  235.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  236.     }
  237. }
  238.  
  239. rule("Update menu option value")
  240. {
  241.     event
  242.     {
  243.         Ongoing - Each Player;
  244.         All;
  245.         All;
  246.     }
  247.  
  248.     conditions
  249.     {
  250.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  251.         Is Button Held(Event Player, Interact) == True;
  252.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), <=, 11)) == True;
  253.         Value In Array(Player Variable(Event Player, E), 2) == 1;
  254.     }
  255.  
  256.     actions
  257.     {
  258.         Set Player Variable At Index(Event Player, E, 2, 0);
  259.         Wait(0.010, Ignore Condition);
  260.         Skip If(Compare(Count Of(Player Variable(Event Player, D)), ==, 0), 2);
  261.         Destroy HUD Text(Value In Array(Player Variable(Event Player, D), Subtract(Count Of(Player Variable(Event Player, D)), 1)));
  262.         Set Player Variable(Event Player, D, Array Slice(Player Variable(Event Player, D), 0, Subtract(Count Of(Player Variable(
  263.             Event Player, D)), 1)));
  264.         Loop If(Compare(Count Of(Player Variable(Event Player, D)), >, 0));
  265.         Create HUD Text(Event Player, String("{0} - {1}", String("Money", Null, Null, Null), Value In Array(Player Variable(Event Player,
  266.             A), 1), Null), Null, Null, Top, 0, White, White, White, Visible To and String, Default Visibility);
  267.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  268.         Create HUD Text(Event Player, String("{0} - {1}", String("Credits", Null, Null, Null), Value In Array(Player Variable(Event Player,
  269.             B), Add(Value In Array(Player Variable(Event Player, A), 0), 1)), Null), Null, Null, Right, 0, White, White, White,
  270.             Visible To and String, Default Visibility);
  271.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  272.         Set Player Variable At Index(Event Player, A, 0, Add(Value In Array(Player Variable(Event Player, A), 0), 1));
  273.     }
  274. }
  275.  
  276. rule("Reset menu Option")
  277. {
  278.     event
  279.     {
  280.         Ongoing - Each Player;
  281.         All;
  282.         All;
  283.     }
  284.  
  285.     conditions
  286.     {
  287.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), >, 11)) == True;
  288.     }
  289.  
  290.     actions
  291.     {
  292.         Set Player Variable At Index(Event Player, A, 0, 1);
  293.     }
  294. }
  295.  
  296. rule("Menu - Healing - Health - Menu")
  297. {
  298.     event
  299.     {
  300.         Ongoing - Each Player;
  301.         All;
  302.         All;
  303.     }
  304.  
  305.     conditions
  306.     {
  307.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  308.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 1)) == True;
  309.     }
  310.  
  311.     actions
  312.     {
  313.         Wait(0.200, Ignore Condition);
  314.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  315.             "Damage", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  316.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  317.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  318.             "Time", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  319.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  320.         Create HUD Text(Event Player, String("{0} {1}", String("Life", Null, Null, Null), String("Upgrade", Null, Null, Null), Null), Null,
  321.             Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  322.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  323.         Create HUD Text(Event Player, String("{0}!", String("Healing", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  324.             White, Visible To and String, Default Visibility);
  325.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  326.         Set Player Variable At Index(Event Player, E, 2, 1);
  327.     }
  328. }
  329.  
  330. rule("Menu - Healing - Health - Selected")
  331. {
  332.     event
  333.     {
  334.         Ongoing - Each Player;
  335.         All;
  336.         All;
  337.     }
  338.  
  339.     conditions
  340.     {
  341.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  342.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 1)) == True;
  343.     }
  344.  
  345.     actions
  346.     {
  347.         Wait(0.200, Ignore Condition);
  348.         Create HUD Text(Event Player, String("{0} {1}", String("Life", Null, Null, Null), String("Upgrade", Null, Null, Null), Null), Null,
  349.             Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  350.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  351.         Set Player Variable At Index(Event Player, E, 2, 1);
  352.     }
  353. }
  354.  
  355. rule("Menu - Healing - Time - Menu")
  356. {
  357.     event
  358.     {
  359.         Ongoing - Each Player;
  360.         All;
  361.         All;
  362.     }
  363.  
  364.     conditions
  365.     {
  366.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  367.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 2)) == True;
  368.     }
  369.  
  370.     actions
  371.     {
  372.         Wait(0.200, Ignore Condition);
  373.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  374.             "Damage", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  375.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  376.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  377.             "Time", Null, Null, Null)), Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  378.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  379.         Create HUD Text(Event Player, String("{0} {1}", String("Life", Null, Null, Null), String("Upgrade", Null, Null, Null), Null), Null,
  380.             Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  381.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  382.         Create HUD Text(Event Player, String("{0}!", String("Healing", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  383.             White, Visible To and String, Default Visibility);
  384.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  385.         Set Player Variable At Index(Event Player, E, 2, 1);
  386.     }
  387. }
  388.  
  389. rule("Menu - Healing - Time - Selected")
  390. {
  391.     event
  392.     {
  393.         Ongoing - Each Player;
  394.         All;
  395.         All;
  396.     }
  397.  
  398.     conditions
  399.     {
  400.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  401.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 2)) == True;
  402.     }
  403.  
  404.     actions
  405.     {
  406.         Wait(0.200, Ignore Condition);
  407.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  408.             "Time", Null, Null, Null)), Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  409.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  410.         Set Player Variable At Index(Event Player, E, 2, 1);
  411.     }
  412. }
  413.  
  414. rule("Menu - Healing - Damage - Menu")
  415. {
  416.     event
  417.     {
  418.         Ongoing - Each Player;
  419.         All;
  420.         All;
  421.     }
  422.  
  423.     conditions
  424.     {
  425.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  426.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 3)) == True;
  427.     }
  428.  
  429.     actions
  430.     {
  431.         Wait(0.200, Ignore Condition);
  432.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  433.             "Damage", Null, Null, Null)), Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  434.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  435.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  436.             "Time", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  437.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  438.         Create HUD Text(Event Player, String("{0} {1}", String("Life", Null, Null, Null), String("Upgrade", Null, Null, Null), Null), Null,
  439.             Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  440.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  441.         Create HUD Text(Event Player, String("{0}!", String("Healing", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  442.             White, Visible To and String, Default Visibility);
  443.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  444.         Set Player Variable At Index(Event Player, E, 2, 1);
  445.     }
  446. }
  447.  
  448. rule("Menu - Healing - Damage - Selected")
  449. {
  450.     event
  451.     {
  452.         Ongoing - Each Player;
  453.         All;
  454.         All;
  455.     }
  456.  
  457.     conditions
  458.     {
  459.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  460.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 3)) == True;
  461.     }
  462.  
  463.     actions
  464.     {
  465.         Wait(0.200, Ignore Condition);
  466.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Life", Null, Null, Null), String("Over", Null, Null, Null), String(
  467.             "Damage", Null, Null, Null)), Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  468.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  469.         Set Player Variable At Index(Event Player, E, 2, 1);
  470.     }
  471. }
  472.  
  473. rule("Menu - Attack - Damage - Menu")
  474. {
  475.     event
  476.     {
  477.         Ongoing - Each Player;
  478.         All;
  479.         All;
  480.     }
  481.  
  482.     conditions
  483.     {
  484.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  485.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 4)) == True;
  486.     }
  487.  
  488.     actions
  489.     {
  490.         Wait(0.200, Ignore Condition);
  491.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ultimate Ability", Null, Null, Null),
  492.             Null), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  493.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  494.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 2", Null, Null, Null), Null),
  495.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  496.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  497.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 1", Null, Null, Null), Null),
  498.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  499.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  500.         Create HUD Text(Event Player, String("{0} {1}", String("Attack", Null, Null, Null), String("Faster", Null, Null, Null), Null),
  501.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  502.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  503.         Create HUD Text(Event Player, String("{0} {1}", String("Damage", Null, Null, Null), String("Upgrade", Null, Null, Null), Null),
  504.             Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  505.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  506.         Create HUD Text(Event Player, String("{0}!", String("Damage", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  507.             White, Visible To and String, Default Visibility);
  508.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  509.         Set Player Variable At Index(Event Player, E, 2, 1);
  510.     }
  511. }
  512.  
  513. rule("Menu - Attack - Damage - Selected")
  514. {
  515.     event
  516.     {
  517.         Ongoing - Each Player;
  518.         All;
  519.         All;
  520.     }
  521.  
  522.     conditions
  523.     {
  524.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  525.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 4)) == True;
  526.     }
  527.  
  528.     actions
  529.     {
  530.         Wait(0.200, Ignore Condition);
  531.         Create HUD Text(Event Player, String("{0} {1}", String("Damage", Null, Null, Null), String("Upgrade", Null, Null, Null), Null),
  532.             Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  533.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  534.         Set Player Variable At Index(Event Player, E, 2, 1);
  535.     }
  536. }
  537.  
  538. rule("Menu - Attack - Speed - Menu")
  539. {
  540.     event
  541.     {
  542.         Ongoing - Each Player;
  543.         All;
  544.         All;
  545.     }
  546.  
  547.     conditions
  548.     {
  549.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  550.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 5)) == True;
  551.     }
  552.  
  553.     actions
  554.     {
  555.         Wait(0.200, Ignore Condition);
  556.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ultimate Ability", Null, Null, Null),
  557.             Null), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  558.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  559.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 2", Null, Null, Null), Null),
  560.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  561.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  562.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 1", Null, Null, Null), Null),
  563.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  564.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  565.         Create HUD Text(Event Player, String("{0} {1}", String("Attack", Null, Null, Null), String("Faster", Null, Null, Null), Null),
  566.             Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  567.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  568.         Create HUD Text(Event Player, String("{0} {1}", String("Damage", Null, Null, Null), String("Upgrade", Null, Null, Null), Null),
  569.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  570.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  571.         Create HUD Text(Event Player, String("{0}!", String("Damage", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  572.             White, Visible To and String, Default Visibility);
  573.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  574.         Set Player Variable At Index(Event Player, E, 2, 1);
  575.     }
  576. }
  577.  
  578. rule("Menu - Attack - Speed - Selected")
  579. {
  580.     event
  581.     {
  582.         Ongoing - Each Player;
  583.         All;
  584.         All;
  585.     }
  586.  
  587.     conditions
  588.     {
  589.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  590.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 5)) == True;
  591.     }
  592.  
  593.     actions
  594.     {
  595.         Wait(0.200, Ignore Condition);
  596.         Create HUD Text(Event Player, String("{0} {1}", String("Attack", Null, Null, Null), String("Faster", Null, Null, Null), Null),
  597.             Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  598.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  599.         Set Player Variable At Index(Event Player, E, 2, 1);
  600.     }
  601. }
  602.  
  603. rule("Menu - Attack - Ability 1 - Menu")
  604. {
  605.     event
  606.     {
  607.         Ongoing - Each Player;
  608.         All;
  609.         All;
  610.     }
  611.  
  612.     conditions
  613.     {
  614.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  615.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 6)) == True;
  616.     }
  617.  
  618.     actions
  619.     {
  620.         Wait(0.200, Ignore Condition);
  621.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ultimate Ability", Null, Null, Null),
  622.             Null), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  623.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  624.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 2", Null, Null, Null), Null),
  625.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  626.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  627.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 1", Null, Null, Null), Null),
  628.             Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  629.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  630.         Create HUD Text(Event Player, String("{0} {1}", String("Attack", Null, Null, Null), String("Faster", Null, Null, Null), Null),
  631.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  632.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  633.         Create HUD Text(Event Player, String("{0} {1}", String("Damage", Null, Null, Null), String("Upgrade", Null, Null, Null), Null),
  634.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  635.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  636.         Create HUD Text(Event Player, String("{0}!", String("Damage", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  637.             White, Visible To and String, Default Visibility);
  638.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  639.         Set Player Variable At Index(Event Player, E, 2, 1);
  640.     }
  641. }
  642.  
  643. rule("Menu - Attack - Ability 1 - Selected")
  644. {
  645.     event
  646.     {
  647.         Ongoing - Each Player;
  648.         All;
  649.         All;
  650.     }
  651.  
  652.     conditions
  653.     {
  654.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  655.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 6)) == True;
  656.     }
  657.  
  658.     actions
  659.     {
  660.         Wait(0.200, Ignore Condition);
  661.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 1", Null, Null, Null), Null),
  662.             Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  663.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  664.         Set Player Variable At Index(Event Player, E, 2, 1);
  665.     }
  666. }
  667.  
  668. rule("Menu - Attack - Ability 2 - Menu")
  669. {
  670.     event
  671.     {
  672.         Ongoing - Each Player;
  673.         All;
  674.         All;
  675.     }
  676.  
  677.     conditions
  678.     {
  679.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  680.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 7)) == True;
  681.     }
  682.  
  683.     actions
  684.     {
  685.         Wait(0.200, Ignore Condition);
  686.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ultimate Ability", Null, Null, Null),
  687.             Null), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  688.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  689.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 2", Null, Null, Null), Null),
  690.             Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  691.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  692.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 1", Null, Null, Null), Null),
  693.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  694.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  695.         Create HUD Text(Event Player, String("{0} {1}", String("Attack", Null, Null, Null), String("Faster", Null, Null, Null), Null),
  696.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  697.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  698.         Create HUD Text(Event Player, String("{0} {1}", String("Damage", Null, Null, Null), String("Upgrade", Null, Null, Null), Null),
  699.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  700.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  701.         Create HUD Text(Event Player, String("{0}!", String("Damage", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  702.             White, Visible To and String, Default Visibility);
  703.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  704.         Set Player Variable At Index(Event Player, E, 2, 1);
  705.     }
  706. }
  707.  
  708. rule("Menu - Attack - Ability 2 - Selected")
  709. {
  710.     event
  711.     {
  712.         Ongoing - Each Player;
  713.         All;
  714.         All;
  715.     }
  716.  
  717.     conditions
  718.     {
  719.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  720.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 7)) == True;
  721.     }
  722.  
  723.     actions
  724.     {
  725.         Wait(0.200, Ignore Condition);
  726.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 2", Null, Null, Null), Null),
  727.             Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  728.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  729.         Set Player Variable At Index(Event Player, E, 2, 1);
  730.     }
  731. }
  732.  
  733. rule("Menu - Attack - Ultimate - Menu")
  734. {
  735.     event
  736.     {
  737.         Ongoing - Each Player;
  738.         All;
  739.         All;
  740.     }
  741.  
  742.     conditions
  743.     {
  744.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  745.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 8)) == True;
  746.     }
  747.  
  748.     actions
  749.     {
  750.         Wait(0.200, Ignore Condition);
  751.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ultimate Ability", Null, Null, Null),
  752.             Null), Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  753.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  754.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 2", Null, Null, Null), Null),
  755.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  756.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  757.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ability 1", Null, Null, Null), Null),
  758.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  759.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  760.         Create HUD Text(Event Player, String("{0} {1}", String("Attack", Null, Null, Null), String("Faster", Null, Null, Null), Null),
  761.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  762.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  763.         Create HUD Text(Event Player, String("{0} {1}", String("Damage", Null, Null, Null), String("Upgrade", Null, Null, Null), Null),
  764.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  765.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  766.         Create HUD Text(Event Player, String("{0}!", String("Damage", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  767.             White, Visible To and String, Default Visibility);
  768.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  769.         Set Player Variable At Index(Event Player, E, 2, 1);
  770.     }
  771. }
  772.  
  773. rule("Menu - Attack - Ultimate - Selected")
  774. {
  775.     event
  776.     {
  777.         Ongoing - Each Player;
  778.         All;
  779.         All;
  780.     }
  781.  
  782.     conditions
  783.     {
  784.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  785.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 8)) == True;
  786.     }
  787.  
  788.     actions
  789.     {
  790.         Wait(0.200, Ignore Condition);
  791.         Create HUD Text(Event Player, String("{0} {1}", String("Unlock", Null, Null, Null), String("Ultimate Ability", Null, Null, Null),
  792.             Null), Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  793.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  794.         Set Player Variable At Index(Event Player, E, 2, 1);
  795.     }
  796. }
  797.  
  798. rule("Menu - Utility - Gold Per Sec - Menu")
  799. {
  800.     event
  801.     {
  802.         Ongoing - Each Player;
  803.         All;
  804.         All;
  805.     }
  806.  
  807.     conditions
  808.     {
  809.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  810.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 9)) == True;
  811.     }
  812.  
  813.     actions
  814.     {
  815.         Wait(0.200, Ignore Condition);
  816.         Create HUD Text(Event Player, String("{0} {1}", String("Faster", Null, Null, Null), String("Running", Null, Null, Null), Null),
  817.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  818.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  819.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  820.             "Kills", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  821.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  822.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  823.             "Time", Null, Null, Null)), Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  824.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  825.         Create HUD Text(Event Player, String("{0}!", String("Build", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  826.             White, Visible To and String, Default Visibility);
  827.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  828.         Set Player Variable At Index(Event Player, E, 2, 1);
  829.     }
  830. }
  831.  
  832. rule("Menu - Utility - Gold Per Sec - Selected")
  833. {
  834.     event
  835.     {
  836.         Ongoing - Each Player;
  837.         All;
  838.         All;
  839.     }
  840.  
  841.     conditions
  842.     {
  843.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  844.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 9)) == True;
  845.     }
  846.  
  847.     actions
  848.     {
  849.         Wait(0.200, Ignore Condition);
  850.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  851.             "Time", Null, Null, Null)), Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  852.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  853.         Set Player Variable At Index(Event Player, E, 2, 1);
  854.     }
  855. }
  856.  
  857. rule("Menu - Utility - Gold Per Kill - Menu")
  858. {
  859.     event
  860.     {
  861.         Ongoing - Each Player;
  862.         All;
  863.         All;
  864.     }
  865.  
  866.     conditions
  867.     {
  868.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  869.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 10)) == True;
  870.     }
  871.  
  872.     actions
  873.     {
  874.         Wait(0.200, Ignore Condition);
  875.         Create HUD Text(Event Player, String("{0} {1}", String("Faster", Null, Null, Null), String("Running", Null, Null, Null), Null),
  876.             Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  877.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  878.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  879.             "Kills", Null, Null, Null)), Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  880.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  881.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  882.             "Time", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  883.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  884.         Create HUD Text(Event Player, String("{0}!", String("Build", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  885.             White, Visible To and String, Default Visibility);
  886.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  887.         Set Player Variable At Index(Event Player, E, 2, 1);
  888.     }
  889. }
  890.  
  891. rule("Menu - Utility - Gold Per Kill - Selected")
  892. {
  893.     event
  894.     {
  895.         Ongoing - Each Player;
  896.         All;
  897.         All;
  898.     }
  899.  
  900.     conditions
  901.     {
  902.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  903.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 10)) == True;
  904.     }
  905.  
  906.     actions
  907.     {
  908.         Wait(0.200, Ignore Condition);
  909.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  910.             "Kills", Null, Null, Null)), Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  911.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  912.         Set Player Variable At Index(Event Player, E, 2, 1);
  913.     }
  914. }
  915.  
  916. rule("Menu - Utility - Move Speed - Menu")
  917. {
  918.     event
  919.     {
  920.         Ongoing - Each Player;
  921.         All;
  922.         All;
  923.     }
  924.  
  925.     conditions
  926.     {
  927.         Value In Array(Player Variable(Event Player, E), 1) == 0;
  928.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 11)) == True;
  929.     }
  930.  
  931.     actions
  932.     {
  933.         Wait(0.200, Ignore Condition);
  934.         Create HUD Text(Event Player, String("{0} {1}", String("Faster", Null, Null, Null), String("Running", Null, Null, Null), Null),
  935.             Null, Null, Left, 0, Green, White, White, Visible To and String, Default Visibility);
  936.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  937.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  938.             "Kills", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  939.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  940.         Create HUD Text(Event Player, String("{0} {1} {2}", String("Money", Null, Null, Null), String("Over", Null, Null, Null), String(
  941.             "Time", Null, Null, Null)), Null, Null, Left, 0, Red, White, White, Visible To and String, Default Visibility);
  942.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  943.         Create HUD Text(Event Player, String("{0}!", String("Build", Null, Null, Null), Null, Null), Null, Null, Left, 0, White, White,
  944.             White, Visible To and String, Default Visibility);
  945.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  946.         Set Player Variable At Index(Event Player, E, 2, 1);
  947.     }
  948. }
  949.  
  950. rule("Menu - Utility - Move Speed - Selected")
  951. {
  952.     event
  953.     {
  954.         Ongoing - Each Player;
  955.         All;
  956.         All;
  957.     }
  958.  
  959.     conditions
  960.     {
  961.         Value In Array(Player Variable(Event Player, E), 1) == 1;
  962.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 11)) == True;
  963.     }
  964.  
  965.     actions
  966.     {
  967.         Wait(0.200, Ignore Condition);
  968.         Create HUD Text(Event Player, String("{0} {1}", String("Faster", Null, Null, Null), String("Running", Null, Null, Null), Null),
  969.             Null, Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  970.         Modify Player Variable(Event Player, D, Append To Array, Last Text ID);
  971.         Set Player Variable At Index(Event Player, E, 2, 1);
  972.     }
  973. }
  974.  
  975. rule("Process upgrade")
  976. {
  977.     event
  978.     {
  979.         Ongoing - Each Player;
  980.         All;
  981.         All;
  982.     }
  983.  
  984.     conditions
  985.     {
  986.         Is Button Held(Event Player, Interact) == True;
  987.         Is Button Held(Event Player, Crouch) == False;
  988.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 1), >=, Value In Array(
  989.             Player Variable(Event Player, B), Add(Value In Array(Player Variable(Event Player, A), 0), 1)))) == True;
  990.     }
  991.  
  992.     actions
  993.     {
  994.         Set Player Variable At Index(Event Player, A, 1, Subtract(Value In Array(Player Variable(Event Player, A), 1), Value In Array(
  995.             Player Variable(Event Player, B), Add(Value In Array(Player Variable(Event Player, A), 0), 1))));
  996.         Set Player Variable At Index(Event Player, A, Add(Value In Array(Player Variable(Event Player, A), 0), 1), Add(Value In Array(
  997.             Player Variable(Event Player, A), Add(Value In Array(Player Variable(Event Player, A), 0), 1)), Value In Array(Player Variable(
  998.             Event Player, C), Add(Value In Array(Player Variable(Event Player, A), 0), 1))));
  999.         Set Player Variable At Index(Event Player, B, Add(Value In Array(Player Variable(Event Player, A), 0), 1), Multiply(Value In Array(
  1000.             Player Variable(Event Player, B), Add(Value In Array(Player Variable(Event Player, A), 0), 1)), Value In Array(Player Variable(
  1001.             Event Player, B), 1)));
  1002.         Set Player Variable At Index(Event Player, B, 0, 1);
  1003.     }
  1004. }
  1005.  
  1006. rule("Upgrade 1 - Health")
  1007. {
  1008.     event
  1009.     {
  1010.         Ongoing - Each Player;
  1011.         All;
  1012.         All;
  1013.     }
  1014.  
  1015.     conditions
  1016.     {
  1017.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 1)) == True;
  1018.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1019.     }
  1020.  
  1021.     actions
  1022.     {
  1023.         Set Max Health(Event Player, Add(100, Value In Array(Player Variable(Event Player, A), 2)));
  1024.         Set Player Variable At Index(Event Player, B, 0, 0);
  1025.     }
  1026. }
  1027.  
  1028. rule("Upgrade 2 - Health Over Time")
  1029. {
  1030.     event
  1031.     {
  1032.         Ongoing - Each Player;
  1033.         All;
  1034.         All;
  1035.     }
  1036.  
  1037.     conditions
  1038.     {
  1039.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 2)) == True;
  1040.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1041.     }
  1042.  
  1043.     actions
  1044.     {
  1045.         Stop Heal Over Time(Last Heal Over Time ID);
  1046.         Start Heal Over Time(Event Player, Event Player, 10000, Value In Array(Player Variable(Event Player, A), 3));
  1047.         Set Player Variable At Index(Event Player, B, 0, 0);
  1048.     }
  1049. }
  1050.  
  1051. rule("Upgrade 3 - Health Per Damage")
  1052. {
  1053.     event
  1054.     {
  1055.         Ongoing - Each Player;
  1056.         All;
  1057.         All;
  1058.     }
  1059.  
  1060.     conditions
  1061.     {
  1062.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 3)) == True;
  1063.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1064.     }
  1065.  
  1066.     actions
  1067.     {
  1068.         Set Player Variable At Index(Event Player, B, 0, 0);
  1069.     }
  1070. }
  1071.  
  1072. rule("Upgrade 4 - Damage")
  1073. {
  1074.     event
  1075.     {
  1076.         Ongoing - Each Player;
  1077.         All;
  1078.         All;
  1079.     }
  1080.  
  1081.     conditions
  1082.     {
  1083.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 4)) == True;
  1084.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1085.     }
  1086.  
  1087.     actions
  1088.     {
  1089.         Set Damage Dealt(Event Player, Add(100, Value In Array(Player Variable(Event Player, A), 5)));
  1090.         Set Player Variable At Index(Event Player, B, 0, 0);
  1091.     }
  1092. }
  1093.  
  1094. rule("Upgrade 5 - Projectile Speed")
  1095. {
  1096.     event
  1097.     {
  1098.         Ongoing - Each Player;
  1099.         All;
  1100.         All;
  1101.     }
  1102.  
  1103.     conditions
  1104.     {
  1105.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 5)) == True;
  1106.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1107.     }
  1108.  
  1109.     actions
  1110.     {
  1111.         Set Projectile Speed(Event Player, Add(100, Value In Array(Player Variable(Event Player, A), 6)));
  1112.         Set Player Variable At Index(Event Player, B, 0, 0);
  1113.     }
  1114. }
  1115.  
  1116. rule("Upgrade 6 - Enable Move 1")
  1117. {
  1118.     event
  1119.     {
  1120.         Ongoing - Each Player;
  1121.         All;
  1122.         All;
  1123.     }
  1124.  
  1125.     conditions
  1126.     {
  1127.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 6)) == True;
  1128.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1129.     }
  1130.  
  1131.     actions
  1132.     {
  1133.         Set Ability 1 Enabled(Event Player, True);
  1134.         Set Player Variable At Index(Event Player, B, 0, 0);
  1135.     }
  1136. }
  1137.  
  1138. rule("Upgrade 7 - Enable Move 2")
  1139. {
  1140.     event
  1141.     {
  1142.         Ongoing - Each Player;
  1143.         All;
  1144.         All;
  1145.     }
  1146.  
  1147.     conditions
  1148.     {
  1149.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 7)) == True;
  1150.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1151.     }
  1152.  
  1153.     actions
  1154.     {
  1155.         Set Ability 2 Enabled(Event Player, True);
  1156.         Set Player Variable At Index(Event Player, B, 0, 0);
  1157.     }
  1158. }
  1159.  
  1160. rule("Upgrade 8 - Enable Ultimate")
  1161. {
  1162.     event
  1163.     {
  1164.         Ongoing - Each Player;
  1165.         All;
  1166.         All;
  1167.     }
  1168.  
  1169.     conditions
  1170.     {
  1171.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 8)) == True;
  1172.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1173.     }
  1174.  
  1175.     actions
  1176.     {
  1177.         Set Ultimate Ability Enabled(Event Player, True);
  1178.         Set Player Variable At Index(Event Player, B, 0, 0);
  1179.     }
  1180. }
  1181.  
  1182. rule("Upgrade 9 - Gold Per Second")
  1183. {
  1184.     event
  1185.     {
  1186.         Ongoing - Each Player;
  1187.         All;
  1188.         All;
  1189.     }
  1190.  
  1191.     conditions
  1192.     {
  1193.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 9)) == True;
  1194.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1195.     }
  1196.  
  1197.     actions
  1198.     {
  1199.         Set Player Variable At Index(Event Player, B, 0, 0);
  1200.     }
  1201. }
  1202.  
  1203. rule("Upgrade 10 - Gold Per Kill")
  1204. {
  1205.     event
  1206.     {
  1207.         Ongoing - Each Player;
  1208.         All;
  1209.         All;
  1210.     }
  1211.  
  1212.     conditions
  1213.     {
  1214.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 10)) == True;
  1215.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1216.     }
  1217.  
  1218.     actions
  1219.     {
  1220.         Set Player Variable At Index(Event Player, B, 0, 0);
  1221.     }
  1222. }
  1223.  
  1224. rule("Upgrade 11 - Movement Speed")
  1225. {
  1226.     event
  1227.     {
  1228.         Ongoing - Each Player;
  1229.         All;
  1230.         All;
  1231.     }
  1232.  
  1233.     conditions
  1234.     {
  1235.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 0), ==, 11)) == True;
  1236.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, B), 0), ==, 1)) == True;
  1237.     }
  1238.  
  1239.     actions
  1240.     {
  1241.         Set Move Speed(Event Player, Add(100, Value In Array(Player Variable(Event Player, A), 12)));
  1242.         Set Player Variable At Index(Event Player, B, 0, 0);
  1243.     }
  1244. }
  1245.  
  1246. rule("Gold Per Kill Handler")
  1247. {
  1248.     event
  1249.     {
  1250.         Player Earned Elimination;
  1251.         All;
  1252.         All;
  1253.     }
  1254.  
  1255.     actions
  1256.     {
  1257.         Set Player Variable At Index(Event Player, A, 1, Add(Value In Array(Player Variable(Event Player, A), 1), Value In Array(
  1258.             Player Variable(Event Player, A), 11)));
  1259.     }
  1260. }
  1261.  
  1262. rule("Gold Per Second Handler")
  1263. {
  1264.     event
  1265.     {
  1266.         Ongoing - Each Player;
  1267.         All;
  1268.         All;
  1269.     }
  1270.  
  1271.     actions
  1272.     {
  1273.         Set Player Variable At Index(Event Player, A, 1, Add(Value In Array(Player Variable(Event Player, A), 1), Value In Array(
  1274.             Player Variable(Event Player, A), 10)));
  1275.         Wait(1, Ignore Condition);
  1276.         Loop;
  1277.     }
  1278. }
  1279.  
  1280. rule("Heal On Damage Dealt")
  1281. {
  1282.     event
  1283.     {
  1284.         Player Dealt Damage;
  1285.         All;
  1286.         All;
  1287.     }
  1288.  
  1289.     conditions
  1290.     {
  1291.         Filtered Array(All Players(All Teams), Compare(Value In Array(Player Variable(Event Player, A), 4), >, 0)) == True;
  1292.     }
  1293.  
  1294.     actions
  1295.     {
  1296.         Heal(Event Player, Null, Multiply(Event Damage, 0.300));
  1297.     }
  1298. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top