SHARE
TWEET

Untitled

a guest May 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rule("INITIALIze global CONSTANTS")
  2. {
  3.     event
  4.     {
  5.         Ongoing - Global;
  6.     }
  7.  
  8.     actions
  9.     {
  10.         Set Global Variable(A, Empty Array);
  11.         Modify Global Variable(A, Append To Array, Vector(-40.000, 0, 145.500));
  12.         Modify Global Variable(A, Append To Array, Vector(-29.000, 8, 56));
  13.         Modify Global Variable(A, Append To Array, Vector(-77.500, 1.500, 65.500));
  14.         Set Global Variable(B, Empty Array);
  15.         Modify Global Variable(B, Append To Array, Vector(-31.500, 0, 148));
  16.         Modify Global Variable(B, Append To Array, Vector(-22.500, 7.500, 66.500));
  17.         Modify Global Variable(B, Append To Array, Vector(-82.500, 1.500, 61));
  18.         Set Global Variable(C, Empty Array);
  19.         Modify Global Variable(C, Append To Array, 600);
  20.         Modify Global Variable(C, Append To Array, 300);
  21.         Modify Global Variable(C, Append To Array, 400);
  22.         Set Global Variable(D, Empty Array);
  23.         Modify Global Variable(D, Append To Array, Hero(Roadhog));
  24.         Modify Global Variable(D, Append To Array, Hero(Soldier: 76));
  25.         Modify Global Variable(D, Append To Array, Hero(Mei));
  26.         Set Global Variable(E, Empty Array);
  27.         Modify Global Variable(E, Append To Array, Vector(-50.000, 1, 137.350));
  28.         Modify Global Variable(E, Append To Array, Vector(-7.000, 3, 75));
  29.         Modify Global Variable(E, Append To Array, Vector(-37.000, 6.500, 48));
  30.         Modify Global Variable(E, Append To Array, Vector(-55.000, 1.500, 141.500));
  31.         Modify Global Variable(E, Append To Array, Vector(-25.500, 7.500, 50.500));
  32.         Set Global Variable(F, Vector(2.500, 3.500, 75));
  33.         Set Global Variable(G, Empty Array);
  34.         Modify Global Variable(G, Append To Array, Vector(-29.000, -2.000, 56));
  35.     }
  36. }
  37.  
  38. rule("initialize player variables")
  39. {
  40.     event
  41.     {
  42.         Ongoing - Each Player;
  43.         Team 1;
  44.         All;
  45.     }
  46.  
  47.     actions
  48.     {
  49.         Set Player Variable(Event Player, A, 0);
  50.         Set Player Variable(Event Player, B, 1);
  51.         Set Damage Dealt(Event Player, Player Variable(Event Player, B));
  52.         Set Player Variable(Event Player, C, 1);
  53.         Set Player Variable(Event Player, D, 1);
  54.         Set Player Variable(Event Player, E, 2);
  55.         Set Player Variable(Event Player, F, 0);
  56.         Set Player Variable(Event Player, H, 15);
  57.         Set Player Variable(Event Player, I, 5);
  58.         Set Player Variable(Event Player, J, 1);
  59.         Set Player Variable(Event Player, K, 10);
  60.         Set Player Variable(Event Player, L, 0);
  61.         Set Player Variable(Event Player, M, False);
  62.         Set Player Variable(Event Player, N, 0);
  63.         Set Player Variable(Event Player, O, 0);
  64.         Set Player Variable(Event Player, P, 1000);
  65.         Set Player Variable(Event Player, Q, 25);
  66.         Set Player Variable(Event Player, R, 100);
  67.         Set Player Variable(Event Player, S, 1);
  68.     }
  69. }
  70.  
  71. rule("Initialize HUDs")
  72. {
  73.     event
  74.     {
  75.         Ongoing - Each Player;
  76.         Team 1;
  77.         All;
  78.     }
  79.  
  80.     actions
  81.     {
  82.         Create HUD Text(Event Player, String("{0}: {1}", String("Money", Null, Null, Null), Player Variable(Event Player, A), Null), Null,
  83.             Null, Top, 0, White, White, White, Visible To and String);
  84.         Create HUD Text(Event Player, Null, String("{0} / {1}", String("{0}: {1}", String("Damage", Null, Null, Null), String("{0}%",
  85.             Player Variable(Event Player, B), Null, Null), Null), String("{0}: {1}", String("Defend", Null, Null, Null), String("{0}%",
  86.             Player Variable(Event Player, R), Null, Null), Null), Null), Null, Top, 1, White, Red, White, Visible To and String);
  87.         Create HUD Text(Event Player, Null, String("{0} sec", Player Variable(Event Player, E), Null, Null), Null, Top, 2, White, Yellow,
  88.             White, Visible To and String);
  89.         Create HUD Text(Event Player, Null, String("{0} {1}", String("{0}%", Multiply(Player Variable(Event Player, J), 100), Null, Null),
  90.             String("Money", Null, Null, Null), Null), Null, Top, 3, White, Green, White, Visible To and String);
  91.         Create HUD Text(Event Player, Null, String("{0} {1} {2}", Player Variable(Event Player, N), String("Credits", Null, Null, Null),
  92.             String("({0})", String("{0} {1}", String("Boss", Null, Null, Null), String("{0}: {1}", String("Kills", Null, Null, Null),
  93.             Player Variable(Event Player, L), Null), Null), Null, Null)), Null, Top, 4, White, Purple, White, Visible To and String);
  94.         Create HUD Text(Event Player, String("{0}: {1}", String("Found", Null, Null, Null), Position Of(Event Player), Null), Null, Null,
  95.             Left, 0, White, White, White, Visible To and String);
  96.         Create HUD Text(Event Player, String("{0}: {1}", String("In View", Null, Null, Null), Horizontal Facing Angle Of(Event Player),
  97.             Null), Null, Null, Left, 0, White, White, White, Visible To and String);
  98.         Create HUD Text(Event Player, String("{0}: {1}", String("Rounds", Null, Null, Null), String("{0} - {1}", Player Variable(
  99.             Event Player, C), String("{0} sec", Player Variable(Event Player, E), Null, Null), Null), Null), Null, Null, Left, 0, White,
  100.             White, White, Visible To and String);
  101.         Create In-World Text(All Players(Team 1), String("{0} - {1} - {2}", String("{0}: {1}", String("Damage", Null, Null, Null), String(
  102.             "{0}%", Player Variable(Event Player, B), Null, Null), Null), String("{0} sec", Player Variable(Event Player, E), Null, Null),
  103.             String("{0} {1}", String("{0}%", Multiply(Player Variable(Event Player, J), 100), Null, Null), String("Money", Null, Null,
  104.             Null), Null)), Event Player, 0.750, Clip Against Surfaces, Visible To Position and String);
  105.     }
  106. }
  107.  
  108. rule("initialize portals/shop")
  109. {
  110.     event
  111.     {
  112.         Ongoing - Each Player;
  113.         Team 1;
  114.         All;
  115.     }
  116.  
  117.     actions
  118.     {
  119.         Create Effect(All Players(Team 1), Good Aura, Purple, Value In Array(Global Variable(E), 0), 1.500,
  120.             Visible To Position and Radius);
  121.         Create In-World Text(All Players(Team 1), String("Upgrades", Null, Null, Null), Add(Value In Array(Global Variable(E), 0), Vector(
  122.             0, 1, 0)), 1.500, Clip Against Surfaces, Visible To Position and String);
  123.         Create Effect(All Players(Team 1), Good Aura, Blue, Value In Array(Global Variable(E), 3), 1.500, Visible To Position and Radius);
  124.         Create In-World Text(All Players(Team 1), String("{0} {1} {2}", String("Next", Null, Null, Null), String("Boss", Null, Null, Null),
  125.             String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), 1000, Null), Null, Null)), Add(Value In Array(
  126.             Global Variable(E), 3), Vector(0, 1, 0)), 1.500, Clip Against Surfaces, Visible To Position and String);
  127.         Create Effect(All Players(Team 1), Good Aura, Red, Value In Array(Global Variable(E), 1), 1.500, Visible To Position and Radius);
  128.         Create In-World Text(All Players(Team 1), String("Backward", Null, Null, Null), Add(Value In Array(Global Variable(E), 1), Vector(
  129.             0, 1, 0)), 1.500, Clip Against Surfaces, Visible To Position and String);
  130.         Create Effect(All Players(Team 1), Sphere, Blue, Global Variable(F), 12, Visible To Position and Radius);
  131.         Create Effect(All Players(Team 1), Good Aura, Yellow, Value In Array(Global Variable(E), 2), 1.500,
  132.             Visible To Position and Radius);
  133.         Create In-World Text(All Players(Team 1), String("Upgrades", Null, Null, Null), Add(Value In Array(Global Variable(E), 2), Vector(
  134.             0, 1, 0)), 1.500, Clip Against Surfaces, Visible To Position and String);
  135.         Create Effect(All Players(Team 1), Light Shaft, Red, Value In Array(Global Variable(G), 0), 17, Visible To Position and Radius);
  136.         Create Icon(All Players(Team 1), Vector(-38.000, 1.250, 141.500), Arrow: Left, None, White, False);
  137.         Create In-World Text(All Players(Team 1), String("{0} {1}", String("Buy", Null, Null, Null), String("Upgrades", Null, Null, Null),
  138.             Null), Vector(-38.000, 1, 141.500), 1.500, Clip Against Surfaces, String);
  139.         Create Effect(All Players(Team 1), Good Aura, Blue, Value In Array(Global Variable(E), 4), 1.500, Visible To Position and Radius);
  140.         Create In-World Text(All Players(Team 1), String("{0} {1} {2}", String("Next", Null, Null, Null), String("Boss", Null, Null, Null),
  141.             String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), String("{0} {1}", 12, 500, Null), Null), Null, Null)),
  142.             Add(Value In Array(Global Variable(E), 4), Vector(0, 1, 0)), 1.500, Clip Against Surfaces, Visible To Position and String);
  143.         Create Effect(All Players(Team 1), Light Shaft, Red, Subtract(Value In Array(Global Variable(A), 2), Vector(0, 3, 0)), 8,
  144.             Visible To Position and Radius);
  145.     }
  146. }
  147.  
  148. rule("initialize upgrades")
  149. {
  150.     event
  151.     {
  152.         Ongoing - Each Player;
  153.         Team 1;
  154.         All;
  155.     }
  156.  
  157.     actions
  158.     {
  159.         Create Effect(All Players(Team 1), Orb, Purple, Subtract(Global Variable(F), Vector(0, 0.500, 8.500)), 3,
  160.             Visible To Position and Radius);
  161.         Create In-World Text(Event Player, String("{0} {1}", String("Upgrade", Null, Null, Null), String("{0} {1}", String("Faster", Null,
  162.             Null, Null), String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), Player Variable(Event Player, H), Null),
  163.             Null, Null), Null), Null), Subtract(Global Variable(F), Vector(0, 0, 8.500)), 1.500, Clip Against Surfaces,
  164.             Visible To Position and String);
  165.         Create Effect(All Players(Team 1), Orb, Red, Subtract(Global Variable(F), Vector(2.500, 0.500, 8.500)), 3,
  166.             Visible To Position and Radius);
  167.         Create In-World Text(Event Player, String("{0} {1}", String("Upgrade", Null, Null, Null), String("{0} {1}", String("Damage", Null,
  168.             Null, Null), String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), Player Variable(Event Player, I), Null),
  169.             Null, Null), Null), Null), Subtract(Global Variable(F), Vector(2.500, 0, 8.500)), 1.500, Clip Against Surfaces,
  170.             Visible To Position and String);
  171.         Create Effect(All Players(Team 1), Orb, Green, Subtract(Global Variable(F), Vector(-2.500, 0.500, 8.500)), 3,
  172.             Visible To Position and Radius);
  173.         Create In-World Text(Event Player, String("{0} {1}", String("Upgrade", Null, Null, Null), String("{0} {1}", String("Money", Null,
  174.             Null, Null), String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), Player Variable(Event Player, K), Null),
  175.             Null, Null), Null), Null), Subtract(Global Variable(F), Vector(-2.500, 0, 8.500)), 1.500, Clip Against Surfaces,
  176.             Visible To Position and String);
  177.         Create Effect(All Players(Team 1), Orb, Yellow, Subtract(Global Variable(F), Vector(5, 0.500, 6.500)), 3,
  178.             Visible To Position and Radius);
  179.         Create In-World Text(Event Player, String("{0} {1}", String("Upgrade", Null, Null, Null), String("{0} {1}", String("Healed", Null,
  180.             Null, Null), String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), Player Variable(Event Player, P), Null),
  181.             Null, Null), Null), Null), Subtract(Global Variable(F), Vector(5, 0, 6.500)), 1.500, Clip Against Surfaces,
  182.             Visible To Position and String);
  183.         Create Effect(All Players(Team 1), Orb, Blue, Subtract(Global Variable(F), Vector(-5.000, 0.500, 6.500)), 3,
  184.             Visible To Position and Radius);
  185.         Create In-World Text(Event Player, String("{0} {1}", String("Upgrade", Null, Null, Null), String("{0} {1}", String("Defend", Null,
  186.             Null, Null), String("({0})", String("{0}: {1}", String("Price", Null, Null, Null), Player Variable(Event Player, Q), Null),
  187.             Null, Null), Null), Null), Subtract(Global Variable(F), Vector(-5.000, 0, 6.500)), 1.500, Clip Against Surfaces,
  188.             Visible To Position and String);
  189.         Create In-World Text(All Players(All Teams), String("{0} {1} {2}", String("Buy", Null, Null, Null), String("Items", Null, Null,
  190.             Null), String("({0})", String("Rank F", Null, Null, Null), Null, Null)), Subtract(Global Variable(F), Vector(0, -0.500,
  191.             8.500)), 2.500, Clip Against Surfaces, Visible To Position and String);
  192.     }
  193. }
  194.  
  195. rule("initialize enemies")
  196. {
  197.     event
  198.     {
  199.         Ongoing - Each Player;
  200.         Team 2;
  201.         All;
  202.     }
  203.  
  204.     conditions
  205.     {
  206.         Is True For All(All Players(Team 2), Has Spawned(Current Array Element)) == True;
  207.         Number of Players(Team 2) == 6;
  208.     }
  209.  
  210.     actions
  211.     {
  212.         Start Forcing Throttle(Event Player, 0, 0, 0, 0, 0, 0);
  213.         Teleport(Event Player, Value In Array(Global Variable(B), Index Of Array Value(Global Variable(D), Hero Of(Event Player))));
  214.         Disallow Button(Event Player, Jump);
  215.         Disallow Button(Event Player, Crouch);
  216.         Create In-World Text(All Players(All Teams), String("{0}: {1}", String("Heal", Null, Null, Null), Value In Array(Global Variable(
  217.             C), Index Of Array Value(Global Variable(D), Hero Of(Event Player))), Null), Event Player, 1, Clip Against Surfaces,
  218.             Visible To Position and String);
  219.     }
  220. }
  221.  
  222. rule("teleport to first boss")
  223. {
  224.     event
  225.     {
  226.         Ongoing - Each Player;
  227.         Team 1;
  228.         All;
  229.     }
  230.  
  231.     conditions
  232.     {
  233.         Has Spawned(Event Player) == True;
  234.         True == True;
  235.     }
  236.  
  237.     actions
  238.     {
  239.         Set Max Health(Event Player, Player Variable(Event Player, S));
  240.         Teleport(Event Player, Value In Array(Global Variable(A), 0));
  241.     }
  242. }
  243.  
  244. rule("RESPAWN ENEMIES")
  245. {
  246.     event
  247.     {
  248.         Player Died;
  249.         Team 2;
  250.         All;
  251.     }
  252.  
  253.     actions
  254.     {
  255.         Respawn(Event Player);
  256.         Wait(0.250, Ignore Condition);
  257.         Teleport(Event Player, Value In Array(Global Variable(B), Index Of Array Value(Global Variable(D), Hero Of(Event Player))));
  258.     }
  259. }
  260.  
  261. rule("shooting control")
  262. {
  263.     event
  264.     {
  265.         Ongoing - Each Player;
  266.         Team 1;
  267.         All;
  268.     }
  269.  
  270.     conditions
  271.     {
  272.         Is Firing Primary(Event Player) == True;
  273.         Compare(Player Variable(Event Player, C), >, 0) == True;
  274.     }
  275.  
  276.     actions
  277.     {
  278.         Disallow Button(Event Player, Primary Fire);
  279.         Modify Player Variable(Event Player, C, Subtract, 1);
  280.         Skip If(Compare(Player Variable(Event Player, C), ==, 0), 1);
  281.         Allow Button(Event Player, Primary Fire);
  282.     }
  283. }
  284.  
  285. rule("Shooting reload")
  286. {
  287.     event
  288.     {
  289.         Ongoing - Each Player;
  290.         Team 1;
  291.         All;
  292.     }
  293.  
  294.     conditions
  295.     {
  296.         Player Variable(Event Player, C) < Player Variable(Event Player, D);
  297.     }
  298.  
  299.     actions
  300.     {
  301.         Wait(Player Variable(Event Player, E), Ignore Condition);
  302.         Modify Player Variable(Event Player, C, Add, 1);
  303.         Allow Button(Event Player, Primary Fire);
  304.     }
  305. }
  306.  
  307. rule("ADD COIN from boss")
  308. {
  309.     event
  310.     {
  311.         Player took damage;
  312.         Team 2;
  313.         All;
  314.     }
  315.  
  316.     actions
  317.     {
  318.         Set Player Variable(Attacker, Z, Max(Subtract(Value In Array(Global Variable(C), Index Of Array Value(Global Variable(D), Hero Of(
  319.             Event Player))), Health(Event Player)), 0));
  320.         Modify Player Variable(Attacker, A, Add, Round To Integer(Multiply(Player Variable(Attacker, J), Raise To Power(Player Variable(
  321.             Attacker, Z), Add(1, Divide(Player Variable(Attacker, L), 2)))), Up));
  322.         Set Global Variable At Index(C, Index Of Array Value(Global Variable(D), Hero Of(Event Player)), Health(Event Player));
  323.     }
  324. }
  325.  
  326. rule("boss death reward")
  327. {
  328.     event
  329.     {
  330.         Player Died;
  331.         Team 2;
  332.         All;
  333.     }
  334.  
  335.     actions
  336.     {
  337.         Set Player Variable(Attacker, L, Max(Player Variable(Attacker, L), Add(Index Of Array Value(Global Variable(D), Hero Of(
  338.             Event Player)), 1)));
  339.         Modify Player Variable(Attacker, A, Add, Raise To Power(100, Add(0.500, Divide(Player Variable(Event Player, L), 2))));
  340.         Skip If(Compare(Player Variable(Event Player, L), <, 5), 2);
  341.         Big Message(Event Player, String("{0} - {1}", String("{0} {1}", String("Start", Null, Null, Null), String("Over", Null, Null,
  342.             Null), Null), String("{0} {1} {2}", String("Buy", Null, Null, Null), String("More", Null, Null, Null), String("Heroes", Null,
  343.             Null, Null)), Null));
  344.         Set Player Variable(Event Player, M, True);
  345.     }
  346. }
  347.  
  348. rule("player death")
  349. {
  350.     event
  351.     {
  352.         Player Died;
  353.         Team 1;
  354.         All;
  355.     }
  356.  
  357.     actions
  358.     {
  359.         Respawn(Event Player);
  360.         Set Player Variable(Event Player, F, 6);
  361.         Wait(0.250, Ignore Condition);
  362.         Teleport(Event Player, Global Variable(F));
  363.     }
  364. }
  365.  
  366. rule("portal (BOss 1 >> SHOP)")
  367. {
  368.     event
  369.     {
  370.         Ongoing - Each Player;
  371.         Team 1;
  372.         All;
  373.     }
  374.  
  375.     conditions
  376.     {
  377.         Array Contains(Players Within Radius(Value In Array(Global Variable(E), 0), 1.500, Team 1, Surfaces), Event Player) == True;
  378.     }
  379.  
  380.     actions
  381.     {
  382.         Teleport(Event Player, Global Variable(F));
  383.         Set Player Variable(Event Player, F, 6);
  384.         Set Player Variable(Event Player, G, Value In Array(Global Variable(A), 0));
  385.     }
  386. }
  387.  
  388. rule("portal (BOss 1 >> boss 2)")
  389. {
  390.     event
  391.     {
  392.         Ongoing - Each Player;
  393.         Team 1;
  394.         All;
  395.     }
  396.  
  397.     conditions
  398.     {
  399.         Array Contains(Players Within Radius(Value In Array(Global Variable(E), 3), 2, Team 1, Surfaces), Event Player) == True;
  400.     }
  401.  
  402.     actions
  403.     {
  404.         Skip If(Compare(Player Variable(Event Player, L), >=, 1), 2);
  405.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Kill", Null, Null, Null), String("Boss",
  406.             Null, Null, Null)));
  407.         Abort;
  408.         Skip If(Compare(Player Variable(Event Player, A), >=, 1000), 2);
  409.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  410.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  411.         Abort;
  412.         Modify Player Variable(Event Player, A, Subtract, 1000);
  413.         Teleport(Event Player, Value In Array(Global Variable(A), 1));
  414.         Set Player Variable(Event Player, F, 1);
  415.         Set Player Variable(Event Player, G, Value In Array(Global Variable(A), 1));
  416.         Set Player Variable(Event Player, O, 1);
  417.     }
  418. }
  419.  
  420. rule("portal (BOss 2 >> SHOP)")
  421. {
  422.     event
  423.     {
  424.         Ongoing - Each Player;
  425.         Team 1;
  426.         All;
  427.     }
  428.  
  429.     conditions
  430.     {
  431.         Array Contains(Players Within Radius(Value In Array(Global Variable(E), 2), 1.500, Team 1, Surfaces), Event Player) == True;
  432.     }
  433.  
  434.     actions
  435.     {
  436.         Teleport(Event Player, Global Variable(F));
  437.         Set Player Variable(Event Player, F, 6);
  438.         Set Player Variable(Event Player, G, Value In Array(Global Variable(A), 1));
  439.     }
  440. }
  441.  
  442. rule("portal (BOss 2 >> boss 3)")
  443. {
  444.     event
  445.     {
  446.         Ongoing - Each Player;
  447.         Team 1;
  448.         All;
  449.     }
  450.  
  451.     conditions
  452.     {
  453.         Array Contains(Players Within Radius(Value In Array(Global Variable(E), 4), 2, Team 1, Surfaces), Event Player) == True;
  454.     }
  455.  
  456.     actions
  457.     {
  458.         Skip If(Compare(Player Variable(Event Player, L), >=, 2), 2);
  459.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Kill", Null, Null, Null), String("Boss",
  460.             Null, Null, Null)));
  461.         Abort;
  462.         Skip If(Compare(Player Variable(Event Player, A), >=, Add(10000, 2500)), 2);
  463.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  464.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  465.         Abort;
  466.         Modify Player Variable(Event Player, A, Subtract, Add(10000, 2500));
  467.         Teleport(Event Player, Value In Array(Global Variable(A), 2));
  468.         Set Player Variable(Event Player, F, 2);
  469.         Set Player Variable(Event Player, G, Value In Array(Global Variable(A), 2));
  470.         Set Player Variable(Event Player, O, 2);
  471.     }
  472. }
  473.  
  474. rule("POrtal (shop >> last_boss)")
  475. {
  476.     event
  477.     {
  478.         Ongoing - Each Player;
  479.         Team 1;
  480.         All;
  481.     }
  482.  
  483.     conditions
  484.     {
  485.         Array Contains(Players Within Radius(Value In Array(Global Variable(E), 1), 1.500, Team 1, Surfaces), Event Player) == True;
  486.     }
  487.  
  488.     actions
  489.     {
  490.         Set Player Variable(Event Player, F, Player Variable(Event Player, L));
  491.         Teleport(Event Player, Player Variable(Event Player, G));
  492.     }
  493. }
  494.  
  495. rule("shop border")
  496. {
  497.     event
  498.     {
  499.         Ongoing - Each Player;
  500.         Team 1;
  501.         All;
  502.     }
  503.  
  504.     conditions
  505.     {
  506.         Player Variable(Event Player, F) == 6;
  507.         Array Contains(Players Within Radius(Global Variable(F), 12, Team 1, Off), Event Player) == False;
  508.     }
  509.  
  510.     actions
  511.     {
  512.         Teleport(Event Player, Global Variable(F));
  513.     }
  514. }
  515.  
  516. rule("boss 2 border")
  517. {
  518.     event
  519.     {
  520.         Ongoing - Each Player;
  521.         Team 1;
  522.         All;
  523.     }
  524.  
  525.     conditions
  526.     {
  527.         And(Compare(Y Component Of(Position Of(Event Player)), >, 3.500), Array Contains(Players Within Radius(Value In Array(
  528.             Global Variable(G), 0), 17, Team 1, Off), Event Player)) == False;
  529.         Compare(Player Variable(Event Player, F), ==, 1) == True;
  530.         Compare(Player Variable(Event Player, O), ==, 1) == True;
  531.     }
  532.  
  533.     actions
  534.     {
  535.         Teleport(Event Player, Add(Value In Array(Global Variable(G), 0), Vector(0, 8, 0)));
  536.     }
  537. }
  538.  
  539. rule("boss 3 border")
  540. {
  541.     event
  542.     {
  543.         Ongoing - Each Player;
  544.         Team 1;
  545.         All;
  546.     }
  547.  
  548.     conditions
  549.     {
  550.         Compare(Player Variable(Event Player, F), ==, 2) == True;
  551.         Compare(Player Variable(Event Player, O), ==, 2) == True;
  552.         Array Contains(Players Within Radius(Value In Array(Global Variable(A), 2), 8, Team 1, Off), Event Player) == False;
  553.     }
  554.  
  555.     actions
  556.     {
  557.         Teleport(Event Player, Value In Array(Global Variable(A), 2));
  558.     }
  559. }
  560.  
  561. rule("buy reload speed")
  562. {
  563.     event
  564.     {
  565.         Ongoing - Each Player;
  566.         Team 1;
  567.         All;
  568.     }
  569.  
  570.     conditions
  571.     {
  572.         Array Contains(Players Within Radius(Subtract(Global Variable(F), Vector(0, 0.500, 8.500)), 2, Team 1, Off), Event Player) == True;
  573.         Is Button Held(Event Player, Interact) == True;
  574.     }
  575.  
  576.     actions
  577.     {
  578.         Skip If(Compare(Player Variable(Event Player, A), >=, Player Variable(Event Player, H)), 2);
  579.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  580.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  581.         Abort;
  582.         Modify Player Variable(Event Player, A, Subtract, Player Variable(Event Player, H));
  583.         Modify Player Variable(Event Player, E, Multiply, 0.900);
  584.         Set Player Variable(Event Player, H, Round To Integer(Raise To Power(Player Variable(Event Player, H), 1.060), Up));
  585.     }
  586. }
  587.  
  588. rule("buy damage")
  589. {
  590.     event
  591.     {
  592.         Ongoing - Each Player;
  593.         Team 1;
  594.         All;
  595.     }
  596.  
  597.     conditions
  598.     {
  599.         Array Contains(Players Within Radius(Subtract(Global Variable(F), Vector(2.500, 0.500, 8.500)), 2, Team 1, Off), Event Player)
  600.             == True;
  601.         Is Button Held(Event Player, Interact) == True;
  602.     }
  603.  
  604.     actions
  605.     {
  606.         Skip If(Compare(Player Variable(Event Player, A), >=, Player Variable(Event Player, I)), 2);
  607.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  608.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  609.         Abort;
  610.         Modify Player Variable(Event Player, A, Subtract, Player Variable(Event Player, I));
  611.         Skip If(Compare(Player Variable(Event Player, B), <, 75), 1);
  612.         Modify Player Variable(Event Player, B, Add, 2);
  613.         Skip If(Compare(Player Variable(Event Player, B), >=, 75), 1);
  614.         Modify Player Variable(Event Player, B, Add, 3);
  615.         Set Damage Dealt(Event Player, Player Variable(Event Player, B));
  616.         Set Player Variable(Event Player, I, Round To Integer(Raise To Power(Player Variable(Event Player, I), 1.010), Up));
  617.     }
  618. }
  619.  
  620. rule("buy money")
  621. {
  622.     event
  623.     {
  624.         Ongoing - Each Player;
  625.         Team 1;
  626.         All;
  627.     }
  628.  
  629.     conditions
  630.     {
  631.         Array Contains(Players Within Radius(Subtract(Global Variable(F), Vector(-2.500, 0.500, 8.500)), 2, Team 1, Off), Event Player)
  632.             == True;
  633.         Is Button Held(Event Player, Interact) == True;
  634.     }
  635.  
  636.     actions
  637.     {
  638.         Skip If(Compare(Player Variable(Event Player, A), >=, Player Variable(Event Player, K)), 2);
  639.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  640.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  641.         Abort;
  642.         Modify Player Variable(Event Player, A, Subtract, Player Variable(Event Player, K));
  643.         Modify Player Variable(Event Player, J, Add, 0.050);
  644.         Set Player Variable(Event Player, K, Round To Integer(Raise To Power(Player Variable(Event Player, K), 1.080), Up));
  645.     }
  646. }
  647.  
  648. rule("buy health")
  649. {
  650.     event
  651.     {
  652.         Ongoing - Each Player;
  653.         Team 1;
  654.         All;
  655.     }
  656.  
  657.     conditions
  658.     {
  659.         Array Contains(Players Within Radius(Subtract(Global Variable(F), Vector(5, 0.500, 6.500)), 2, Team 1, Off), Event Player) == True;
  660.         Is Button Held(Event Player, Interact) == True;
  661.     }
  662.  
  663.     actions
  664.     {
  665.         Skip If(Compare(Player Variable(Event Player, A), >=, Player Variable(Event Player, P)), 2);
  666.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  667.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  668.         Abort;
  669.         Modify Player Variable(Event Player, A, Subtract, Player Variable(Event Player, P));
  670.         Modify Player Variable(Event Player, S, Add, 1);
  671.         Set Max Health(Event Player, Player Variable(Event Player, S));
  672.         Set Player Variable(Event Player, P, Add(Player Variable(Event Player, P), 500));
  673.     }
  674. }
  675.  
  676. rule("buy damage resistance")
  677. {
  678.     event
  679.     {
  680.         Ongoing - Each Player;
  681.         Team 1;
  682.         All;
  683.     }
  684.  
  685.     conditions
  686.     {
  687.         Array Contains(Players Within Radius(Subtract(Global Variable(F), Vector(-5.000, 0.500, 6.500)), 2, Team 1, Off), Event Player)
  688.             == True;
  689.         Is Button Held(Event Player, Interact) == True;
  690.     }
  691.  
  692.     actions
  693.     {
  694.         Skip If(Compare(Player Variable(Event Player, A), >=, Player Variable(Event Player, Q)), 2);
  695.         Big Message(Event Player, String("{0} {1} {2}", String("Go", Null, Null, Null), String("Find", Null, Null, Null), String("{0} {1}",
  696.             String("More", Null, Null, Null), String("Money", Null, Null, Null), Null)));
  697.         Abort;
  698.         Modify Player Variable(Event Player, A, Subtract, Player Variable(Event Player, Q));
  699.         Set Player Variable(Event Player, R, Max(Subtract(Player Variable(Event Player, R), 1), 1));
  700.         Set Damage Received(Event Player, Player Variable(Event Player, R));
  701.         Set Player Variable(Event Player, Q, Round To Integer(Raise To Power(Player Variable(Event Player, Q), 1.040), Up));
  702.     }
  703. }
  704.  
  705. rule("play sound (Debug)")
  706. {
  707.     event
  708.     {
  709.         Ongoing - Each Player;
  710.         Team 1;
  711.         All;
  712.     }
  713.  
  714.     conditions
  715.     {
  716.         Is Communicating Any Voice line(Event Player) == True;
  717.     }
  718.  
  719.     actions
  720.     {
  721.         Set Player Variable(Event Player, L, 5);
  722.     }
  723. }
  724.  
  725. rule("magic money maker")
  726. {
  727.     event
  728.     {
  729.         Ongoing - Each Player;
  730.         Team 1;
  731.         All;
  732.     }
  733.  
  734.     conditions
  735.     {
  736.         Is Button Held(Event Player, Interact) == True;
  737.         Is Button Held(Event Player, Crouch) == True;
  738.         Is Firing Primary(Event Player) == True;
  739.         True == True;
  740.     }
  741.  
  742.     actions
  743.     {
  744.         Modify Player Variable(Event Player, A, Multiply, 10000);
  745.         Small Message(Event Player, String("{0} {1}", String("Hacked", Null, Null, Null), String("Money", Null, Null, Null), Null));
  746.     }
  747. }
  748.  
  749. rule("boss 3 movement")
  750. {
  751.     event
  752.     {
  753.         Ongoing - Each Player;
  754.         Team 2;
  755.         Mei;
  756.     }
  757.  
  758.     conditions
  759.     {
  760.         Is True For All(All Players(Team 2), Has Spawned(Current Array Element)) == True;
  761.         Number of Players(Team 2) == 6;
  762.     }
  763.  
  764.     actions
  765.     {
  766.         Wait(0.250, Ignore Condition);
  767.     }
  768. }
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