@指定時間毎に効果 kerokero9696 --track0:カウント,0.01,1000,1.50,0.01 --track1:Eケイゾク,0.01,1000,0.50,0.01 --check0:Info,1 --dialog:1フレーム無効/chk,chk1=0;seed,sd=os.time(); ------------------------------------set t0=obj.track0 t1=obj.track1 sw=obj.screen_w sh=obj.screen_h count2=math.floor(obj.time%t0*100)/100--指定値秒ごとに0 --------------------------------------- if(t0<=t1)then t1=t0/obj.rand(1,10,sd,obj.frame) end if(chk1==1)then if((obj.frame~=(0 or 1)) and count2==0 )then flug=true time1=os.clock() end else if(count2==0)then flug=true time1=os.clock() end end if(flug==true)then obj.effect() time2=os.clock() dt=math.floor((time2-time1)*100)/100 if(dt>=t1)then flug=false end end obj.draw() ------------------------------------ if(obj.check0)then info1,info2=math.modf(count2) info3,info4=math.modf(dt) info="カウント:"..string.format("%02d",info1).."."..string.format("%02d",info2*100).." Eケイゾク:"..string.format("%02d",info3).."."..string.format("%02d",info4*100) --ここに表示したい開発時の値を入力 fs=24 obj.setfont("しねきゃぷしょん",fs,3,0x000000,0xffffff) obj.load("text",info) dx=0 dy=sh/2-fs obj.draw(dx,dy) end @指定値の範囲内で効果 kerokero9696 --track0:MODE,1,12,1,1 --track1:Eケイゾク,0.01,1000,0.50,0.01 --track2:Min,-9999,9999,25,1 --track3:Max,-9999,9999,75,1 --check0:Info,1 ------------------------------------set mode=math.floor(obj.track0) t1=obj.track1 t2=math.floor(obj.track2) t3=math.floor(obj.track3) sw=obj.screen_w sh=obj.screen_h --------------------------------------- if(mode==1)then cndtn=obj.getvalue("x") elseif(mode==2)then cndtn=obj.getvalue("y") elseif(mode==3)then cndtn=obj.getvalue("z") elseif(mode==4)then cndtn=obj.getvalue("zoom")/100 elseif(mode==5)then cndtn=obj.getvalue("alpha") elseif(mode==6)then cndtn=obj.getvalue("rx")%360 elseif(mode==7)then cndtn=obj.getvalue("ry")%360 elseif(mode==8)then cndtn=obj.getvalue("rz")%360 elseif(mode==9)then cndtn=obj.cx elseif(mode==10)then cndtn=obj.cy elseif(mode==11)then cndtn=obj.cz elseif(mode==12)then cndtn=obj.getvalue("aspect") end if(mode == 4)then t2=t2/100 t3=t3/100 elseif(mode == 5)then t2=t2/100 t3=t3/100 elseif(mode == 12)then t2=t2/100 t3=t3/100 else t2=t2 t3=t3 end if((t2 <= cndtn) and (cndtn <= t3))then flug=true time1=os.clock() end if(flug==true)then obj.effect() time2=os.clock() dt=math.floor((time2-time1)*100)/100 if(dt>=t1)then flug=false end end obj.draw() ------------------------------------ if(obj.check0)then info1,info2=math.modf(cndtn) info3,info4=math.modf(dt) info=" Condition:"..string.format("%02d",info1).."."..string.format("%02d",math.abs(info2*100)).." Min:"..t2.." Max:"..t3.." Eケイゾク:"..string.format("%02d",info3).."."..string.format("%02d",info4*100) --ここに表示したい開発時の値を入力 fs=24 obj.setfont("しねきゃぷしょん",fs,3,0x000000,0xffffff) obj.load("text",info) dx=-obj.getvalue("x") dy=sh/2-fs-obj.getvalue("y") obj.rz=0 obj.draw(dx,dy) end @指定値の範囲外で効果 kerokero9696 --track0:MODE,1,12,1,1 --track1:Eケイゾク,0.01,1000,0.50,0.01 --track2:Min,-9999,9999,25,1 --track3:Max,-9999,9999,75,1 --check0:Info,1 ------------------------------------set mode=math.floor(obj.track0) t1=obj.track1 t2=math.floor(obj.track2) t3=math.floor(obj.track3) sw=obj.screen_w sh=obj.screen_h --------------------------------------- if(mode==1)then cndtn=obj.getvalue("x") elseif(mode==2)then cndtn=obj.getvalue("y") elseif(mode==3)then cndtn=obj.getvalue("z") elseif(mode==4)then cndtn=obj.getvalue("zoom")/100 elseif(mode==5)then cndtn=obj.getvalue("alpha") elseif(mode==6)then cndtn=obj.getvalue("rx")%360 elseif(mode==7)then cndtn=obj.getvalue("ry")%360 elseif(mode==8)then cndtn=obj.getvalue("rz")%360 elseif(mode==9)then cndtn=obj.cx elseif(mode==10)then cndtn=obj.cy elseif(mode==11)then cndtn=obj.cz elseif(mode==12)then cndtn=obj.getvalue("aspect") end if(mode == 4)then t2=t2/100 t3=t3/100 elseif(mode == 5)then t2=t2/100 t3=t3/100 elseif(mode == 12)then t2=t2/100 t3=t3/100 else t2=t2 t3=t3 end if((t2 >= cndtn) or (cndtn >= t3))then flug=true time1=os.clock() end if(flug==true)then obj.effect() time2=os.clock() dt=math.floor((time2-time1)*100)/100 if(dt>=t1)then flug=false end end obj.draw() ------------------------------------ if(obj.check0)then info1,info2=math.modf(cndtn) info3,info4=math.modf(dt) info=" Condition:"..string.format("%02d",info1).."."..string.format("%02d",math.abs(info2*100)).." Min:"..t2.." Max:"..t3.." Eケイゾク:"..string.format("%02d",info3).."."..string.format("%02d",info4*100) --ここに表示したい開発時の値を入力 fs=24 obj.setfont("しねきゃぷしょん",fs,3,0x000000,0xffffff) obj.load("text",info) dx=-obj.getvalue("x") dy=sh/2-fs-obj.getvalue("y") dz=-obj.getvalue("z") obj.rx=0 obj.ry=0 obj.rz=0 obj.draw(dx,dy,dz) end ------------------------------------------ --MODE:12 アスペクト比は拡張描画でのみ有効。 ------------------------------------------ --[[http://madeinpc.blog50.fc2.com/]]--