Advertisement
Jousway

HOLDS LOOOOOL

Feb 22nd, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.80 KB | None | 0 0
  1.     if string.find(sElement, "Hold") then
  2.         local t = Def.ActorFrame {};
  3.         if string.find(sElement, "Body") then
  4.             if string.find(sElement, "Active") then
  5.                 if Var "Button" == "Down" then
  6.                     t[#t+1] = LoadActor( "Down Hold Body Active" ) .. {
  7.                         InitCommand=cmd();
  8.                     };
  9.                 end
  10.                 if Var "Button" == "Up" then
  11.                     t[#t+1] = LoadActor( "Down Hold Body Active" ) .. {
  12.                         InitCommand=cmd(zoomy,-1);
  13.                     };
  14.                 end
  15.                 if Var "Button" == "Left" then
  16.                     t[#t+1] = LoadActor( "Left Hold Body active" ) .. {
  17.                         InitCommand=cmd();
  18.                     };
  19.                 end
  20.                 if Var "Button" == "Right" then
  21.                     t[#t+1] = LoadActor( "Left Hold Body active" ) .. {
  22.                         InitCommand=cmd(zoomx,-1);
  23.                     };
  24.                 end
  25.                 if Var "Button" == "UpLeft" then
  26.                     t[#t+1] = LoadActor( "UpLeft Hold Body Active" ) .. {
  27.                         InitCommand=cmd();
  28.                     };
  29.                 end
  30.                 if Var "Button" == "UpRight" then
  31.                     t[#t+1] = LoadActor( "UpLeft Hold Body Active" ) .. {
  32.                         InitCommand=cmd(zoomx,-1);
  33.                     };
  34.                 end
  35.             end
  36.             if string.find(sElement, "Inactive") then
  37.                 if Var "Button" == "Down" then
  38.                     t[#t+1] = LoadActor( "Down Hold Body Inactive" ) .. {
  39.                         InitCommand=cmd();
  40.                     };
  41.                 end
  42.                 if Var "Button" == "Up" then
  43.                     t[#t+1] = LoadActor( "Down Hold Body Inactive" ) .. {
  44.                         InitCommand=cmd(zoomy,-1);
  45.                     };
  46.                 end
  47.                 if Var "Button" == "Left" then
  48.                     t[#t+1] = LoadActor( "Left Hold Body Inactive" ) .. {
  49.                         InitCommand=cmd();
  50.                     };
  51.                 end
  52.                 if Var "Button" == "Right" then
  53.                     t[#t+1] = LoadActor( "Left Hold Body Inactive" ) .. {
  54.                         InitCommand=cmd(zoomx,-1);
  55.                     };
  56.                 end
  57.                 if Var "Button" == "UpLeft" then
  58.                     t[#t+1] = LoadActor( "UpLeft Hold Body Inactive" ) .. {
  59.                         InitCommand=cmd();
  60.                     };
  61.                 end
  62.                 if Var "Button" == "UpRight" then
  63.                     t[#t+1] = LoadActor( "UpLeft Hold Body Inactive" ) .. {
  64.                         InitCommand=cmd(zoomx,-1);
  65.                     };
  66.                 end
  67.             end
  68.         end
  69.         if string.find(sElement, "Bottomcap") then
  70.             if string.find(sElement, "Active") then
  71.                 if Var "Button" == "Down" then
  72.                     t[#t+1] = LoadActor( "Down Hold BottomCap Active" ) .. {
  73.                         InitCommand=cmd();
  74.                     };
  75.                 end
  76.                 if Var "Button" == "Up" then
  77.                     t[#t+1] = LoadActor( "Up Hold BottomCap Active" ) .. {
  78.                         InitCommand=cmd();
  79.                     };
  80.                 end
  81.                 if Var "Button" == "Left" then
  82.                     t[#t+1] = LoadActor( "Left Hold BottomCap active" ) .. {
  83.                         InitCommand=cmd();
  84.                     };
  85.                 end
  86.                 if Var "Button" == "Right" then
  87.                     t[#t+1] = LoadActor( "Left Hold BottomCap active" ) .. {
  88.                         InitCommand=cmd(zoomx,-1);
  89.                     };
  90.                 end
  91.                 if Var "Button" == "UpLeft" then
  92.                     t[#t+1] = LoadActor( "UpLeft Hold BottomCap Active" ) .. {
  93.                         InitCommand=cmd();
  94.                     };
  95.                 end
  96.                 if Var "Button" == "UpRight" then
  97.                     t[#t+1] = LoadActor( "UpLeft Hold BottomCap Active" ) .. {
  98.                         InitCommand=cmd(zoomx,-1);
  99.                     };
  100.                 end
  101.             end
  102.             if string.find(sElement, "Inactive") then
  103.                 if Var "Button" == "Down" then
  104.                     t[#t+1] = LoadActor( "Down Hold BottomCap Inactive" ) .. {
  105.                         InitCommand=cmd();
  106.                     };
  107.                 end
  108.                 if Var "Button" == "Up" then
  109.                     t[#t+1] = LoadActor( "Up Hold BottomCap Inactive" ) .. {
  110.                         InitCommand=cmd(zoomy,-1);
  111.                     };
  112.                 end
  113.                 if Var "Button" == "Left" then
  114.                     t[#t+1] = LoadActor( "Left Hold Body Inactive" ) .. {
  115.                         InitCommand=cmd();
  116.                     };
  117.                 end
  118.                 if Var "Button" == "Right" then
  119.                     t[#t+1] = LoadActor( "Left Hold Body Inactive" ) .. {
  120.                         InitCommand=cmd(zoomx,-1);
  121.                     };
  122.                 end
  123.                 if Var "Button" == "UpLeft" then
  124.                     t[#t+1] = LoadActor( "UpLeft Hold Body Inactive" ) .. {
  125.                         InitCommand=cmd();
  126.                     };
  127.                 end
  128.                 if Var "Button" == "UpRight" then
  129.                     t[#t+1] = LoadActor( "UpLeft Hold Body Inactive" ) .. {
  130.                         InitCommand=cmd(zoomx,-1);
  131.                     };
  132.                 end
  133.             end
  134.         end
  135.         return t;
  136.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement