Title = "零魔2OP";
Author = "small";
Type = "单效果";
Introduction = "零魔2OP";
function Initialization() {
}
function RunCode() {
pa = $get.pos();
a = $get.absok();
b = $get.Time();
c = $get.ok();
ST = a;
ET = a + c;
aalong = $get.textwidth();
for(kai=0;kai<c;kai+=150){
for(i=0;i<3;i++){
$set.startTime = ST+kai;
$set.endTime = ST+kai + 400 - b;
zhuan = randRange(1,189);
chang = randRange(30,50);
zui=[];
zui[0]=pa[0]+Math.cos(zhuan * Math.PI/180)*chang;
zui[1]=pa[1]-Math.sin(zhuan * Math.PI/180)*chang;
movezui = [];
movezui.push(pa[0]);
movezui.push(pa[1]);
movezui.push(Math.round(zui[0]));
movezui.push(Math.round(zui[1]));
$set.layer = 1;
addline("{\\an2\\bord0\\fs18\\move("+movezui+")}");
for(ww=0;ww<5;ww++){
zhuan2 = randRange(1,360);
chang2 = randRange(30,50);
zui2=[];
zui2[0]=zui[0]+Math.cos(zhuan2 * Math.PI/180)*chang2;
zui2[1]=zui[1]-Math.sin(zhuan2 * Math.PI/180)*chang2;
movezui2=[];
movezui2.push(Math.round(zui[0]));
movezui2.push(Math.round(zui[1]));
movezui2.push(Math.round(zui2[0]));
movezui2.push(Math.round(zui2[1]));
$set.startTime = ST+kai+ 400;
$set.endTime = ST+kai + 800 - b;
$set.layer = 1;
addline("{\\an2\\bord0\\fs8\\fad(0,200)\\move("+movezui2+")}");
}
}
$set.startTime = ST+kai;
$set.endTime = ST+kai + 400 - b;
$set.layer = 2;
addline("{\\an2\\1a&HFF\\t(,\\fs50\\3aHFF)\\pos("+pa+")}");
$set.startTime = ST+kai;
$set.endTime = ST+kai + 400 - b;
movezui3=[];
movezui3.push(pa[0]);
movezui3.push(pa[1]);
movezui3.push(pa[0]);
movezui3.push(pa[1]+20);
$set.layer = 2;
addline("{\\an2\\3a&HFF\\t(,\\1aHFF)\\move("+movezui3+")}");
}
$set.startTime = ST;
$set.endTime = ST - b;
}
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
function DataSave() {
S_data = {};
return S_data;
}
function DataLoad(S_data) {
}
Title = "零魔2ED";
Author = "small";
Type = "单效果";
Introduction = "零魔2ED";
function Initialization() {
}
function RunCode() {
pa = $get.pos();
a = $get.absok();
b = $get.Time();
c = $get.ok();
ST = a;
ET = a + c;
aalong = $get.textwidth();
shiduan = c/10;
for(kai=0;kai<10;kai++){
$set.startTime = ST+kai*shiduan;
$set.endTime = ST+kai*shiduan + 400 - b;
poszui=[];
poszui.push((10-kai)*10+pa[0]);
poszui.push(pa[1]);
addline("{\\an2\\1a&HFF\\3c&HFFFFFF\\t(,\\fs34\\bord3\\3a&HFF)\\pos("+poszui+")}");
}
$set.startTime = ST;
$set.endTime = ST - b;
}
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
function DataSave() {
S_data = {};
return S_data;
}
function DataLoad(S_data) {
}
Title = "SD翅膀";
Author = "small";
Type = "单效果";
Introduction = "SD翅膀";
function Initialization() {
astart = toMs($get.startTime());
}
function RunCode() {
pa = $get.pos();
a = $get.absok();
b = $get.Time();
c = $get.ok();
ST = a;
ET = a + c;
noa = $get.runNo();
zong = $get.textLength();
aalong = $get.textwidth();
aahigh = $get.textheight();
qi=[];
qi[0]=Math.round(pa[0] - aalong/2);
seqi = -1;
for(i=0;i<c;i=i+300){
for(kkk=0;kkk<3;kkk++){
piana = randRange(-10,10);
pianb = randRange(-5,5);
pianc = randRange(-50,50);
piand = randRange(40,60);
movezui=[];
movezui.push(qi[0]+piana);
movezui.push(pa[1]+pianb);
movezui.push(qi[0]+pianc);
movezui.push(pa[1]+piand);
heyi = randRange(0,3);
shipian = randRange(500,1000);
frzzhuan = randRange(0,359);
frzzhuan11 = randRange(-180,180);
zhuanhou = frzzhuan + frzzhuan11;
$set.layer = 2;
if(heyi == 0)$set.Text = "{\\p1}m -14 -8 l -11 -5 -12 -5 -12 -4 -12 -4 -11 -4 -12 -4 -12 -3 -11 -3 -12 -3 -12 -2 -11 -2 -11 -2 -11 -1 -11 -2 -11 -1 -11 -1 b -10 -1 -10 -1 -9 -2 l -9 -1 -9 -1 -9 -1 b -8 0 -7 -1 -7 -1 -7 -1 -6 -1 -6 -1 -7 -1 -7 -1 -7 0 -5 6 18 10 24 3 25 1 13 3 9 2 5 1 -3 -3 -5 -2 -5 -2 -5 -3 -4 -3 -5 -3 -5 -3 -5 -4 -6 -4 -6 -4 -6 -4 -6 -4 -6 -4 -6 -5 -6 -5 -6 -5 -7 -5 -7 -5 -7 -5 -8 -5 -8 -5 -9 -5 -9 -5 -10 -5 -10 -5 -10 -6 l -13 -9 b -15 -11 -15 -10 -14 -8 c{\\p0}";
if(heyi == 1)$set.Text = "{\\p1}m -10 8 l -7 3 b -6 4 -4 5 -2 4 -1 3 1 4 0 1 4 1 20 5 19 19 23 10 17 -5 0 -3 -1 -2 -2 -2 -3 -3 -4 -1 -8 -2 -8 1 l -12 8 c{\\p0}";
if(heyi == 2)$set.Text = "{\\p1}m 12 -15 b 12 -12 11 -10 9 -7 9 -6 9 -5 9 -4 11 -5 11 -3 8 -3 l 9 -2 6 -1 5 0 3 -2 b -3 12 -20 11 -25 6 -26 5 -25 3 -23 3 -20 3 -9 5 2 -3 l -1 -4 b -1 -6 1 -6 2 -6 2 -7 1 -8 1 -9 2 -9 4 -8 5 -8 4 -10 4 -12 5 -11 6 -11 6 -9 7 -8 9 -10 10 -13 10 -16 c{\\p0}";
if(heyi == 3)$set.Text = "{\\p1}m -2 14 b -3 13 -3 11 -3 10 l -2 10 -2 9 -1 9 -1 8 -1 7 0 7 0 6 0 6 0 5 -1 5 b 5 -7 17 -11 15 -15 11 -19 -4 -5 -3 4 l -4 4 -5 5 -6 5 -5 6 -6 6 -6 6 -6 7 -5 8 -6 8 -6 9 -6 11 -5 10 b -4 12 -4 14 -3 15 c{\\p0}";
$set.startTime = ST+i;
$set.endTime = ST+i + shipian - b;
addline("{\\an7\\fad(0,500)\\bord0\\1c&HFFFFFF\\frz"+frzzhuan+"\\t(,\\frz"+zhuanhou+")\\move("+movezui+")}");
}
poswei1=[];
poswei1[0]=qi[0];
poswei1[1]=pa[1];
$set.startTime = ST+i;
if(i + 300 > c)
$set.endTime = ST + c - b;
else
$set.endTime = ST + i + 300 - b;
if(seqi == -1){addline("{\\an5\\bord0\\1c&HFCF2BC\\pos("+poswei1+")}");}
if(seqi == 1){addline("{\\an5\\bord0\\1c&HEBAD6D\\pos("+poswei1+")}");}
seqi=-1*seqi;
}
for(i=0;i<c;i=i+100){
poswei=[];
poswei[0]=qi[0];
poswei[1]=pa[1];
$set.startTime = ST+i;
$set.endTime = ST+i + 300 - b;
addline("{\\an5\\fad(0,300)\\1a&HFF\\t(,\\fscx200\\fscy200)\\pos("+poswei+")}");
}
$set.startTime = ST;
$set.endTime = ST-b;
}
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
function DataSave() {
S_data = {};
return S_data;
}
function DataLoad(S_data) {
}
欢迎光临 TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua (http://tcax.org/) | Powered by Discuz! X2 |