脚本应用实例参考= =b
我写脚本不爱打注释.还请见谅正则表达式我也才学没多久.所以提取的肯定不完全
只是针对的rpg.blue域名下的范例和图片
还有一天.还没有保存老主站的自己抓紧时间(这句话是对附件说的)
1.…………file = File.open("66RPG_COM.htm", "w")t1 =0 for it in item if temp.include?(it) == false and it != nil and it != "" temp.push(it) end end end end @list = temp @fanlis.concat(temp) Graphics.update }end def makeexe Dir.chdir(@old) save_data(@list, "exelist.rxdata") file = File.open("66RPG_COM_FILE.htm", "w") t1 =0 for it in item if temp.include?(it) == false and it != nil and it != "" temp.push(it) end end end end @list = temp.clone @fanlis.concat(temp.clone) Graphics.update }end def makepic Dir.chdir(@old) save_data(@list, "piclist.rxdata") file = File.open("66RPG_COM_PIC.htm", "w") t1 =0 for i in 0...@pic.size temp.push("picture/" + File.basename(@pic)) end end if temp.size > 0 flag = false for item in temp if exist?(item) flag = true break end end if flag Dir.mkdir(File.basename(filename, ".*") + "/") for item in temp if exist?(item) newname = sprintf("%s/%s", File.basename(filename, ".*"), File.basename(item)) File.rename(item, newname) end end File.rename(filename, File.basename(filename, ".*") + "/" + filename) end end end endendendHzhj.startp "ok"exit复制代码
本帖来自P1论坛作者后知后觉,因Project1站服务器在国外有时候访问缓慢不方便作者交流学习,经联系P1站长fux2同意署名转载一起分享游戏制作经验,共同为国内独立游戏作者共同创造良好交流环境,原文地址:https://rpg.blue/forum.php?mod=viewthread&tid=138688若有侵权,发帖作者可联系底部站长QQ在线咨询功能删除,谢谢。
页:
[1]