Battlefield-Portal-Helper の使い方① 書き出し編
使う前に必ず英語にする
まず日本語では正常に働かないため、必ず言語を英語にしてください。
日本語で作成して、このツールを使用するときのみ英語にすればよいです。
一度、保存をしてから、URLについている「/ja-jp/」を削除して開き直してください。
英語になるとこんな感じになります。
コピーする
少し雑な説明になりますが、コピーするブロックをクリックして、拡張機能を開いて、copyをクリックするとXMLが書き出されます。これをコピーしてメモ帳などに貼り付けてテキストファイルとして保存してください。
書き出されるXMLの例
改行されていませんが、コピーするとこのように1行になっています。
<pre class="wp-block-syntaxhighlighter-code"><block xmlns="https://developers.google.com/blockly/xml" type="modBlock" deletable="false" x="97" y="-296"><statement name="RULES"><block type="ruleBlock"><mutation isOnGoingEvent="false"/><field name="NAME">start</field><field name="EVENTTYPE">OnGameModeStarted</field><statement name="CONDITIONS"><block type="conditionBlock"><value name="CONDITION"><block type="Boolean"><field name="BOOL">TRUE</field></block></value></block></statement><statement name="ACTIONS"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="d*Fkr@l{t4!SXAC,FrJ4" variabletype="Global">init_flug</field></block></value><value name="VALUE-1"><block type="Boolean"><field name="BOOL">TRUE</field></block></value></block></statement><next><block type="ruleBlock"><mutation isOnGoingEvent="false"/><field name="NAME">letsgo</field><field name="EVENTTYPE">OnPlayerDeployed</field><statement name="CONDITIONS"><block type="conditionBlock"><value name="CONDITION"><block type="Boolean"><field name="BOOL">TRUE</field></block></value></block></statement><statement name="ACTIONS"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">0</field></block></value><next><block type="If"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="d*Fkr@l{t4!SXAC,FrJ4" variabletype="Global">init_flug</field></block></value></block></value><statement name="DO"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="^jUd$g.W?P|p}G6=Pj~e" variabletype="Global">top_kill_streak_player</field></block></value><value name="VALUE-1"><block type="EventPlayer"/></value><next><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player</field></block></value><value name="VALUE-1"><block type="EventPlayer"/></value><next><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="d*Fkr@l{t4!SXAC,FrJ4" variabletype="Global">init_flug</field></block></value><value name="VALUE-1"><block type="Boolean"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement></block></next></block></statement><next><block type="ruleBlock"><mutation isOnGoingEvent="false"/><field name="NAME">kill</field><field name="EVENTTYPE">OnPlayerEarnedKill</field><statement name="CONDITIONS"><block type="conditionBlock"><value name="CONDITION"><block type="Boolean"><field name="BOOL">TRUE</field></block></value></block></statement><statement name="ACTIONS"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value><value name="VALUE-1"><block type="Add"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">1</field></block></value></block></value><next><block type="If"><value name="VALUE-0"><block type="GreaterThan"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value></block></value><value name="VALUE-1"><block type="Number"><field name="NUM">5</field></block></value></block></value><statement name="DO"><block type="ShowHighlightedGameModeMessage"><value name="VALUE-0"><block type="Message"><value name="VALUE-0"><block type="Text"><field name="TEXT">{} is on {} kill streak!</field></block></value><value name="VALUE-1"><block type="EventPlayer"/></value><value name="VALUE-2"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value></block></value></block></value></block></statement><next><block type="If"><value name="VALUE-0"><block type="GreaterThan"><value name="VALUE-0"><block type="GetPlayerKills"><value name="VALUE-0"><block type="EventPlayer"/></value></block></value><value name="VALUE-1"><block type="GetPlayerKills"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player</field></block></value></block></value></block></value></block></value><statement name="DO"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player</field></block></value><value name="VALUE-1"><block type="EventPlayer"/></value></block></statement><next><block type="If"><value name="VALUE-0"><block type="GreaterThan"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value></block></value><value name="VALUE-1"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="4K7VJp~=i7Wy/vij]z,0" variabletype="Global">max_kill_streak_num</field></block></value></block></value></block></value><statement name="DO"><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="^jUd$g.W?P|p}G6=Pj~e" variabletype="Global">top_kill_streak_player</field></block></value><value name="VALUE-1"><block type="EventPlayer"/></value><next><block type="SetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="4K7VJp~=i7Wy/vij]z,0" variabletype="Global">max_kill_streak_num</field></block></value><value name="VALUE-1"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="true"/><field name="OBJECTTYPE">Player</field><field name="VAR" id="-;oegW9Ebe6NCu;IugSH" variabletype="Player">kill_streak</field><value name="OBJECT"><block type="EventPlayer"/></value></block></value></block></value></block></next></block></statement><next><block type="DisplayCustomNotificationMessage"><value name="VALUE-0"><block type="Message"><value name="VALUE-0"><block type="Text"><field name="TEXT">Top kill : {} {} kill</field></block></value><value name="VALUE-1"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player</field></block></value></block></value><value name="VALUE-2"><block type="GetPlayerKills"><value name="VALUE-0"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="?,LVvN@@.~PE:{],.S#W" variabletype="Global">top_kill_player</field></block></value></block></value></block></value></block></value><value name="VALUE-1"><block type="CustomMessagesItem"><field name="VALUE-0">CustomMessages</field><field name="VALUE-1">MessageText1</field></block></value><value name="VALUE-2"><block type="Number"><field name="NUM">10</field></block></value><next><block type="DisplayCustomNotificationMessage"><value name="VALUE-0"><block type="Message"><value name="VALUE-0"><block type="Text"><field name="TEXT">Top kill streak : {} {} kill</field></block></value><value name="VALUE-1"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="^jUd$g.W?P|p}G6=Pj~e" variabletype="Global">top_kill_streak_player</field></block></value></block></value><value name="VALUE-2"><block type="GetVariable"><value name="VALUE-0"><block type="variableReferenceBlock"><mutation isObjectVar="false"/><field name="OBJECTTYPE">Global</field><field name="VAR" id="4K7VJp~=i7Wy/vij]z,0" variabletype="Global">max_kill_streak_num</field></block></value></block></value></block></value><value name="VALUE-1"><block type="CustomMessagesItem"><field name="VALUE-0">CustomMessages</field><field name="VALUE-1">MessageText2</field></block></value><value name="VALUE-2"><block type="Number"><field name="NUM">10</field></block></value><next><block type="Resupply"><value name="VALUE-0"><block type="EventPlayer"/></value><value name="VALUE-1"><block type="ResupplyTypesItem"><field name="VALUE-0">ResupplyTypes</field><field name="VALUE-1">AmmoBox</field></block></value><next><block type="Resupply"><value name="VALUE-0"><block type="EventPlayer"/></value><value name="VALUE-1"><block type="ResupplyTypesItem"><field name="VALUE-0">ResupplyTypes</field><field name="VALUE-1">AmmoCrate</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block></pre>
コメントを残す