BF2042 portal で他人が作ったプログラムをコピー&ペーストする方法

このエントリーをはてなブックマークに追加

Battlefield-Portal-Helper の使い方① 書き出し編

使う前に必ず英語にする

まず日本語では正常に働かないため、必ず言語を英語にしてください。
日本語で作成して、このツールを使用するときのみ英語にすればよいです。

一度、保存をしてから、URLについている「/ja-jp/」を削除して開き直してください。

英語になるとこんな感じになります。

コピーする

少し雑な説明になりますが、コピーするブロックをクリックして、拡張機能を開いて、copyをクリックするとXMLが書き出されます。これをコピーしてメモ帳などに貼り付けてテキストファイルとして保存してください。

書き出されるXMLの例

改行されていませんが、コピーするとこのように1行になっています。

<pre class="wp-block-syntaxhighlighter-code">&lt;block xmlns="https://developers.google.com/blockly/xml" type="modBlock" deletable="false" x="97" y="-296">&lt;statement name="RULES">&lt;block type="ruleBlock">&lt;mutation isOnGoingEvent="false"/>&lt;field name="NAME">start&lt;/field>&lt;field name="EVENTTYPE">OnGameModeStarted&lt;/field>&lt;statement name="CONDITIONS">&lt;block type="conditionBlock">&lt;value name="CONDITION">&lt;block type="Boolean">&lt;field name="BOOL">TRUE&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/statement>&lt;statement name="ACTIONS">&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="d*Fkr@l{t4!SXAC,FrJ4" variabletype="Global">init_flug&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="Boolean">&lt;field name="BOOL">TRUE&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/statement>&lt;next>&lt;block type="ruleBlock">&lt;mutation isOnGoingEvent="false"/>&lt;field name="NAME">letsgo&lt;/field>&lt;field name="EVENTTYPE">OnPlayerDeployed&lt;/field>&lt;statement name="CONDITIONS">&lt;block type="conditionBlock">&lt;value name="CONDITION">&lt;block type="Boolean">&lt;field name="BOOL">TRUE&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/statement>&lt;statement name="ACTIONS">&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="Number">&lt;field name="NUM">0&lt;/field>&lt;/block>&lt;/value>&lt;next>&lt;block type="If">&lt;value name="VALUE-0">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="d*Fkr@l{t4!SXAC,FrJ4" variabletype="Global">init_flug&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;statement name="DO">&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="^jUd$g.W?P|p}G6=Pj~e" variabletype="Global">top_kill_streak_player&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="EventPlayer"/>&lt;/value>&lt;next>&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="EventPlayer"/>&lt;/value>&lt;next>&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="d*Fkr@l{t4!SXAC,FrJ4" variabletype="Global">init_flug&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="Boolean">&lt;field name="BOOL">FALSE&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/statement>&lt;/block>&lt;/next>&lt;/block>&lt;/statement>&lt;next>&lt;block type="ruleBlock">&lt;mutation isOnGoingEvent="false"/>&lt;field name="NAME">kill&lt;/field>&lt;field name="EVENTTYPE">OnPlayerEarnedKill&lt;/field>&lt;statement name="CONDITIONS">&lt;block type="conditionBlock">&lt;value name="CONDITION">&lt;block type="Boolean">&lt;field name="BOOL">TRUE&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/statement>&lt;statement name="ACTIONS">&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="Add">&lt;value name="VALUE-0">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="Number">&lt;field name="NUM">1&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;next>&lt;block type="If">&lt;value name="VALUE-0">&lt;block type="GreaterThan">&lt;value name="VALUE-0">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="Number">&lt;field name="NUM">5&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;statement name="DO">&lt;block type="ShowHighlightedGameModeMessage">&lt;value name="VALUE-0">&lt;block type="Message">&lt;value name="VALUE-0">&lt;block type="Text">&lt;field name="TEXT">{} is on {} kill streak!&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="EventPlayer"/>&lt;/value>&lt;value name="VALUE-2">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/statement>&lt;next>&lt;block type="If">&lt;value name="VALUE-0">&lt;block type="GreaterThan">&lt;value name="VALUE-0">&lt;block type="GetPlayerKills">&lt;value name="VALUE-0">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="GetPlayerKills">&lt;value name="VALUE-0">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;statement name="DO">&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/statement>&lt;next>&lt;block type="If">&lt;value name="VALUE-0">&lt;block type="GreaterThan">&lt;value name="VALUE-0">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="4K7VJp~=i7Wy/vij]z,0" variabletype="Global">max_kill_streak_num&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;statement name="DO">&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="^jUd$g.W?P|p}G6=Pj~e" variabletype="Global">top_kill_streak_player&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="EventPlayer"/>&lt;/value>&lt;next>&lt;block type="SetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="4K7VJp~=i7Wy/vij]z,0" variabletype="Global">max_kill_streak_num&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="true"/>&lt;field name="OBJECTTYPE">Player&lt;/field>&lt;field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak&lt;/field>&lt;value name="OBJECT">&lt;block type="EventPlayer"/>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/next>&lt;/block>&lt;/statement>&lt;next>&lt;block type="DisplayCustomNotificationMessage">&lt;value name="VALUE-0">&lt;block type="Message">&lt;value name="VALUE-0">&lt;block type="Text">&lt;field name="TEXT">Top kill : {} {} kill&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-2">&lt;block type="GetPlayerKills">&lt;value name="VALUE-0">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="CustomMessagesItem">&lt;field name="VALUE-0">CustomMessages&lt;/field>&lt;field name="VALUE-1">MessageText1&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-2">&lt;block type="Number">&lt;field name="NUM">10&lt;/field>&lt;/block>&lt;/value>&lt;next>&lt;block type="DisplayCustomNotificationMessage">&lt;value name="VALUE-0">&lt;block type="Message">&lt;value name="VALUE-0">&lt;block type="Text">&lt;field name="TEXT">Top kill streak : {} {} kill&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="^jUd$g.W?P|p}G6=Pj~e" variabletype="Global">top_kill_streak_player&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-2">&lt;block type="GetVariable">&lt;value name="VALUE-0">&lt;block type="variableReferenceBlock">&lt;mutation isObjectVar="false"/>&lt;field name="OBJECTTYPE">Global&lt;/field>&lt;field name="VAR" id="4K7VJp~=i7Wy/vij]z,0" variabletype="Global">max_kill_streak_num&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;/block>&lt;/value>&lt;value name="VALUE-1">&lt;block type="CustomMessagesItem">&lt;field name="VALUE-0">CustomMessages&lt;/field>&lt;field name="VALUE-1">MessageText2&lt;/field>&lt;/block>&lt;/value>&lt;value name="VALUE-2">&lt;block type="Number">&lt;field name="NUM">10&lt;/field>&lt;/block>&lt;/value>&lt;next>&lt;block type="Resupply">&lt;value name="VALUE-0">&lt;block type="EventPlayer"/>&lt;/value>&lt;value name="VALUE-1">&lt;block type="ResupplyTypesItem">&lt;field name="VALUE-0">ResupplyTypes&lt;/field>&lt;field name="VALUE-1">AmmoBox&lt;/field>&lt;/block>&lt;/value>&lt;next>&lt;block type="Resupply">&lt;value name="VALUE-0">&lt;block type="EventPlayer"/>&lt;/value>&lt;value name="VALUE-1">&lt;block type="ResupplyTypesItem">&lt;field name="VALUE-0">ResupplyTypes&lt;/field>&lt;field name="VALUE-1">AmmoCrate&lt;/field>&lt;/block>&lt;/value>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/statement>&lt;/block>&lt;/next>&lt;/block>&lt;/next>&lt;/block>&lt;/statement>&lt;/block></pre>

ページ: 1 2 3 4

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA