佳丽云

英雄无敌3-WoG中文站

 找回密码
 英雄注册|Register
查看: 11711|回复: 10

WoG设置自定义菜单(Zsetup)使用方法的翻译

[复制链接]

 成长值: 26815

  • TA的每日心情
    无聊
    2020-5-27 00:09
  • 签到天数: 24 天

    连续签到: 2 天

    [LV.4]狂狼人

    5765

    回帖

    2696万

    金币

    42

    精华

    管理员

    精灵奇侠

    Rank: 12Rank: 12Rank: 12

    积分
    9244658

    社区QQ达人论坛创始人杰出贡献论坛元老

    发表于 2009-2-24 11:44:42 | 显示全部楼层 |阅读模式
    500秘银
    [wiki]WoG[/wiki]的高度自由化,给予了玩家自编脚本的便利,但目前的WoG358F,最多支持99条脚本,除去官方使用的77条脚本外,我们还留有22条脚本的空位来使用。自编脚本的引入,因为变量冲突的存在而有着极大的安全隐患,容易造成[wiki]游戏[/wiki]的死机、蓝屏等问题,而WoG自定义菜单,给了我们一个很好的开关脚本的选择。为了让更多人了解如何制作自定义菜单,我悬赏500WB来请玩家们翻译自定义菜单条目的使用方法,如果你的英文不错,可以尝试领取这个任务,为后来的玩家们造福!

    文本内容如下:
    How to Edit Zsetup Files - July 14, 2004.

    ** Important: Before attempting to edit these files, please read this document. **

    There are two files used for displaying WoG Options:

    - Zsetup00.txt
    - Zsetup01.txt

    These files should be edited in a plain text editor such as Notepad or in the ERM Scripter.
    After editing the files, you must copy them to your Heroes3\Data folder where they will override the internal file defaults. To restore the defaults, simply delete the files from the Data folder.

    These files are tab-delineated (each field is separated by a tab "space") so it's often easier to edit them in table format. To do so, open the Zsetup file in the scripter, click on the File menu and choose "Reopen as Table". Then, to autosize the columns so they're easier to read, find the button with the double arrow and "A" above it, click on the little down arrow *next* to this, and choose "Autosize all columns".

    First I will describe the contents of Zsetup00.txt and then Zsetup01.txt.

    ZSETUP00.TXT - This file stores the information for the WoGify introduction text, page names (numbered 0..7), and up to four group headers within each page (numbered 0..3). There can be up to eight pages of options, although only six are currently used for WoG 3.58.

    Row 0 - This is a title line and should be left alone.
    Row 1 - Name of the WoG Options dialogue that appears at the top of the screen.
    Row 2 - Hint text for the name.
    Row 3 - Right-click text for the name (currently shows the intro. text).
    Row 4 - Full introduction text - displayed when you open the WoG Options dialogue.
    Row 5 - Page 0 Name.
    Row 6 - Page 0 Hint Text.
    Row 7 - Page 0 Description.
    .
    .
    .
    Row 26 - Page 7 Name.
    Row 27 - Page 7 Hint Text.
    Row 28 - Page 7 Description.

    Row 29 - Page 0, Upper Left Group Name.
    Row 30 - Page 0, Upper Left Group Mouse-over Text (currently identical to Right-click Text).
    Row 31 - Page 0, Upper Left Group Right-click Text (currently identical to Mouse-over Text).
    Row 32 - Page 0, Lower Left Group Name.
    Row 33 - Page 0, Lower Left Group Mouse-over Text (currently identical to Right-click Text).
    Row 34 - Page 0, Lower Left Group Right-click Text (currently identical to Mouse-over Text).
    Row 35 - Page 0, Upper Right Group Name.
    Row 36 - Page 0, Upper Right Group Mouse-over Text (currently identical to Right-click Text).
    Row 37 - Page 0, Upper Right Group Right-click Text (currently identical to Mouse-over Text).
    Row 38 - Page 0, Lower Right Group Name.
    Row 39 - Page 0, Lower Right Group Mouse-over Text (currently identical to Right-click Text).
    Row 40 - Page 0, Lower Right Group Right-click Text (currently identical to Mouse-over Text).
    .
    .
    .
    Row 113 - Page 7, Upper Left Group Name.
    Row 114 - Page 7, Upper Left Group Mouse-over Text (currently identical to Right-click Text).
    Row 115 - Page 7, Upper Left Group Right-click Text (currently identical to Mouse-over Text).
    Row 116 - Page 7, Lower Left Group Name.
    Row 117 - Page 7, Lower Left Group Mouse-over Text (currently identical to Right-click Text).
    Row 118 - Page 7, Lower Left Group Right-click Text (currently identical to Mouse-over Text).
    Row 119 - Page 7, Upper Right Group Name.
    Row 120 - Page 7, Upper Right Group Mouse-over Text (currently identical to Right-click Text).
    Row 121 - Page 7, Upper Right Group Right-click Text (currently identical to Mouse-over Text).
    Row 122 - Page 7, Lower Right Group Name.
    Row 123 - Page 7, Lower Right Group Mouse-over Text (currently identical to Right-click Text).
    Row 124 - Page 7, Lower Right Group Right-click Text (currently identical to Mouse-over Text).

    Row 125..Row 133 - Save/Load Dialogue Messages.


    ZSETUP01.TXT - This file stores the information for all WoGify script options. Options may be placed on any of the eight pages (0..7) and in any of the four groups on that page (0..3). With four groups, a maximum of 44 options can appear on any WoG Options page.

    Row 1   - This is a title. Best to just leave it alone. The line must be included.
    Row 2   - Headings for each column for reference. The line can be edited but not removed.
    Row 3+  - Each row from number three on contains the specifications for one WoG Option.


    Column 1 - Comment field. This can be anything but is usually the name or description of the script, and is used by the script writer as a reminder when editing the file.

    Column 2 - Script number. e.g., 80 (meaning script80.erm). WoGify scripts must be in the Data\s folder and only scripts named "script##.erm" will be loaded when the map is WoGified. ## means "00" through "99". So script94.erm is a valid WoGify script, but script102.erm isn't (it would be ignored when the map is WoGified).

    Note: some scripts also have accompanying ERT or ERS files (e.g., script80.ert or script80.ers). An ERT file is a file containing all message text from the script and is used to make translation into other languages easier (there's an auto-ERTification option in the ERM scripter as well as a way to de-ERTify a script again). An ERS file is like a single line of a Zsetup01.txt and applies only to one WoG script. If a script has an entry in Zsetup01.txt it shouldn't also have an ERS file or you'll end up with two entries in the WoG Options screen instead of one.

    Column 3 - Page number. This is the WoG Options page you're adding the option to. The pages are numbered 0..7 (only 0..5 are used in WoG 3.58).

    Column 4 - Option group number. There are four options groups on each WoG Options page. They go in the sequence: 0=top left, 1=bottom left, 2=top right, 3=bottom right.

    Column 5 - Item number. This is where the new option appears within the group on the page. Use -1 to add the option at the bottom of the list.

    Column 6 - Initial state. This is the initial state of the option: on (1) or off (0) when the program loads.

    Column 7 - Multiplayer state. This field is still required in 3.58, although it's no longer actually used. In 3.57 it was the state of the option if the Multiplayer button was clicked: on (1) or off (0). In 3.58, you should just set it to an identical value to column 6.

    Column 8. - ERM number. This is a unique number that your script can check to see if the option has been turned on or off by the player. There are a total of 1000 ERM numbers available for 3.58, but some of them have already been used (more will be used in 3.59). ERM numbers below 11 and above 899 are used or reserved for hard-coded options. In general, most scripts use the same number as their script number, although some also use extra numbers if they have multiple options (e.g., the Map Rules script). To be safe, put the script number here (e.g., 80). Consult the Usage358.txt file for a full list of option numbers used in 3.58.

    Column 9 - Option name. This is the text that appears beside the option checkbox.

    Column 10 - Option mouse-over description. This is the text that appears at the bottom of the screen when you move the mouse over an option.

    Column 11 - Option right-click description. This is text that appears when you right-click on the option.

    If you want to include new lines in a particular field (say, a multi-line description), you'll need to either use use the script editor or manually copy a "new line" character.

    In your script, you'll also need to check for the WoG Option setting. This is a UN:P command. There are various ERM numbers (UN:P numbers) available but many are already used. Most scripts above 10 use the same ERM number as the script number so script and ERM numbers 78 through 99 are currently available at the time of the WoG 3.58 release. Option numbers 250-899 are also unused at present.

    Example: To check for script88 being enabled, you might use something like:

    !#UN:P88/?v6500;

    Then everywhere you have a trigger, you could simply add &v6500=1 to it and it would only work if the script was enabled.

    最佳答案

    查看完整内容

    翻译好了 “官方”的说明语句总是有些晦涩 大家可以和POET的心得体会结合使用 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ How to Edit Zsetup Files - July 14, 2004. 如何编辑设置文件: ** Important: Before attempting to edit these files, please read this document. ** 请注意: 在尝试编辑设置文件之前,请仔细阅读此文本。 There are two files used for disp ...

    该用户从未签到

    1206

    回帖

    1万

    金币

    8

    精华

    论坛嘉宾

    Rank: 9Rank: 9Rank: 9

    积分
    1768

    杰出贡献退役版主论坛元老

    发表于 2009-2-24 11:44:43 | 显示全部楼层
    翻译好了 “官方”的说明语句总是有些晦涩
    大家可以和POET的心得体会结合使用

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    How to Edit Zsetup Files - July 14, 2004.
    如何编辑设置文件:

    ** Important: Before attempting to edit these files, please read this document. **
    请注意: 在尝试编辑设置文件之前,请仔细阅读此文本。

    There are two files used for displaying WoG Options:
    下列两个文件用来显示WOG选项:

    - Zsetup00.txt
    - Zsetup01.txt

    These files should be edited in a plain text editor such as Notepad or in the ERM Scripter.
    After editing the files, you must copy them to your Heroes3\Data folder where they will override the internal file defaults. To restore the defaults, simply delete the files from the Data folder.
    选项文件必须保存为纯文本格式(*.txt),玩家可用wondows自带的记事本或者erm脚本编辑器进行修改。在对选项文件进行编辑后,玩家必须把新的选项文件拷贝到“Heroes3\data"路径下。如果要恢复默认设置,只要删除掉这些文件就可以。

    These files are tab-delineated (each field is separated by a tab "space") so it's often easier to edit them in table format. To do so, open the Zsetup file in the scripter, click on the File menu and choose "Reopen as Table". Then, to autosize the columns so they're easier to read, find the button with the double arrow and "A" above it, click on the little down arrow *next* to this, and choose "Autosize all columns".
    这些WOG选项文件都是以表格形式展现的(选项之间都被空格隔开),所以通常用表格的格式去编辑会更方便。具体操作步骤:1.用erm脚本编辑器打开Zsetup文件,然后打开“File”菜单后选择“reopen as table”(用表格重新打开文件)。2.调整表格中的列宽以便于阅读和编辑。找到表格顶部工具栏中的字母“A”和一个双向箭头组成的按钮,点击“A”旁边的小三角,然后选择“Autosize all columns”(自动调整列宽)。

    First I will describe the contents of Zsetup00.txt and then Zsetup01.txt.
    首先让我们了解一下Zsetup00.txt和Zsetup01.txt的内容:

    ZSETUP00.TXT - This file stores the information for the WoGify introduction text, page names (numbered 0..7), and up to four group headers within each page (numbered 0..3). There can be up to eight pages of options, although only six are currently used for WoG 3.58.
    Zsetup00.txt:这个文件包含了WOG化的介绍,选项页码(0-7),和每页的四组标题(号码0-3)。这些组成了8页的WOG选项,虽然目前只有6页用于WOG3.58。

    Row 0 - This is a title line and should be left alone.
    行0: 标题行,只有左边列有信息。
    Row 1 - Name of the WoG Options dialogue that appears at the top of the screen.
    行1: 弹出 WOG选项的按钮名称,显示在屏幕顶端。
    Row 2 - Hint text for the name.
    行2: 提示文本
    Row 3 - Right-click text for the name (currently shows the intro. text).
    行3: 点击右键弹出的文本信息
    Row 4 - Full introduction text - displayed when you open the WoG Options dialogue.
    行4: 打开WOG选项菜单以后出现的全面介绍信息。
    Row 5 - Page 0 Name.
    行5: 0页的名称
    Row 6 - Page 0 Hint Text.
    行6: 0页的提示文本
    Row 7 - Page 0 Description.
    行7: 0页的描述
    .
    .
    .
    Row 26 - Page 7 Name.
    行26: 7页名称
    Row 27 - Page 7 Hint Text.
    行27: 7页的提示文本
    Row 28 - Page 7 Description.
    行28: 7页的描述

    Row 29 - Page 0, Upper Left Group Name.
    行29-0页,左上选项组的名称
    Row 30 - Page 0, Upper Left Group Mouse-over Text (currently identical to Right-click Text).
    行30-0页,鼠标移到左上选项组时显示的信息(和点右键显示的信息一样)
    Row 31 - Page 0, Upper Left Group Right-click Text (currently identical to Mouse-over Text).
    行31-0页,鼠标在左上选项组点右键时显示的信息(和点左键显示的信息一样)
    Row 32 - Page 0, Lower Left Group Name.
    行32-0页,左下选项组的名称
    Row 33 - Page 0, Lower Left Group Mouse-over Text (currently identical to Right-click Text).
    行33-0页,鼠标移到选项组时显示的信息(和点右键显示的信息一样)
    Row 34 - Page 0, Lower Left Group Right-click Text (currently identical to Mouse-over Text).
    行34-0页,鼠标在选项组点右键时显示的信息(和点左键显示的信息一样)
    Row 35 - Page 0, Upper Right Group Name.
    行35-0页,右上选项组的名称
    Row 36 - Page 0, Upper Right Group Mouse-over Text (currently identical to Right-click Text).
    行36-0页,鼠标移到选项组时显示的信息(和点右键显示的信息一样)
    Row 37 - Page 0, Upper Right Group Right-click Text (currently identical to Mouse-over Text).
    行37-0页,鼠标在选项组点右键时显示的信息(和点左键显示的信息一样)
    Row 38 - Page 0, Lower Right Group Name.
    行38-0页,右下选项组的名称
    Row 39 - Page 0, Lower Right Group Mouse-over Text (currently identical to Right-click Text).
    行39-0页,鼠标移到选项组时显示的信息(和点右键显示的信息一样)
    Row 40 - Page 0, Lower Right Group Right-click Text (currently identical to Mouse-over Text).
    行40-0页,鼠标在选项组点右键时显示的信息(和点左键显示的信息一样)
    .
    .
    .
    Row 113 - Page 7, Upper Left Group Name.
    行113-7页,左上选项组的名称(下面依次类推)
    Row 114 - Page 7, Upper Left Group Mouse-over Text (currently identical to Right-click Text).
    Row 115 - Page 7, Upper Left Group Right-click Text (currently identical to Mouse-over Text).
    Row 116 - Page 7, Lower Left Group Name.
    Row 117 - Page 7, Lower Left Group Mouse-over Text (currently identical to Right-click Text).
    Row 118 - Page 7, Lower Left Group Right-click Text (currently identical to Mouse-over Text).
    Row 119 - Page 7, Upper Right Group Name.
    Row 120 - Page 7, Upper Right Group Mouse-over Text (currently identical to Right-click Text).
    Row 121 - Page 7, Upper Right Group Right-click Text (currently identical to Mouse-over Text).
    Row 122 - Page 7, Lower Right Group Name.
    Row 123 - Page 7, Lower Right Group Mouse-over Text (currently identical to Right-click Text).
    Row 124 - Page 7, Lower Right Group Right-click Text (currently identical to Mouse-over Text).

    Row 125..Row 133 - Save/Load Dialogue Messages.
    行125至行133:保存和读取WOG选项设置的对话框信息.


    ZSETUP01.TXT - This file stores the information for all WoGify script options. Options may be placed on any of the eight pages (0..7) and in any of the four groups on that page (0..3). With four groups, a maximum of 44 options can appear on any WoG Options page.
    Zsetup01.txt:这个文件包含了WOG化的脚本信息。选项可以被放置在0-7页的任何一页,和每页0-3组四组选项的任何一组。在每一组中,最多可以容纳44个WOG选项。

    Row 1   - This is a title. Best to just leave it alone. The line must be included.
    行1-标题,不用管它,这一行标题必须存在。
    Row 2   - Headings for each column for reference. The line can be edited but not removed.
    行2-每一列的标题,这些标题可以编辑但是不能删除。
    Row 3+  - Each row from number three on contains the specifications for one WoG Option.
    行3以后-每一个WOG选项的描述和解释。

    Column 1 - Comment field. This can be anything but is usually the name or description of the script, and is used by the script writer as a reminder when editing the file.
    列1-注释,包括erm脚本的名称、描述,或者erm脚本作者的一些提示。
    Column 2 - Script number. e.g., 80 (meaning script80.erm). WoGify scripts must be in the Data\s folder and only scripts named "script##.erm" will be loaded when the map is WoGified. ## means "00" through "99". So script94.erm is a valid WoGify script, but script102.erm isn't (it would be ignored when the map is WoGified).
    列2-脚本序号。80意味着此WOG选项对应script80.erm脚本的功能。erm脚本必须放置在Data\s文件路径下,并且脚本的文件名必须是"script##.erm"格式,##代表00-99的脚本序号。只有把地图WOG化才能让这些脚本发挥作用。所以script94.erm在地图wog化的时候是有效的,而script102.erm则会被忽略而不起作用。

    Note: some scripts also have accompanying ERT or ERS files (e.g., script80.ert or script80.ers). An ERT file is a file containing all message text from the script and is used to make translation into other languages easier (there's an auto-ERTification option in the ERM scripter as well as a way to de-ERTify a script again). An ERS file is like a single line of a Zsetup01.txt and applies only to one WoG script. If a script has an entry in Zsetup01.txt it shouldn't also have an ERS file or you'll end up with two entries in the WoG Options screen instead of one.
    注意:一些脚本文件会伴随一些ert文件或ers文件。一个ert文件包含对应脚本的所有的信息,便于这些信息翻译成其他语言(在erm脚本编辑器中有打开或者创造一个ert的选项)。一个ers文件就像是只有1行的Zsetup01.txt文件,并且仅用于一个WOG脚本。如果一个erm脚本在Zsetup01.txt中占有一席之地就不会再有相应的ers,或者这个脚本在WOG选项中占有2个位置而不是一个。

    Column 3 - Page number. This is the WoG Options page you're adding the option to. The pages are numbered 0..7 (only 0..5 are used in WoG 3.58).
    列3-页码.这些wog选项页用来放置一些wog选项,这些页码从0-7(但是只有0-5页被wog3.58所使用)。

    Column 4 - Option group number. There are four options groups on each WoG Options page. They go in the sequence: 0=top left, 1=bottom left, 2=top right, 3=bottom right.
    列4-选项组编号。每一页有四个选项组来分别放置不同的wog选项,这些选项组的编号对用的位置为:0=左上  1=左下 2=右上 3=右下

    Column 5 - Item number. This is where the new option appears within the group on the page. Use -1 to add the option at the bottom of the list.
    列5-选项编号。选项放在每一页的选项组中,使用“-1”可以在选项列表的下面增加新的选项。

    Column 6 - Initial state. This is the initial state of the option: on (1) or off (0) when the program loads.
    列6-默认状态。代表了wog选项在默认状态下是否开启。开启(1)关闭(0)。

    Column 7 - Multiplayer state. This field is still required in 3.58, although it's no longer actually used. In 3.57 it was the state of the option if the Multiplayer button was clicked: on (1) or off (0). In 3.58, you should just set it to an identical value to column 6.
    列7-是否用于多人游戏。这个文件3.58所必需的,虽然事实上已经不再被使用。在3.57中,代表是否选择了多人游戏,开启(1)关闭(0)。在3.58中,应该让列7拥有和列6相同的数值。

    Column 8. - ERM number. This is a unique number that your script can check to see if the option has been turned on or off by the player. There are a total of 1000 ERM numbers available for 3.58, but some of them have already been used (more will be used in 3.59). ERM numbers below 11 and above 899 are used or reserved for hard-coded options. In general, most scripts use the same number as their script number, although some also use extra numbers if they have multiple options (e.g., the Map Rules script). To be safe, put the script number here (e.g., 80). Consult the Usage358.txt file for a full list of option numbers used in 3.58.
    列8-ERM号码(变量?)。这个号码是唯一的,用来检查wog选项是否被玩家开启/关闭。在WOG3.58中有1000个erm号码是可用的,如您所见,一些号码已经被使用了,在3.59中将有更多被使用。erm号码中11以下和899以上的被硬编码选项使用或者保留。一般而言,大部分erm脚本使用和脚本序号相同的erm号码,虽然某些涉及多个选项的脚本使用了其他的号码(例如地图规则脚本)。安全起见,在这里使用脚本序号。在Usage358.txt中能够看到哪些号码已经被使用。

    Column 9 - Option name. This is the text that appears beside the option checkbox.
    列9-选项的中文名称。

    Column 10 - Option mouse-over description. This is the text that appears at the bottom of the screen when you move the mouse over an option.
    列10-选项的描述。当玩家把鼠标移到wog的选项上时,屏幕底部会出现这些描述。

    Column 11 - Option right-click description. This is text that appears when you right-click on the option.
    If you want to include new lines in a particular field (say, a multi-line description), you'll need to either use use the script editor or manually copy a "new line" character.
    列11-选项的描述。当玩家在选项上点击鼠标右键的时候出现这些描述。
    如果我们想新建一行(例如打算写一段好几行的描述文字),我们必须使用脚本编辑器或者手动拷贝一个新条目。

    In your script, you'll also need to check for the WoG Option setting. This is a UN:P command. There are various ERM numbers (UN:P numbers) available but many are already used. Most scripts above 10 use the same ERM number as the script number so script and ERM numbers 78 through 99 are currently available at the time of the WoG 3.58 release. Option numbers 250-899 are also unused at present.
    要让自己的脚本开启/关闭,需要在WOG选项设置中添加脚本。这由UN:P命令来判断开启/关闭,一些变量供玩家使用,但是请注意一些变量已经被使用了。大部分序号在10以上的erm脚本都使用和脚本序号相同的变量,所以在3.58发行的时候78-99的脚本序号和erm号码被提供给玩家自由使用。选项编码250-899同样是可用的。

    Example: To check for script88 being enabled, you might use something like:
    举例:去检查88号erm脚本是否开启,我们可以用这样的办法:

    !#UN:P88/?v6500;
    Then everywhere you have a trigger, you could simply add &v6500=1 to it and it would only work if the script was enabled.
    这样你在每一个触发器中都可以添加&v6500=1这样的条件,只有在这个WOG选项被打开以后,88号脚本才会发挥作用。
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2020-8-29 10:50
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]野猪

    1263

    回帖

    4万

    金币

    2

    精华

    5级 Honorable Hero

    Rank: 5Rank: 5

    积分
    6481

    退役版主

    发表于 2009-2-24 11:47:23 | 显示全部楼层
    晕!这个太难了 等待高手吧
    回复

    使用道具 举报

    该用户从未签到

    1206

    回帖

    1万

    金币

    8

    精华

    论坛嘉宾

    Rank: 9Rank: 9Rank: 9

    积分
    1768

    杰出贡献退役版主论坛元老

    发表于 2009-2-24 13:46:00 | 显示全部楼层
    反正自己学习也得看几遍 俺来翻译吧
    回复

    使用道具 举报

    该用户从未签到

    906

    回帖

    9696

    金币

    2

    精华

    5级 Honorable Hero

    Rank: 5Rank: 5

    积分
    4086

    退役版主

    发表于 2009-2-24 14:43:30 | 显示全部楼层
    其实看懂这个很难,我也是摸索了半天,最后发现原来制作 .ers 文件是最好的办法,参考我的脚本就明白怎么做了。

    所以大多数制作者所需要做的事情只是:把我的 script85.ers 复制过去,然后修改成自己需要的,就行。

    这里面有一个很重大的问题不容易突破:所以其实要普及并不容易。

    .ers 和 zsetup01.txt 的格式是一致的,都是表格文件,官方的 erm_s 工具提供了这个文件的[wiki]编辑器[/wiki],直接编辑表格就行,但是这个官方的编辑器不支持中文!也就是说中文根本无法在表格中输入。

    所以实际上是我们需要用其它的编辑器编辑。不过,由于这个脚本实际上含有DOS/ Unix两种换行形式的混排,要想不损格式的编辑,也许不是每个人都能做到的。

    我要告诉大家的是:
    表格的每一列必须用真实的 tab 字符(0x09)分割
    表格的每一行必须用cr+lf(0x0d, 0x0a)分割
    表格每一项目内部的换行使用 lf (0x0a)。

    其它的,你不需要看 How to Edit Zsetup Files 这个文件,只需要按照我下面的说明就行:

    1。WoG选项中最左下的标签,第七个屏幕是专门给人进行定制脚本选项的,有左上,右上,左下,右下,四个框,每个框可以存放11个选项,因此一个页面总共可以存放44个选项。
    2。使用官方的 erm_s 编辑器,打开我的例子 script85.ers 会发现里面有 11 列,
    第一列是注释,想怎么写都行。
    第二列是对应脚本号,如果你写86,就只能在script86.erm中读取到这个选项
    第三列是页号,我们的定制脚本固定填写7就行了。
    第四列是栏号,左上为0,左下为1,右上为2,右下为3。
    第五列是序号,一共可以填11个,如果自动填就是 -1。一般选负1就够了。
    第六列是值,填1或者0,这个选项是无效的,所以可以随便填。
    第七列与第六列相同,也是1或者0,不起任何作用,随便填。
    第八列就是选项号:就是你定义的WoG选项号,一般250以上的号码是自由的,请到[wiki]ERM[/wiki]登记平台 http://bbs.h3wog.com/ermres/ 中先去注册编号再使用。
    第九列是简短说明:就是复选框后面的那行文字
    第十列是底部说明:就是屏幕底部出的文字
    第十一列是详细说明:就是鼠标右键后弹出的文字。

    大家每个人,例如做了  script90.erm 之后,再做一个 script90.ers 就可以增加选项了。

    在erm中检查选项的命令例子:
    !#UN:P250/?v2500;
    上面这个命令检查 250 选项的止,并且放到变量 v2500 中,你的可以自己处理。

    [ 本帖最后由 poet 于 2009-2-24 19:03 编辑 ]
    回复

    使用道具 举报

  • TA的每日心情
    慵懒
    2024-2-19 08:40
  • 签到天数: 507 天

    连续签到: 1 天

    [LV.9]龙巫妖

    5022

    回帖

    10万

    金币

    0

    精华

    论坛嘉宾

    Rank: 9Rank: 9Rank: 9

    积分
    13463

    退役版主

    发表于 2009-2-24 14:49:16 | 显示全部楼层
    看着眼晕呀,俺倒下
    回复

    使用道具 举报

     成长值: 26815

  • TA的每日心情
    无聊
    2020-5-27 00:09
  • 签到天数: 24 天

    连续签到: 2 天

    [LV.4]狂狼人

    5765

    回帖

    2696万

    金币

    42

    精华

    管理员

    精灵奇侠

    Rank: 12Rank: 12Rank: 12

    积分
    9244658

    社区QQ达人论坛创始人杰出贡献论坛元老

     楼主| 发表于 2009-2-24 15:55:10 | 显示全部楼层
    Originally posted by poet at 2009-2-24 14:43
    其实看懂这个很难,我也是摸索了半天,最后发现原来制作 .ers 文件是最好的办法,参考我的脚本就明白怎么做了。

    所以大多数制作者所需要做的事情只是:把我的 script85.ers 复制过去,然后修改成自己需要的,就行 ...

    的确,如果是简单的利用ERT文件来做的话,还是有瑕疵的,最好的办法就是直接修改Zsetup001.txt这个文件,在文件中直接添加脚本开关。但目前来说,对Zsetup001.txt进行伤筋动骨的改造,非得要有较多的脚本后才比较适宜。我发现,Poet的新脚本,在引入ERT文件后,[wiki]WoG设置菜单[/wiki]的第一页“[wiki]WoG化[/wiki]选项”有了些许变化,似乎少了一个选项。
    回复

    使用道具 举报

    该用户从未签到

    906

    回帖

    9696

    金币

    2

    精华

    5级 Honorable Hero

    Rank: 5Rank: 5

    积分
    4086

    退役版主

    发表于 2009-2-24 18:58:36 | 显示全部楼层
    原帖由 yunings 于 2009-2-24 15:55 发表
    的确,如果是简单的利用ERT文件来做的话,还是有瑕疵的,最好的办法就是直接修改Zsetup001.txt这个文件,在文件中直接添加脚本开关。但目前来说,对Zsetup001.txt进行伤筋动骨的改造,非得要有较多的脚本后才比较适 ...


    貌似直接修改的办法不利于发布。你想像一下,当你发布脚本,或者发布脚本的更新版本的时候,你是让人家下载两个文件方便呢?还是让人家去替换 zsetup01.txt 文件方便?要知道每个人的 zsetup01.txt 不一定是一样的,因为每个人实际可能包含不同的脚本(例如木瓜的zsetup01,官方的英文zsetup01,官方的中文zsetup01,还有其他人定制的。)

    如果每个人只需要随自己的脚本发布自己的 ers 文件(云斯注意是ers不是ert文件),这样发布起来就很方便,否则就存在要让人去修改自己的文件的问题(你不能强行替换人家的私有文件,只能让人家自己去改)。
    回复

    使用道具 举报

    该用户从未签到

    4

    回帖

    4

    金币

    0

    精华

    1级 Hired Hero

    Rank: 1

    积分
    88
    发表于 2009-2-24 19:30:47 | 显示全部楼层

    How to Edit Zsetup Files

    如何编辑自定义菜单 - 2004年7月14日

    **在尝试编辑这些文件之前,请阅读此文档,非常重要!**

    以下两个文件用于WoG选项的开关:

    -Zsetup00.txt
    -Zsetup01.txt

    这些文件可以在普通文本编辑器中编辑,比如记事本,或者ERM脚本编辑器。
    编辑好以后,拷贝到你的 Heroes3\Data 文件夹下,替换内部文件的默认设置,要恢复默认设置,在Data文件夹下将这些文件删除即可。(译者注:替换前注意备份。)

    这些文件采用表格形式描述(每个区域之间用制表符分隔),因此在表格格式下对它们进行编辑更加方便。要在表格格式下编辑,请在脚本编辑器中打开自定义菜单文件,然后打开File菜单,选择“Reopen as Table”。然后让列宽随内容自动调整,以便于阅读,找到双向箭头上标有字母“A”的按钮,按下紧挨着该按钮的向下小箭头,选择“Autosize all columns”。

    下面我描述一下文件 Zsetup00.txt 和 Zsetup01.txt 的内容。

    ZSETUP00.TXT - 这个文件存储 WoG 化说明文本的信息,页码(用0到7标记),以及每一页中的四组标题(编码0到3)。因此菜单选项可以增加到八页,而 WoG3.58 现在只用到六页。

    第0行 - 这是标题行,应单独留出。
    第1行 - WoG菜单的名称,出现在游戏屏幕的上部。
    第2行 - 对上述名称的提示文本。
    第3行 - 右击上述名称时的提示文本(右击时当前显示提示信息)。
    第4行 - 详细的介绍文本,当你打开WoG菜单时出现。
    第5行 - WoG菜单第0页的名称。
    第6行 - WoG菜单第0页的提示文本。
    第7行 - WoG菜单第0页的描述信息。
    .
    .
    .
    第26行 - WoG菜单第7页的名称。
    第27行 - WoG菜单第7页的提示文本。
    第28行 - WoG菜单第7页的描述信息。

    第29行 - WoG菜单第0页左上选项组的名称。
    第30行 - WoG菜单第0页左上选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第31行 - WoG菜单第0页左上选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    第32行 - WoG菜单第0页左下选项组的名称。
    第33行 - WoG菜单第0页左下选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第34行 - WoG菜单第0页左下选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    第35行 - WoG菜单第0页右上选项组的名称。
    第36行 - WoG菜单第0页右上选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第37行 - WoG菜单第0页右上选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    第38行 - WoG菜单第0页右下选项组的名称。
    第39行 - WoG菜单第0页右下选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第40行 - WoG菜单第0页右下选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    .
    .
    .
    第113行 - WoG菜单第7页左上选项组的名称。
    第114行 - WoG菜单第7页左上选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第115行 - WoG菜单第7页左上选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    第116行 - WoG菜单第7页左下选项组的名称。
    第117行 - WoG菜单第7页左下选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第118行 - WoG菜单第7页左下选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    第119行 - WoG菜单第7页右上选项组的名称。
    第120行 - WoG菜单第7页右上选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第121行 - WoG菜单第7页右上选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。
    第122行 - WoG菜单第7页右下选项组的名称。
    第123行 - WoG菜单第7页右下选项组鼠标停留在名称上时的提示文本(目前与右击时信息一致)。
    第124行 - WoG菜单第7页右下选项组鼠标右击名称时的提示文本(目前与鼠标停留时信息一致)。

    第125行......第133行 - 保存/加载 菜单信息。


    ZSETUP01.TXT - 这个文件存储所有的 WoG 化脚本选项的信息。这些选项可以放置在八页中的任何一页(0...7)以及该页中四个选项组的任何一组(0...3)。四个选项组加在一起,WoG菜单每一页最多可显示44个选项。

    第1行 - 这是标题行,最好单独空留。这一行是必须包含的。
    第2行 - 每一列的标题,供参考。这一行可以编辑,但是不可以移动。
    第3行以后 - 从第三行开始,每一行都包含了一个WoG选项的详细说明。

    第1列 - 注释区域。这一列可以是任何东西,常见的是脚本的描述或者名称,脚本作者编辑文件时也用作提示信息。

    第2列 - 脚本编号,例如:80(意为script80.erm)。WoG脚本必须放在Data\s文件夹下,并且命名为“script##.erm”,当地图被WoG化时,这些脚本将被加载。##是指从“00”到“99”,因此script94.erm是有效的WoG化脚本,而script102.erm是无效的(地图WoG化时,它将被忽略)。

    注:一些脚本还有相搭配的ERT或者ERS文件(例如:script80.ert或者script80.ers)。ERT文件是包含相对应脚本的文本信息的文件,用于使得翻译成其它语言时更加容易(ERM脚本编辑器中有自动ERT化的选项,也有去除脚本ERT化的方法)。ERS文件就像是只有单独一行的setup01.txt文件,而且仅仅应用于某一个WoG脚本。如果某一个脚本在Zsetup01.txt 中有一个入口,那么该脚本就不应该有ERS文件,否则你将会因为WoG菜单选项屏幕有两个入口而不是一个,导致程序终止。

    第3列 - 页码。这里是你添加进去的脚本选项所在的WoG菜单的页码。页码编号从0到7(WoG3.58中只用了0到5)。

    第4列 - 选项组编号。每一个WoG菜单页面都有四个选项组,它们按照以下关系对应:0 = 左上,1 = 左下,2 = 右上,3 = 右下。

    第5列 - 项目编号。这里可以使得新的选项出现在菜单页面选项组里。用-1表示在列表底部添加选项。

    第6列 - 初始状态。这里是各脚本选项的初始状态:当程序加载时,打开(1)或者关闭(0)。

    第7列 - 多人游戏状态。这个区域在3.58中仍然是必须的,尽管它实际上不再被用到。在3.57中当多人游戏按钮被按下时,它表示各选项的状态:打开(1)或者关闭(0)。而在3.58中,你只须将它们设置成与第6列相同的值即可。

    第8列 - ERM编号。这个编号是唯一的,因此你的脚本可以检测某个选项是否已经被玩家打开或者关闭。3.58中总共有1000个有效编号,其中一些编号已经用到了(3.59中将用到更多)。小于11以及大于899的编号已被用到或者为硬编码选项保留。一般来说,大部分脚本用到与它们的脚本编号相同的数字,而当存在多项选择时,也有一些用到额外的数字编码(例如:地图规则脚本)。为安全起见,把脚本编号放在这里(例如:80),考虑 Usage358.txt 文件中记录的3.58中已用编号的完整清单。

    第9列 - 选项名称。这是出现在选项检测开关旁边的文本。

    第10列 - 鼠标移动到选项上时的描述。这里是鼠标移动到某个选项上时出现在屏幕底部的文本。

    第11列 - 选项右击描述。这里是右键点击选项时所看到的文本。

    如果你想在特定区域换行(比如说:多行描述),你就需要用脚本编辑器,或者手动复制文本到新的一行。

    在你的脚本中,你还需要检测WoG选项的设置,这里用到一个UN:P命令。有效的ERM编号(UN:P数字)非常多,但是很多已经被用过了。编号10以上的大部分脚本所用的ERM编号与其脚本编号相同,因此,从78到99的脚本编号以及ERM编号目前在WoG3.58版本时代是有效的。选项数字250-899目前也没有用到。

    例子:检测 script88 是否被开启,你可能用下面这样的语句:

    !#UN:P88/?v6500;

    那么不管什么地方,你如果有一个触发器,就可以简单地给它赋值:&v6500=1,脚本也仅在开启时才有效。
    回复

    使用道具 举报

    该用户从未签到

    2134

    回帖

    9786

    金币

    3

    精华

    4级 Famous Hero

    水客帝国炽天使

    Rank: 4

    积分
    2701

    退役版主

    发表于 2009-3-2 07:25:14 | 显示全部楼层
    原帖由 yunings 于 2009-2-24 15:55 发表

    的确,如果是简单的利用ERT文件来做的话,还是有瑕疵的,最好的办法就是直接修改Zsetup001.txt这个文件,在文件中直接添加脚本开关。但目前来说,对Zsetup001.txt进行伤筋动骨的改造,非得要有较多的脚本后才比较适宜。我发现,Poet的新脚本,在引入ERT文件后,WoG设置菜单的第一页“WoG化选项”有了些许变化,似乎少了一个选项。


    少了第一个选项:WoG化随机地图        只有随机地图或以"Wogify_"开头的地图将被WoG化。        只有随机地图或以"Wogify_"开头的地图被WoG化。
    回复

    使用道具 举报

    该用户从未签到

    1551

    回帖

    1万

    金币

    4

    精华

    4级 Famous Hero

    Rank: 4

    积分
    2102

    退役版主论坛元老

    发表于 2009-3-2 11:11:49 | 显示全部楼层
    原帖由 poet 于 2009-2-24 14:43 发表
    其实看懂这个很难,我也是摸索了半天,最后发现原来制作 .ers 文件是最好的办法,参考我的脚本就明白怎么做了。

    所以大多数制作者所需要做的事情只是:把我的 script85.ers 复制过去,然后修改成自己需要的,就行 ...



    晕了~~~怎么我的erm_s能支持输入中文?

    话说我一直用erm_s来进行ers的编写= =
    回复

    使用道具 举报

    ahome_bigavatar:guest
    ahome_bigavatar:welcomelogin
    您需要登录后才可以回帖 登录 | 英雄注册|Register

    本版积分规则

    捐赠
    关注我们,英3Mod一网打尽!

    WoG中文站 ( 辽B2-20210485-10 )|辽公网安备 21128202000228 号

    GMT+8, 2024-3-28 21:14 , Processed in 0.606182 second(s), 25 queries , Gzip On, File On.

    Powered by Discuz! X3.4

    Copyright © 2004-2022, Beijing Second Sight Technology Co., LTD.

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