骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
查看: 254|回复: 2

[求助] 这段代码有错吗

[复制链接]
鲜花(0) 鸡蛋(0)
发表于 2018-6-26 10:56:25 | 显示全部楼层 |阅读模式
[trp_npc18|plyr,"start",
[], "frist", "a1",
[
]],
[trp_npc18, "a1",
[], "frist", "a2",
[
]],
[trp_npc18|plyr,"a2",
[], "frist", "a3",
[
]],
[trp_npc18, "a3",
[], "frist", "close_window",
[
]],
[trp_npc18, "a1",
[], "frist", "close_window",
[
]],
[trp_npc18|plyr,"start",
[], "frist", "b1",
[
]],
[trp_npc18, "b1",
[(store_troop_gold,":gold","trp_player")(ge,":gold",200)], "frist", "b2",
[
]],
[trp_npc18|plyr,"b2",
[], "frist", "b2_1",
[(troop_remove_gold,"trp_player",200),
(troop_add_item, "trp_player", "trp_shizijunbubing"),
]],
[trp_npc18|plyr,"b2",
[], "frist", "b2_2",
[(troop_remove_gold,"trp_player",1000),
(troop_join,"trp_shizijunbubing"),
(troop_join,"trp_shizijunbubing"),
(troop_join,"trp_shizijunbubing"),
(troop_join,"trp_shizijunbubing"),
(troop_join,"trp_shizijunbubing"),
]],
[trp_npc18, "b1",
[(store_troop_gold,":gold","trp_player")(ge,":gold",500)], "frist", "b3",
[
]],
[trp_npc18|plyr,"b3",
[], "frist", "b3_1",
[(troop_remove_gold,"trp_player",500),
(troop_add_item, "trp_player", "trp_qishi"),
]],
[trp_npc18|plyr,"b3",
[], "frist", "b3_2",
[(troop_remove_gold,"trp_player",5000),
(troop_join,"trp_qishi"),
(troop_join,"trp_qishi"),
(troop_join,"trp_qishi"),
(troop_join,"trp_qishi"),
(troop_join,"trp_qishi"),
[trp_npc18, "b1",
[(store_troop_gold,":gold","trp_player")(ge,":gold",200)], "frist", "b4",
[
]],
[trp_npc18|plyr,"b4",
[], "frist", "b4_1",
[(troop_remove_gold,"trp_player",200),
  (troop_add_item, "trp_player", "trp_shizijunnubing"),
]],
[trp_npc18|plyr,"b4",
[], "frist", "b4_2",
[(troop_remove_gold,"trp_player",1000),
(troop_join,"trp_shizijunnubing"),
(troop_join,"trp_shizijunnubing"),
(troop_join,"trp_shizijunnubing"),
(troop_join,"trp_shizijunnubing"),
(troop_join,"trp_shizijunnubing"),
]],
[trp_npc18, "b1",
[], "frist", "close_window",
[
]],
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2018-6-26 10:57:10 | 显示全部楼层
Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\Administrator\Desktop\mb_warband_module_system_1171\Module_syst
em 1.171\module_dialogs.py", line 26470

     ^
SyntaxError: invalid syntax
另外编程时报错时这个,26470行我看了,是空格
鲜花(0) 鸡蛋(0)
发表于 2018-6-29 07:56:24 | 显示全部楼层
上下行总要说一下,谁知道26470行是哪行。
(troop_add_item, "trp_player", "trp_qishi"),这一句逻辑有问题。但应该不是报错的原因。
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站 ( 鄂ICP备07001403号 )

GMT+8, 2018-9-26 20:21 , Processed in 0.083124 second(s), 21 queries , Gzip On, Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表