【漢化】YEP.98 – Common Event Menu

YEP.98 – Common Event Menu


Introduction


The Common Event Menu allows you to create your own custom menu setups. When using it, you can list whatever common events you so wish and generate a menu that when selecting the menu command, it will run the common event. This common event menu setup allows you to utilize a help window, a picture window, and a subtext window to allow for your own personal touch when using the common event window.

公共事件菜單允許制作自定義菜單設(shè)置祖驱,當(dāng)你使用它時(shí),你可以選擇你希望執(zhí)行的公共事件列表產(chǎn)生一個(gè)菜單峦失。這個(gè)公共事件菜單允許你顯示幫助信息光羞,圖片和下標(biāo)文本踱讨。


Instructions


The common event menu is constructed purely by plugin commands. You’ll have to carefully construct each plugin command to make the common event list appear the way you want. The following is an example of how to set up a common event menu with the default window layout:

這個(gè)公共事件菜單可以通過插件命令制作锣夹。你可以創(chuàng)建不同的菜單列表。下面是一些例子笼才。

SetCommonEventMenuSettings Default Setup
ClearCommonEventMenu
AddCommonEventMenu 1 2 3 4 5
SetCommonEventMenuCancel 0
OpenCommonEventMenu

To find out more details about how to set up the common event menus, be sure to read through the help file carefully!

如果你想知道更多設(shè)置細(xì)節(jié),請?jiān)敿?xì)閱讀幫助文件


Comment Tags


Common Events in RPG Maker MV do not have their own notetags. So to make up for that, we’ll be using comments instead. Simply create a comment event within the common event that will be used inside of the menu and use any of these comment tags:

MV中公共事件并沒有他們的標(biāo)簽欄媳危,所以我們使用事件中的注釋命令荞彼。你可以使用下面的語句來簡便的創(chuàng)建菜單

Common Event Comment Tags:

<Menu Name: x>

– This changes the appearance of the common event’s text when displayed in the common event menu list. If this tag isn’t used, the text displayed will be the common event’s name. You can use text codes.

菜單名字,如果沒有設(shè)置待笑,則顯示公共事件名字

<Icon: x>

– This changes the icon of the common event to x. If this tag isn’t used, the icon used will be the one set in the plugin’s parameters.

菜單圖標(biāo)鸣皂,如果沒有設(shè)置,則顯示插件參數(shù)里的值

<Picture: x>

– This sets a picture to be associated with this common event when it is highlighted. If this isn’t used, no picture will be displayed and it will be left empty.

菜單圖片滋觉,如果沒有設(shè)置签夭,則不會(huì)顯示

<Help Description>
text
text
</Help Description>

– This sets the help description used for the common event when it is selected in the common even menu list. If this tag isn’t used, the text displayed will be the default text from the plugin’s parameters.

設(shè)置幫助文本框,如果沒有設(shè)置椎侠,則顯示插件參數(shù)里的值

<Subtext>
text
text
</Subtext>

– This sets the subtext used for the common event menu’s subtext window while this common event is selected in the common event menu list. If this text isn’t used, the text displayed will be the default text from the plugin’s parameters.

設(shè)置幫助下標(biāo)文本第租,如果沒有設(shè)置,則顯示插件參數(shù)里的值


Lunatic Mode – Enabling/Disabling Common Events


For those with JavaScript experience, you can use the following comment tags for your common events to be enabled or disabled:

如果你有JavaScript經(jīng)驗(yàn)我纪,可以使用下面的標(biāo)簽

Common Event Comment Tags:

<Menu Enable Eval>
if ($gameSwitches.value(10)) {
enabled = true;
} else {
enabled = false;
}
</Menu Enable Eval>

– The ‘enabled’ variable determines if the common event can be selected or not. In the example above, Switch 10 needs to be ON in order for this common event to be selected.

開關(guān)10打開慎宾,菜單才可以選擇


Lunatic Mode – Showing/Hiding Common Events


For those with JavaScript experience, you can use the following comment tags for your common events to be shown or hidden:

如果你有JavaScript經(jīng)驗(yàn),可以使用下面的標(biāo)簽

Common Event Comment Tags:

<Menu Visible Eval>
if ($gameSwitches.value(20)) {
visible = true;
} else {
visible = false;
}
</Menu Visible Eval>

– The ‘visible’ variable determines if the common event is shown or hidden in the common event menu list. In the example above, Switch 20 needs to be ON in order for this common event to be visible and shown.

開關(guān)20打開浅悉,菜單才可以顯示


Plugin Commands


The following plugin commands are used to work the Common Event Menu. Look over each of the settings carefully:

你可以使用下面的插件命令

Plugin Command:

ClearCommonEventMenu
– This clears all the listed common events from the Common Event Menu Data pool meaning it has to be filled again. You can do so with the next plugin command:

清除公共事件菜單所有的事件

AddCommonEventMenu 1
AddCommonEventMenu 2, 3, 4, 5
AddCommonEventMenu 6 through 10

– This will add the listed common event numbers into the common event list that will be shown in the common event menu.

添加公共事件

SetCommonEventMenuCancel 20

– This will set the cancel button for the common event menu to run common event 20 when canceled. If it is left at 0, no event will run, but the menu can allow the cancel button to be pressed (and prematurely end it).

設(shè)置取消按鈕執(zhí)行的公共事件

DisableCommonEventMenuCancel

– This will disable the cancel button for the common event menu from being pressed. Pressing cancel while the common event menu is active will do nothing. Use ‘SetCommonEventMenuCancel x’ to re-enable the cancel button.

關(guān)閉取消按鈕

OpenCommonEventMenu

– After you’ve set everything up, this command will be used to open up the common event menu. This can be used on the map. If you are using the Battle Engine Core, this menu can be opened in battle as well. All of the common events listed by the ‘AddCommonEventMenu’ plugin command will appear in this list.

打開公共事件菜單趟据。如果你使用了 Battle Engine Core,你可以在戰(zhàn)斗中打開它术健。

CommonEventMenuX 0
CommonEventMenuY this.fittingHeight(2)
CommonEventMenuWidth Graphics.boxWidth / 2
CommonEventMenuHeight Graphics.boxHeight – this.fittingHeight(2)
CommonEventMenuOpacity 255
CommonEventMenuColumns 1

– These plugin commands allow you to adjust the x, y, width, height, opacity, and the number of columns used for the main common event menu list. Make sure all of these settings are done BEFORE the common event menu is opened with the ‘OpenCommonEventMenu’ plugin command.

這些插件命令可以調(diào)整菜單位置汹碱,寬高,透明度荞估,列數(shù)咳促。確保這些插件命令在OpenCommonEventMenu命令之前

ShowCommonEventMenuHelp
HideCommonEventMenuHelp

– This will allow you to decide if the help window will be shown or hidden for the next ‘OpenCommonEventMenu’ plugin command usage.

對于后面的打開菜單命令,隱藏菜單幫助窗口

CommonEventMenuHelpX 0
CommonEventMenuHelpY 0
CommonEventMenuHelpWidth Graphics.boxWidth
CommonEventMenuHelpHeight this.fittingHeight(2)
CommonEventMenuHelpOpacity 255

– These plugin commands allow you to adjust the x, y, width, height, and opacity of the help window for the common event menu list. Make sure all of these settings are done BEFORE the common event menu is opened with the ‘OpenCommonEventMenu’ plugin command.

這些插件命令可以調(diào)整菜單幫助窗口位置勘伺,寬高跪腹,透明度。確保這些插件命令在OpenCommonEventMenu命令之前

ShowCommonEventMenuPicture
HideCommonEventMenuPicture

– This will allow you to decide if the help window will be shown or hidden for the next ‘OpenCommonEventMenu’ plugin command usage.

對于后面的打開菜單命令飞醉,隱藏菜單圖片

CommonEventMenuPictureX Graphics.boxWidth / 2
CommonEventMenuPictureY this.fittingHeight(2)
CommonEventMenuPictureWidth Graphics.boxWidth / 2
CommonEventMenuPictureHeight this.fittingHeight(10)
CommonEventMenuPictureOpacity 255

– These plugin commands allow you to adjust the x, y, width, height, and opacity of the picture window for the common event menu list. Make sure all of these settings are done BEFORE the common event menu is opened with the ‘OpenCommonEventMenu’ plugin command.

這些插件命令可以調(diào)整菜單圖片位置冲茸,寬高,透明度缅帘。確保這些插件命令在OpenCommonEventMenu命令之前

ShowCommonEventMenuSubtext
HideCommonEventMenuSubtext

– This will allow you to decide if the help window will be shown or hidden for the next ‘OpenCommonEventMenu’ plugin command usage.

對于后面的打開菜單命令轴术,隱藏菜單下標(biāo)文本

CommonEventMenuSubtextX Graphics.boxWidth / 2
CommonEventMenuSubtextY Graphics.boxHeight – height
CommonEventMenuSubtextWidth Graphics.boxWidth / 2
CommonEventMenuSubtextHeight Graphics.boxHeight – this.fittingHeight(2) – this.fittingHeight(10)
CommonEventMenuSubtextOpacity 255

– These plugin commands allow you to adjust the x, y, width, height, and opacity of the subtext window for the common event menu list. Make sure all of these settings are done BEFORE the common event menu is opened with the ‘OpenCommonEventMenu’ plugin command.

這些插件命令可以調(diào)整菜單下標(biāo)文本位置,寬高钦无,透明度逗栽。確保這些插件命令在OpenCommonEventMenu命令之前

SetCommonEventMenuSettings Default Setup
SetCommonEventMenuSettings Basic Setup

– This allows you to set the common event windows to position themselves to the default setup provided by the plugin parameters or a basic setup made of just the main list and a help window.

設(shè)置菜單為默認(rèn)設(shè)置,或者對于列表和幫助的基本設(shè)置


Happy RPG Making!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末铃诬,一起剝皮案震驚了整個(gè)濱河市祭陷,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌趣席,老刑警劉巖兵志,帶你破解...
    沈念sama閱讀 218,607評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異宣肚,居然都是意外死亡想罕,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,239評論 3 395
  • 文/潘曉璐 我一進(jìn)店門霉涨,熙熙樓的掌柜王于貴愁眉苦臉地迎上來按价,“玉大人,你說我怎么就攤上這事笙瑟÷ジ洌” “怎么了?”我有些...
    開封第一講書人閱讀 164,960評論 0 355
  • 文/不壞的土叔 我叫張陵往枷,是天一觀的道長框产。 經(jīng)常有香客問我,道長错洁,這世上最難降的妖魔是什么秉宿? 我笑而不...
    開封第一講書人閱讀 58,750評論 1 294
  • 正文 為了忘掉前任,我火速辦了婚禮屯碴,結(jié)果婚禮上描睦,老公的妹妹穿的比我還像新娘。我一直安慰自己导而,他們只是感情好忱叭,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,764評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著嗡载,像睡著了一般窑多。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上洼滚,一...
    開封第一講書人閱讀 51,604評論 1 305
  • 那天埂息,我揣著相機(jī)與錄音,去河邊找鬼遥巴。 笑死千康,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的铲掐。 我是一名探鬼主播拾弃,決...
    沈念sama閱讀 40,347評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼摆霉!你這毒婦竟也來了豪椿?” 一聲冷哼從身側(cè)響起奔坟,我...
    開封第一講書人閱讀 39,253評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎搭盾,沒想到半個(gè)月后咳秉,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,702評論 1 315
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡鸯隅,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,893評論 3 336
  • 正文 我和宋清朗相戀三年澜建,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片蝌以。...
    茶點(diǎn)故事閱讀 40,015評論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡炕舵,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出跟畅,到底是詐尸還是另有隱情咽筋,我是刑警寧澤,帶...
    沈念sama閱讀 35,734評論 5 346
  • 正文 年R本政府宣布徊件,位于F島的核電站晤硕,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏庇忌。R本人自食惡果不足惜舞箍,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,352評論 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望皆疹。 院中可真熱鬧疏橄,春花似錦、人聲如沸略就。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,934評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽表牢。三九已至窄绒,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間崔兴,已是汗流浹背彰导。 一陣腳步聲響...
    開封第一講書人閱讀 33,052評論 1 270
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留敲茄,地道東北人位谋。 一個(gè)月前我還...
    沈念sama閱讀 48,216評論 3 371
  • 正文 我出身青樓,卻偏偏與公主長得像堰燎,于是被迫代替她去往敵國和親掏父。 傳聞我的和親對象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,969評論 2 355

推薦閱讀更多精彩內(nèi)容