View difference between Paste ID: gL3Aktat and S1iH9ap1
SHOW: | | - or go back to the newest paste.
1-
--this is the worst code in the history of stepmania, just because there is no toboolean, nor cmd("") with string support or Command("","");
1+
2
	for c in string.gmatch(CallFunction(t1,t2), "(.-);") do
3-
	for c in string.gmatch(CallFunction(t1,t2), "(.-);*") do
3+
		b = {};
4-
		if not string.find(c, "#") then
4+
		b[1] = string.match(c, "(.-),");
5-
			b = string.match(c, "(w-),");
5+
		b[2] = string.match(c, ",(.-),");
6-
			b2 = string.match(c, "w-,(w-)");
6+
		
7-
			b3 = string.match(c, "w-,w-,(w-)"); 
7+
		if not b[2] then 
8-
			b4 = string.match(c, "w-,w-,w-,(w-)"); 
8+
			b[2] = string.match(c, ",(.+)");
9-
			b5 = string.match(c, "w-,w-,w-,w-,(w-)"); 
9+
10-
			
10+
		
11-
			if b == "accelerate" then --accelerate
11+
		b[3] = string.match(c, ",.-,(.-),");
12-
				self:accelerate(b2);
12+
		if not b[3] then 
13-
			elseif b == "addrotationx" then --addrotationx
13+
			b[3] = string.match(c, ",.-,(.+)");
14-
				self:addrotationx(b2);
14+
15-
			elseif b == "addrotationy" then  --addrotationy
15+
		
16-
				self:addrotationy(b2);
16+
		b[4] = string.match(c, ",.-,.-,(.-),");
17-
			elseif b == "addrotationz" then --addrotationz
17+
		if not b[4] then 
18-
				self:addrotationz(b2);
18+
			b[4] = string.match(c, ",.-,.-,(.+)");
19-
			elseif b == "addx" then  --addx
19+
20-
				self:addx(b2);
20+
		
21-
			elseif b == "addy" then --addy
21+
		b[5] = string.match(c, ",.-,.-,.-,(.+)")
22-
				self:addy(b2);
22+
		
23-
			elseif b == "addz" then --addz
23+
		v2 = 0;	
24-
				self:addz(b2);
24+
		for i=1,#b do
25-
			elseif b == "align" then --align
25+
			v = string.match(b[i], "(%w+)");
26-
				self:align(b2,b3);
26+
			if not v2 then v2 = 0; end;			
27-
			elseif b == "animate" then --animate
27+
			for c2 in string.gmatch(b[i], "%+(%w+)") do
28-
				self:animate(b2);
28+
				if c2 then
29-
			elseif b == "aux" then --aux
29+
					v2 = v2 + c2;
30-
				self:aux(b2);
30+
					b[i] = v + v2;
31-
			elseif b == "backfacecull" then --backfacecull
31+
				end;
32-
				self:backfacecull(b2);
32+
33-
			elseif b == "basealpha" then  --basealpha
33+
			for c2 in string.gmatch(b[i], "%-(%w+)") do
34-
				self:basealpha(b2);
34+
				if c2 then
35-
			elseif b == "baserotationx" then --baserotationx
35+
					v2 = v2 - c2;
36-
				self:baserotationx(b2);
36+
					b[i] = v - v2;
37-
			elseif b == "baserotationy" then --baserotationy
37+
				end;
38-
				self:baserotationy(b2);
38+
39-
			elseif b == "baserotationz" then --baserotationz
39+
		end;		
40-
				self:baserotationz(b2);
40+
		
41-
			elseif b == "basezoom" then --basezoom
41+
		if b[5] then
42-
				self:basezoom(b2);
42+
			self[b[1]](self,b[2],b[3],b[4],b[5]);
43-
			elseif b == "basezoomx" then --basezoomx
43+
		elseif b[4] then
44-
				self:basezoomx(b2);
44+
			self[b[1]](self,b[2],b[3],b[4]);
45-
			elseif b == "basezoomy" then --basezoomy
45+
		elseif b[3] then
46-
				self:basezoomy(b2);
46+
			self[b[1]](self,b[2],b[3]);
47-
			elseif b == "basezoomz" then --basezoomz
47+
		elseif b[2] then
48-
				self:basezoomz(b2);
48+
			self[b[1]](self,b[2]);
49-
			elseif b == "bezier" then --bezier
49+
		else
50-
				self:bezier();
50+
			self[b[1]](self);
51-
			elseif b == "blend" then --blend
51+
52-
				self:blend( BlendMode mode )
52+
53-
			elseif b == "bob" then --bob
53+