import parseHelper.RuleType as rt RULES = rt.NormalRule({ "问题": { "to": "key", "type": lt.LuaStr }, "题目": { "to": "title", "type": lt.LuaBlockStr }, "选项1": { "to": "question1", "type": lt.LuaBlockStr }, "选项2": { "to": "question2", "type": lt.LuaBlockStr }, "选项3": { "to": "question3", "type": lt.LuaBlockStr }, "选项4": { "to": "question4", "type": lt.LuaBlockStr }, "答案": { "to": "answer", "type": lt.LuaInt }, })
import sys import os sys.path.append(os.path.dirname(__file__) + '/' + '..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULES = rt.NormalRule({ "版本": { "to": "version", "type": lt.LuaStr }, "内容": { "to": "context", "type": lt.LuaBlockStr }, }) BUILD=\ [ #构造任务 { #构造目标 "target" : "updateLog", #源文件 "source": ["G更新日志.xlsx"], #sheet对应的构造规则 "sheet": [ ("main" , RULES), ] }
import sys import os sys.path.append(os.path.dirname(__file__) + '/' + '..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULES = rt.NormalRule({ "KEY": { "to": "key", "type": lt.LuaStr }, "VALUE": { "to": "value", "type": lt.LuaBlockStr }, }) BUILD=\ [ #构造任务 { #构造目标 "target" : "resource", #源文件 "source": ["Z资源.xlsx"], #sheet对应的构造规则 "sheet": [ ("scene" , RULES), ("music" , RULES), ("buff" , RULES), ("head" , RULES),
import sys import os sys.path.append(os.path.dirname(__file__) + '/' + '..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULES_NAME = rt.NormalRule({ "商店名": { "to": "name", "type": lt.LuaStr }, "背景图": { "to": "pic", "type": lt.LuaStr }, "音乐": { "to": "music", "type": lt.LuaStr }, }) RULES_ITEM = rt.NormalRule({ "商店名": { "to": "belongShop", "type": lt.LuaStr }, "描述": { "to": "desc", "type": lt.LuaStr }, "商店物品ID": {
import sys import os sys.path.append(os.path.dirname(__file__)+'/'+'..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULES=rt.NormalRule({ "KEY" :{"to" : "selectKey" , "type" : lt.LuaStr }, "头像路径" :{"to" : "picPath" , "type" : lt.LuaStr }, }) BUILD=\ [ #构造任务 { #构造目标 "target" : "headSelect", #源文件 "source": ["T头像选择.xlsx"], #sheet对应的构造规则 "sheet": [ ("main" , RULES), ] } ]
RULES = rt.NormalRule({ "战斗名": { "to": "key", "type": lt.LuaStr }, "战斗场景图": { "to": "mapkey", "type": lt.LuaStr }, "音乐": { "to": "music", "type": lt.LuaStr }, "必须上场": { "to": "must", "type": lt.LuaStr }, "我方": { "to": "our_roles", "type": lt.LuaParseStr, "split": "\n.", "rule": { 0: { "to": "index", "type": lt.LuaInt }, 1: { "to": "key", "type": lt.LuaStr }, 2: { "to": "x", "type": lt.LuaInt }, 3: { "to": "y", "type": lt.LuaInt }, 4: { "to": "face", "type": lt.LuaInt }, } }, "敌方": { "to": "your_roles", "type": lt.LuaParseStr, "split": "\n.", "rule": { 0: { "to": "key", "type": lt.LuaStr }, 1: { "to": "x", "type": lt.LuaInt }, 2: { "to": "y", "type": lt.LuaInt }, 3: { "to": "face", "type": lt.LuaInt }, } }, "随机": { "to": "random_roles", "type": lt.LuaParseStr, "split": "\n.", "rule": { 0: { "to": "x", "type": lt.LuaInt }, 1: { "to": "y", "type": lt.LuaInt }, 2: { "to": "face", "type": lt.LuaInt }, 3: { "to": "level", "type": lt.LuaInt }, 4: { "to": "name", "type": lt.LuaStr }, 5: { "to": "animation", "type": lt.LuaStr }, 6: { "to": "boss", "type": lt.LuaBool }, } }, "掉落": { "to": "drops", "type": lt.LuaParseStr, "split": "\n.", "rule": { 0: { "to": "key", "type": lt.LuaStr }, 1: { "to": "from", "type": lt.LuaInt }, 2: { "to": "to", "type": lt.LuaInt }, 3: { "to": "prob", "type": lt.LuaInt } } } })
RULES = rt.NormalRule({ "名称": { "to": "name", "type": lt.LuaStr }, "增加伤害": { "to": "addPower", "type": lt.LuaDouble }, "起始招式": { "to": "start", "type": lt.LuaStr }, "等级": { "to": "level", "type": lt.LuaInt }, "发动概率": { "to": "probability", "type": lt.LuaDouble }, "BUFF": { "to": "buff", "type": lt.LuaStr }, "动画": { "to": "animation", "type": lt.LuaStr }, "extend1": rt.ExtendRule( 1, 5, "condition", "条件[index]类型", "条件[index]等级", { "条件[index]类型": { "to": "type", "type": lt.LuaStr }, "条件[index]值": { "to": "value", "type": lt.LuaStr }, "条件[index]等级": { "to": "level", "type": lt.LuaInt }, }) })
RULES = rt.NormalRule({ "名称": { "to": "name", "type": lt.LuaStr }, "信息": { "to": "info", "type": lt.LuaStr }, "阴": { "to": "yin", "type": lt.LuaDouble }, "阳": { "to": "yang", "type": lt.LuaDouble }, "攻击加成": { "to": "attack", "type": lt.LuaDouble }, "暴击概率加成": { "to": "critical", "type": lt.LuaDouble }, "防御加成": { "to": "defence", "type": lt.LuaDouble }, "难度系数": { "to": "hard", "type": lt.LuaDouble }, "图标": { "to": "icon", "type": lt.LuaStr }, "extend1": rt.ExtendRule( 1, 8, "trigger", "解锁[index]属性", "解锁[index]等级", { "解锁[index]属性": { "to": "name", "type": lt.LuaStr }, "解锁[index]值": { "to": "argvs", "type": lt.LuaStr }, "解锁[index]等级": { "to": "lv", "type": lt.LuaInt }, }) })
import sys import os sys.path.append(os.path.dirname(__file__)+'/'+'..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULE_MAP=rt.NormalRule({ "地图ID" :{"to" : "id" , "type" : lt.LuaInt }, "地图名" :{"to" : "name" , "type" : lt.LuaStr }, "背景图" :{"to" : "pic" , "type" : lt.LuaStr }, "描述" :{"to" : "desc" , "type" : lt.LuaBlockStr }, "音效" :{"to" : "musicEffect" , "type" : lt.LuaStr }, "音乐列表" :{"to" : "musics" , "type" : lt.LuaStr }, }) RULE_MAP_EVENT=rt.NormalRule({ "所属地图" :{"to" : "belongMap" , "type" : lt.LuaStr }, "名称" :{"to" : "name" , "type" : lt.LuaStr }, "X" :{"to" : "x" , "type" : lt.LuaInt }, "Y" :{"to" : "y" , "type" : lt.LuaInt }, "缩略图" :{"to" : "pic" , "type" : lt.LuaStr }, "描述" :{"to" : "description" , "type" : lt.LuaStr }, "extend1":rt.ExtendRule(1,20,"event","事件[index]类型","事件[index]条件",{ "事件[index]类型": {"to" : "type" ,"type" : lt.LuaStr}, "事件[index]值": {"to" : "value" ,"type" : lt.LuaStr}, "事件[index]缩略图": {"to" : "image" ,"type" : lt.LuaStr}, "事件[index]描述": {"to" : "description" ,"type" : lt.LuaStr}, "事件[index]不能重复": {"to" : "repeatTimes" ,"type" : lt.LuaIntOrStr}, "事件[index]概率": {"to" : "probability" ,"type" : lt.LuaInt}, "事件[index]条件": {"to" : "condition" ,"type" : lt.LuaParseStr ,"split" : "\n:", "rule" :{
import os sys.path.append(os.path.dirname(__file__)+'/'+'..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULES=rt.NormalRule({ "物品名" :{"to" : "name" , "type" : lt.LuaStr }, "描述" :{"to" : "desc" , "type" : lt.LuaBlockStr }, "图片" :{"to" : "pic" , "type" : lt.LuaStr }, "类型" :{"to" : "type" , "type" : lt.LuaInt }, "物品等级" :{"to" : "level" , "type" : lt.LuaInt }, "贩卖价格" :{"to" : "price" , "type" : lt.LuaInt }, "是否掉落" :{"to" : "drop" , "type" : lt.LuaBool }, "投掷范围" :{"to" : "castSize" , "type" : lt.LuaInt }, "覆盖范围" :{"to" : "coverSize" , "type" : lt.LuaInt }, "冷却" :{"to" : "cd" , "type" : lt.LuaInt }, "天赋" :{"to" : "talent" , "type" : lt.LuaStr }, "extend1":rt.ExtendRule(1,4,"trigger","效果ID[index]","效果值[index]",{ "效果ID[index]": {"to" : "name" ,"type" : lt.LuaStr}, "效果值[index]": {"to" : "argvs" ,"type" : lt.LuaStr}, }), "extend2":rt.ExtendRule(1,4,"need","需求ID[index]","需求值[index]",{ "需求ID[index]": {"to" : "name" ,"type" : lt.LuaStr}, "需求值[index]": {"to" : "argvs" ,"type" : lt.LuaStr}, }), }) BUILD=\ [ #构造任务 {
import os sys.path.append(os.path.dirname(__file__)+'/'+'..') import parseHelper.LuaType as lt import parseHelper.RuleType as rt RULES=rt.NormalRule({ "剧本名" :{"to" : "name" , "type" : lt.LuaStr }, "内容" : {"to" : "action" ,"type" : lt.LuaParseStr ,"split" : "\n*", "rule" :{ 0 : {"to" : "type", "type" : lt.LuaStr}, 1 : {"to" : "value", "type" : lt.LuaBlockStr}, }}, "extend1":rt.ExtendRule(1,12,"result","跳转[index]结果","跳转[index]条件",{ "跳转[index]结果": {"to" : "ret" ,"type" : lt.LuaIntOrStr}, "跳转[index]类型": {"to" : "type" ,"type" : lt.LuaStr}, "跳转[index]值": {"to" : "value" ,"type" : lt.LuaBlockStr}, "跳转[index]条件": {"to" : "condition" ,"type" : lt.LuaParseStr ,"split" : "\n:", "rule" :{ 0 : {"to" : "type", "type" : lt.LuaStr}, 1 : {"to" : "value", "type" : lt.LuaStr}, }} }), }) BUILD=\ [ #构造任务 { #构造目标 "target" : "story",
RULES = rt.NormalRule({ "名称": { "to": "name", "type": lt.LuaStr }, "生命成长": { "to": "hp", "type": lt.LuaInt }, "内力成长": { "to": "mp", "type": lt.LuaInt }, "悟性成长": { "to": "wuxing", "type": lt.LuaInt }, "身法成长": { "to": "shenfa", "type": lt.LuaInt }, "臂力成长": { "to": "bili", "type": lt.LuaInt }, "根骨成长": { "to": "gengu", "type": lt.LuaInt }, "福源成长": { "to": "fuyuan", "type": lt.LuaInt }, "定力成长": { "to": "dingli", "type": lt.LuaInt }, "拳掌成长": { "to": "quanzhang", "type": lt.LuaInt }, "剑法成长": { "to": "jianfa", "type": lt.LuaInt }, "刀法成长": { "to": "daofa", "type": lt.LuaInt }, "奇门成长": { "to": "qimen", "type": lt.LuaInt }, "武学常识成长": { "to": "wuxue", "type": lt.LuaInt }, "属性点成长": { "to": "propertyPoint", "type": lt.LuaInt }, })
RULES = rt.NormalRule({ "任务发布点": { "to": "belongMissionPlace", "type": lt.LuaStr }, "任务名": { "to": "missionName", "type": lt.LuaStr }, "描述": { "to": "desc", "type": lt.LuaBlockStr }, "任务完成描述": { "to": "completeDesc", "type": lt.LuaBlockStr }, "完成获得标志": { "to": "tag", "type": lt.LuaStr }, "前置条件": { "to": "condition", "type": lt.LuaParseStr, "split": "\n:", "rule": { 0: { "to": "type", "type": lt.LuaStr }, 1: { "to": "value", "type": lt.LuaStr }, } }, "可接取次数": { "to": "limit", "type": lt.LuaInt }, "extend1": rt.ExtendRule( 1, 5, "need", "条件[index]类型", "条件[index]值", { "条件[index]类型": { "to": "type", "type": lt.LuaStr }, "条件[index]值": { "to": "value", "type": lt.LuaStr }, }), "extend2": rt.ExtendRule( 1, 5, "cost", "消耗[index]类型", "消耗[index]值", { "消耗[index]类型": { "to": "type", "type": lt.LuaStr }, "消耗[index]值": { "to": "value", "type": lt.LuaStr }, }), "extend3": rt.ExtendRule( 1, 5, "award", "奖励[index]类型", "奖励[index]值", { "奖励[index]类型": { "to": "type", "type": lt.LuaStr }, "奖励[index]值": { "to": "value", "type": lt.LuaStr }, }), })
RULES = rt.NormalRule({ "名称": { "to": "name", "type": lt.LuaStr }, "调和": { "to": "tiaohe", "type": lt.LuaInt }, "武学标签": { "to": "tag", "type": lt.LuaStr }, "类型": { "to": "type", "type": lt.LuaInt }, "适性": { "to": "suit", "type": lt.LuaDouble }, "难度系数": { "to": "hard", "type": lt.LuaDouble }, "简介": { "to": "info", "type": lt.LuaStr }, "音效": { "to": "audio", "type": lt.LuaStr }, "基础攻击力": { "to": "basepower", "type": lt.LuaDouble }, "攻击成长": { "to": "step", "type": lt.LuaDouble }, "动画": { "to": "animation", "type": lt.LuaStr }, "消耗mp": { "to": "costMp", "type": lt.LuaInt }, "冷却": { "to": "cd", "type": lt.LuaInt }, "图标": { "to": "icon", "type": lt.LuaStr }, "BUFF": { "to": "buff", "type": lt.LuaStr }, "投掷范围大小": { "to": "castSize", "type": lt.LuaInt }, "覆盖范围大小": { "to": "coverSize", "type": lt.LuaInt }, "extend1": rt.ExtendRule( 1, 8, "trigger", "解锁[index]属性", "解锁[index]等级", { "解锁[index]属性": { "to": "name", "type": lt.LuaStr }, "解锁[index]值": { "to": "argvs", "type": lt.LuaStr }, "解锁[index]等级": { "to": "lv", "type": lt.LuaInt }, }) })
RULES = rt.NormalRule({ "模型名": { "to": "name", "type": lt.LuaStr }, "攻击动画结束索引": { "to": "attackEndIndex", "type": lt.LuaInt }, "攻击动画持续时间": { "to": "attacktime", "type": lt.LuaDouble }, "防御动画结束索引": { "to": "defendEndIndex", "type": lt.LuaInt }, "防御动画持续时间": { "to": "defendtime", "type": lt.LuaDouble }, "站立动画结束索引": { "to": "standEndIndex", "type": lt.LuaInt }, "站立动画持续时间": { "to": "standtime", "type": lt.LuaDouble }, "移动动画结束索引": { "to": "moveEndIndex", "type": lt.LuaInt }, "移动动画持续时间": { "to": "movetime", "type": lt.LuaDouble }, "缩放因子": { "to": "scale", "type": lt.LuaDouble }, "锚点": { "to": "anchorPoint", "type": lt.LuaStr } })
RULES = rt.NormalRule({ "KEY": { "to": "key", "type": lt.LuaStr }, "武学": { "to": "wuxue", "type": lt.LuaInt }, "动画模型": { "to": "animation", "type": lt.LuaStr }, "名称": { "to": "name", "type": lt.LuaStr }, "头像": { "to": "head", "type": lt.LuaStr }, "生命": { "to": "hp", "type": lt.LuaInt }, "内力": { "to": "mp", "type": lt.LuaInt }, "悟性": { "to": "wuxing", "type": lt.LuaInt }, "身法": { "to": "shenfa", "type": lt.LuaInt }, "臂力": { "to": "bili", "type": lt.LuaInt }, "根骨": { "to": "gengu", "type": lt.LuaInt }, "福源": { "to": "fuyuan", "type": lt.LuaInt }, "定力": { "to": "dingli", "type": lt.LuaInt }, "拳掌": { "to": "quanzhang", "type": lt.LuaInt }, "剑法": { "to": "jianfa", "type": lt.LuaInt }, "刀法": { "to": "daofa", "type": lt.LuaInt }, "奇门": { "to": "qimen", "type": lt.LuaInt }, "等级": { "to": "level", "type": lt.LuaInt }, "是否不出现在竞技场": { "to": "isNet", "type": lt.LuaBool }, "性别": { "to": "female", "type": lt.LuaInt }, "天赋": { "to": "talent", "type": lt.LuaStr }, "立绘": { "to": "draw", "type": lt.LuaStr }, "立绘背景": { "to": "dawBack", "type": lt.LuaStr }, "成长模板": { "to": "grow_template", "type": lt.LuaStr }, "技能": { "to": "skills", "type": lt.LuaParseStr, "split": "\n.", "rule": { 0: { "to": "name", "type": lt.LuaStr }, 1: { "to": "level", "type": lt.LuaInt }, 2: { "to": "maxlevel", "type": lt.LuaInt }, } }, "内功": { "to": "internal_skills", "type": lt.LuaParseStr, "split": "\n.", "rule": { 0: { "to": "name", "type": lt.LuaStr }, 1: { "to": "level", "type": lt.LuaInt }, 2: { "to": "equipped", "type": lt.LuaInt }, 3: { "to": "maxlevel", "type": lt.LuaInt }, } }, "特殊技": { "to": "special_skills", "type": lt.LuaParseStr, "split": "\n" }, "装备": { "to": "items", "type": lt.LuaParseStr, "split": "\n" } })
RULES = rt.NormalRule({ "技能名": { "to": "name", "type": lt.LuaStr }, "描述": { "to": "info", "type": lt.LuaStr }, "覆盖类型": { "to": "coverType", "type": lt.LuaInt }, "施展范围": { "to": "castSize", "type": lt.LuaInt }, "覆盖范围": { "to": "coverSize", "type": lt.LuaInt }, "音效": { "to": "audio", "type": lt.LuaStr }, "动画": { "to": "animation", "type": lt.LuaStr }, "耗内": { "to": "costMp", "type": lt.LuaInt }, "冷却": { "to": "cd", "type": lt.LuaInt }, "耗怒": { "to": "costball", "type": lt.LuaInt }, "是否对自己释放": { "to": "hitself", "type": lt.LuaBool }, "图标": { "to": "icon", "type": lt.LuaStr }, "buff": { "to": "buff", "type": lt.LuaStr }, })
RULES = rt.NormalRule({ "所属武学": { "to": "belongSkill", "type": lt.LuaStr }, "名称": { "to": "name", "type": lt.LuaStr }, "简介": { "to": "info", "type": lt.LuaStr }, "难度": { "to": "info", "type": lt.LuaInt }, "覆盖类型": { "to": "coverType", "type": lt.LuaInt }, "施展范围": { "to": "castSize", "type": lt.LuaInt }, "覆盖范围": { "to": "coverSize", "type": lt.LuaInt }, "增加威力": { "to": "poweradd", "type": lt.LuaDouble }, "解锁等级": { "to": "requirelv", "type": lt.LuaInt }, "动画": { "to": "animation", "type": lt.LuaStr }, "冷却": { "to": "cd", "type": lt.LuaInt }, "耗怒": { "to": "costball", "type": lt.LuaDouble }, "音效": { "to": "audio", "type": lt.LuaStr }, "图标": { "to": "icon", "type": lt.LuaStr }, "BUFF": { "to": "buff", "type": lt.LuaStr }, })