{"id":1518,"date":"2018-06-21T22:18:52","date_gmt":"2018-06-21T13:18:52","guid":{"rendered":"https:\/\/wirehead.jp\/pixdev\/?post_type=scriptreference&#038;p=1518"},"modified":"2020-06-25T16:19:56","modified_gmt":"2020-06-25T07:19:56","slug":"basicinstruction","status":"publish","type":"page","link":"https:\/\/wirehead.jp\/pixdev\/documents\/script-reference\/basicinstruction\/","title":{"rendered":"\u57fa\u672c\u547d\u4ee4"},"content":{"rendered":"<p>\u6761\u4ef6\u5206\u5c90\u3084\u30b8\u30e3\u30f3\u30d7\u7b49\u3001\u57fa\u672c\u7684\u306a\u547d\u4ee4\u7fa4\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h1>\u6761\u4ef6\u5206\u5c90<\/h1>\n<h2>if \u6761\u4ef6\u5f0f then \u6587<\/h2>\n<p>\u6761\u4ef6\u5206\u5c90\u3092\u3057\u307e\u3059<\/p>\n<h3>\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u305f\u5834\u5408 <strong>then<\/strong> \u4ee5\u964d\u3092\u5b9f\u884c\u3057\u307e\u3059<\/h3>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\nif a=0 then goto skip1\nb=1\nlabel skip1\n<\/pre>\n<h3>\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u305f\u5834\u5408 <strong>{}<\/strong> \u5185\u3092\u5b9f\u884c\u3057\u307e\u3059<\/h3>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\nif a=1 {\n    b=1\n}\nif c=1 {\n    b=2\n    if d=2 {\n        e=5\n    }\n}\n<\/pre>\n<h3>\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u305f\u5834\u5408 <strong>then<\/strong> \u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 <strong>,<\/strong> \u3067\u533a\u5207\u308c\u3070\u8907\u6570\u306e\u547d\u4ee4\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/h3>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\nif a=0 then loadLayer 0,&quot;test1.png&quot;\nif a=1 then loadLayer 0,&quot;test2.png&quot;,a=3\n<\/pre>\n<h3>\u6f14\u7b97\u8a18\u53f7\u306b\u3064\u3044\u3066<\/h3>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<th style=\"width: 50%; height: 21px;\">\u547d\u4ee4<\/th>\n<th style=\"width: 50%; height: 21px;\">\u8aac\u660e<\/th>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">+<\/td>\n<td style=\"width: 50%; height: 21px;\">\u52a0\u7b97 (A+B)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">&#8211;<\/td>\n<td style=\"width: 50%; height: 21px;\">\u6e1b\u7b97 (A-B)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">*<\/td>\n<td style=\"width: 50%; height: 21px;\">\u4e57\u7b97 (A\uff0aB)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">\/<\/td>\n<td style=\"width: 50%; height: 21px;\">\u9664\u7b97 (A\/B) \u203b0\u9664\u7b97\u306f\u30a8\u30e9\u30fc<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">MOD<\/td>\n<td style=\"width: 50%; height: 21px;\">\u5270\u4f59 (A MOD B) \u203b0\u9664\u7b97\u306f\u30a8\u30e9\u30fc<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">&gt;<\/td>\n<td style=\"width: 50%; height: 21px;\">\u5de6\u8fba\u304c\u53f3\u8fba\u3088\u308a\u5927\u304d\u3044 (A\uff1eB)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">&lt;<\/td>\n<td style=\"width: 50%; height: 21px;\">\u5de6\u8fba\u304c\u53f3\u8fba\u3088\u308a\u5c0f\u3055\u3044 (A\uff1cB)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">&gt;=<\/td>\n<td style=\"width: 50%; height: 21px;\">\u5de6\u8fba\u304c\u53f3\u8fba\u3088\u308a\u5927\u304d\u3044\u304b\u7b49\u3057\u3044 (A\uff1e=B) \u203b=\uff1e\u306f\u7981\u6b62<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">&lt;=<\/td>\n<td style=\"width: 50%; height: 21px;\">\u5de6\u8fba\u304c\u53f3\u8fba\u3088\u308a\u5c0f\u3055\u3044\u304b\u7b49\u3057\u3044 (A\uff1c=B) \u203b=\uff1c\u306f\u7981\u6b62<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">=<\/td>\n<td style=\"width: 50%; height: 21px;\">\u4e21\u8fba\u304c\u7b49\u3057\u3044 (A=B)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">&lt;&gt;<\/td>\n<td style=\"width: 50%; height: 21px;\">\u4e21\u8fba\u304c\u7b49\u3057\u304f\u306a\u3044 (A&lt;&gt;B)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">AND<\/td>\n<td style=\"width: 50%; height: 21px;\">\u8ad6\u7406\u7a4d (A AND B)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">OR<\/td>\n<td style=\"width: 50%; height: 21px;\">\u8ad6\u7406\u548c (A OR B)<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">NOT<\/td>\n<td style=\"width: 50%; height: 21px;\">NOT|\u5426\u5b9a (NOT A)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30ab\u30c3\u30b3\u304c\u3064\u3044\u305f\u65b9\u304c\u512a\u5148\u9806\u4f4d\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059<\/p>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\nif a=0 then goto test01\nif a=0 and b&amp;amp;amp;lt;&amp;amp;amp;gt;0 then goto test02\na=(b+c)\/2\n<\/pre>\n<h1>\u30b8\u30e3\u30f3\u30d7<\/h1>\n<h2>label \u30e9\u30d9\u30eb\u540d<\/h2>\n<p>\u30e9\u30d9\u30eb\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u30e9\u30d9\u30eb\u306f\u30b2\u30fc\u30e0\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\u6642\u306b\u7cbe\u67fb\u3055\u308c\u3001\u91cd\u8907\u304c\u3042\u3063\u305f\u5834\u5408\u306a\u3069\u306f\u305d\u306e\u6bb5\u968e\u3067\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\n\n\/\/ \u30b3\u30f3\u30c6\u30a3\u30cb\u30e5\u30fc -----------------------\nlabel title_continue\nscreen.black.out(60)\nwait.frame(60)\nnetwork.news.close()\nautoLoadSystem\nscreen.black.in(60)\ngoto title\n\n<\/pre>\n<h2>goto \u30e9\u30d9\u30eb\u540d<\/h2>\n<p>\u30e9\u30d9\u30eb\u540d\u306b\u30b8\u30e3\u30f3\u30d7\u3057\u307e\u3059<\/p>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\ngoto test_01\n<\/pre>\n<h2>gosub \u30e9\u30d9\u30eb\u540d<\/h2>\n<p>\u30e9\u30d9\u30eb\u540d\u306b\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u30b8\u30e3\u30f3\u30d7\u3057\u307e\u3059<\/p>\n<pre><pre class=\"brush: cpp; title: \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9; notranslate\" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">\ngosub flash01\n\nlabel flash01\nflash\nreturn\n<\/pre>\n<h1>\u7e70\u308a\u8fd4\u3057<\/h1>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6e96\u5099\u4e2d\u3067\u3059<\/p>\n<ul>\n<li>for next<\/li>\n<\/ul>\n<h1>\u30de\u30af\u30ed<\/h1>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6e96\u5099\u4e2d\u3067\u3059<\/p>\n<ul>\n<li>macro<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6761\u4ef6\u5206\u5c90\u3084\u30b8\u30e3\u30f3\u30d7\u7b49\u3001\u57fa\u672c\u7684\u306a\u547d\u4ee4\u7fa4\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8816,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/pages\/1518"}],"collection":[{"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/comments?post=1518"}],"version-history":[{"count":5,"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/pages\/1518\/revisions"}],"predecessor-version":[{"id":8828,"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/pages\/1518\/revisions\/8828"}],"up":[{"embeddable":true,"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/pages\/8816"}],"wp:attachment":[{"href":"https:\/\/wirehead.jp\/pixdev\/wp-json\/wp\/v2\/media?parent=1518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}