Skip to content

EN的这个skill_world_display.lua解析脚本有点小问题 #4

@liusj5257

Description

@liusj5257

连续3个]]]会导致前面两个就被解析为字符串结束符,可以在输出的时候加个空格间隔下或者使用[==[................]==]

	[16220] = {
		desc_get = "",
		id = 16220,
		desc = [[
[Operation Siren only] 
When the battle starts, if there are 3 or more Eagle Union ships afloat in your fleet: increases this ship's AVI and ACC by $1. 
Every 18s after the battle starts: $2 chance to fire a $3 special barrage (DMG is based on the skill's level) and decreases this ship's Detection Gauge value by 2 once a second for 5s. 
While this ship is afloat, for the first 4 battles another fleet fights during a sortie: increases the FP of that fleet's Main Fleet Eagle Union ships by $4; 20s after that fleet's battle starts: fires a $3 special barrage (DMG is based on the skill's level). [This skill's sortie battle counter resets when moving to a new area or changing your formation within Operation Siren.]]],

Loading single file: skill_world_display.lua
Traceback (most recent call last):
File "tranlator.py", line 529, in
translator.process_Sharecfg()
File "tranlator.py", line 467, in process_Sharecfg
source_lua.execute(f.read())
File "lupa\lua51.pyx", line 463, in lupa.lua51.LuaRuntime.execute
File "lupa\lua51.pyx", line 1903, in lupa.lua51.run_lua
lupa.lua51.LuaSyntaxError: error loading code: [string ""]:2154: '}' expected (to close '{' at line 2144) near ']'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions