【漢化】Collision Checker

Collision Checker

Collision Checker

This is a plugin that allows developers to check the collision of various
coordinates/directions on the map for event collision.

這個插件可以讓開發(fā)者檢查事件的位置和方向上的碰撞

This plugin uses different codes within the “Script” section of the
Conditional Branch event. Here is a list of them:

這個插件使用腳本命令來實現

Command List

In order to check these, place them into the “Script” section of the
Conditional Branch event. These will check collisions relative to the
event in which the Conditional Branch is located in.

你需要將下列命令放入分支條件事件里面

[is [x, y] clear]

Checks to see if the spot at point (x,y) is passable.
檢查指定點是否可以通過

[is front clear]

Checks to see if the spot in front of the event is passable.
This is different based off of where the event/player is looking.
檢查前方是否可通行煌妈,和玩家面對方向有關

[is back clear]

Checks to see if the spot behind the event is passable.
This is different based off of where the event/player is looking.
檢查后方是否可通行箱残,和玩家面對方向有關

[is left clear]

Checks to see if the spot to the left of the event is passable.
This is different based off of where the event/player is looking.
檢查左側是否可通行,和玩家面對方向有關

[is right clear]

Checks to see if the spot to the right of the event is passable.
This is different based off of where the event/player is looking.
檢查右側是否可通行,和玩家面對方向有關

[is north clear]

Checks to see if the spot above the event is passable.
This consistently refers to the same direction.
檢查上方是否可通行

[is south clear]

Checks to see if the spot below the event is passable.
This consistently refers to the same direction.
檢查下方是否可通行

[is east clear]

Checks to see if the spot to the east of the event is passable.
This consistently refers to the same direction.
檢查左方是否可通行

[is west clear]

Checks to see if the spot to the west of the event is passable.
This consistently refers to the same direction.
檢查右方是否可通行

Player Command List

If you wish to check collision relative to the Player, you can use:
如果想要檢查玩家的碰撞屯曹,可以用下面的命令

[is player front clear]

[is player back clear]

[is player left clear]

[is player right clear]

[is player north clear]

[is player south clear]

[is player right clear]

[is player left clear]

Use the descriptions above to understand what these commands check for.

External Event Command List

If you wish to check collision relative to an event besides the one the
Conditional Branch is within, you can use:

如果你想檢查指定事件的碰撞抄谐,可以使用下面命令

event(x)

Simple replace ‘x’ with the ID of the Event on the map.
你只需要替代事件ID即可
You can do:

[is event(x) front clear]

[is event(x) back clear]

[is event(x) left clear]

[is event(x) right clear]

[is event(x) north clear]

[is event(x) south clear]

[is event(x) right clear]

[is event(x) left clear]

At Distance

If you wish to check a certain distance in the direction you’re checking,
you can add “at distance x”.

如果你想檢查某段距離內的情況摹蘑,你可以使用下面命令

For example:

[is up clear at distance 2]

This would check if the second tile in the up direction of the event
is clear.
上面命令會檢查向上2格內的情況

This can be added to all directional checks:

[is event(5) left clear at distance 5]
[is player down clear at distance 3]

Multiple Conditions (AND)

If you wish for multiple conditions to have to be true, place an “and”
in between each of them.

如果你想檢查多個情況凿掂,你可以使用and命令

For example:

[is player front clear] and [is east clear at distance 4]

This would only be true if the player’s front was clear and the east
tile 4 tiles away relative to the event was clear.

這將會同時檢查玩家前方,和東側4格內情況

Multiple Conditions (OR)

If you wish for only one condition to be true in order for the entire
conditional branch to be true, then you would need to use “or”.

如果你只想檢查某些情況中的某個纹蝴,可以使用OR命令

For example:

[is back clear] or [is front clear] or [is event(3) front clear]

If either the back of the event 2 tiles down is clear or is Event ID 3’s
front is clear, then the entire conditional branch will be clear.

這將會檢查前后方或事件3前方

Keep in mind it is impossible to combine AND and OR conditions.

記住不可以同時使用OR和AND

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市踪少,隨后出現的幾起案子塘安,更是在濱河造成了極大的恐慌,老刑警劉巖援奢,帶你破解...
    沈念sama閱讀 212,454評論 6 493
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件兼犯,死亡現場離奇詭異,居然都是意外死亡集漾,警方通過查閱死者的電腦和手機切黔,發(fā)現死者居然都...
    沈念sama閱讀 90,553評論 3 385
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來具篇,“玉大人纬霞,你說我怎么就攤上這事∏裕” “怎么了诗芜?”我有些...
    開封第一講書人閱讀 157,921評論 0 348
  • 文/不壞的土叔 我叫張陵瞳抓,是天一觀的道長。 經常有香客問我伏恐,道長孩哑,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,648評論 1 284
  • 正文 為了忘掉前任翠桦,我火速辦了婚禮横蜒,結果婚禮上,老公的妹妹穿的比我還像新娘销凑。我一直安慰自己丛晌,他們只是感情好,可當我...
    茶點故事閱讀 65,770評論 6 386
  • 文/花漫 我一把揭開白布闻鉴。 她就那樣靜靜地躺著茵乱,像睡著了一般。 火紅的嫁衣襯著肌膚如雪孟岛。 梳的紋絲不亂的頭發(fā)上瓶竭,一...
    開封第一講書人閱讀 49,950評論 1 291
  • 那天,我揣著相機與錄音渠羞,去河邊找鬼斤贰。 笑死,一個胖子當著我的面吹牛次询,可吹牛的內容都是我干的荧恍。 我是一名探鬼主播,決...
    沈念sama閱讀 39,090評論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼屯吊,長吁一口氣:“原來是場噩夢啊……” “哼送巡!你這毒婦竟也來了?” 一聲冷哼從身側響起盒卸,我...
    開封第一講書人閱讀 37,817評論 0 268
  • 序言:老撾萬榮一對情侶失蹤骗爆,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后蔽介,有當地人在樹林里發(fā)現了一具尸體摘投,經...
    沈念sama閱讀 44,275評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 36,592評論 2 327
  • 正文 我和宋清朗相戀三年虹蓄,在試婚紗的時候發(fā)現自己被綠了犀呼。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,724評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡薇组,死狀恐怖外臂,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情律胀,我是刑警寧澤专钉,帶...
    沈念sama閱讀 34,409評論 4 333
  • 正文 年R本政府宣布挑童,位于F島的核電站,受9級特大地震影響跃须,放射性物質發(fā)生泄漏站叼。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 40,052評論 3 316
  • 文/蒙蒙 一菇民、第九天 我趴在偏房一處隱蔽的房頂上張望尽楔。 院中可真熱鬧,春花似錦第练、人聲如沸阔馋。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,815評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽呕寝。三九已至,卻和暖如春婴梧,著一層夾襖步出監(jiān)牢的瞬間下梢,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,043評論 1 266
  • 我被黑心中介騙來泰國打工塞蹭, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留孽江,地道東北人。 一個月前我還...
    沈念sama閱讀 46,503評論 2 361
  • 正文 我出身青樓番电,卻偏偏與公主長得像岗屏,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子漱办,可洞房花燭夜當晚...
    茶點故事閱讀 43,627評論 2 350

推薦閱讀更多精彩內容