Play Journal Entries

Petit computer 3

ST.HMVそらまめnasyo36

10/21/2017 2:27 AM ·Spoilers

誰かパスワードみたいなものの作り方を教えてください。

Advertisement

Comment

This post has no comments.

  • ぼく、初心者です。パスワードは数字ですか?ひらがな、カタカナですか?ちなみにぼくは数字なので変数を使いました。それとINPUT命令とIF命令、THEN命令を使いました。

    Yeahs0
  • (例) ACLS INPUT "パスワードを入力してください";変数A ↓パスワード ↓成功したときの処理 IF 変数A==12345 THEN PRINT"成功です" 失敗の場合の処理はまだ作っていません。すいません。

    Yeahs0
  • ちがかったらすいません。

    Yeahs0
  • パスワードが文字列の場合と失敗したときのやつです。 ただ、このやり方だとプログラムリストを覗いたり書き換えたりしたら普通に入られてしまうので工夫があると良いです。 (そもそもプチコンはパスワードに向いてない)

    Yeahs1
    Played
  • 昔のゲームでは(と言うか今のゲームも変わらないかも知れませんが)、特定の順番でボタンを押すと、自機がフル装備になったり、フライング・アッパーカットを繰り出したりしましたが、添付は、そういう感じの処理を実現するものです。 DATA文を見れば、どんな順番でボタンを押せばよいかが分かります。

    Yeahs2
    Played
  • ありがとうございます こんな感じでやってみました。 ACLS INPUT "パスワードをにゅうりょくしてください"A$ IF A$=="2485"BEEP 000 ACLS ーーーーメインーーーー

    Yeahs1
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-DPU-2NLA-LPD-8KK3

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: