экран постоянно обновляется, когда я добираюсь до этой точки в моей игре - PullRequest
1 голос
/ 03 апреля 2019

в моей игре «Темный / Затерянный лес». Я работаю над тем, где вы получите союзника и / или оружие, но когда я иду в эту область, текст продолжает обновляться, и я не могу ввести любые команды

Я пытался принудительно установить check_1% в 1, но это не сработало

smithery:

CLS

Saythis "As you walk into the smithery you notice swords, axes, hammers and tools used for forging are lining the walls, some newer than others but none of them have rusted or gone uncleaned, smith must care about his works, you also smell coals burning as you notice smith is flattening a rod of hot iron which looks like a sword,"
IF check_1% = 1 THEN PRINT "(1) Hello Smith, are the weapons I requested done?" ELSE PRINT "(1) Hello Smith, I would like to buy some weapons"
IF check_1% = 1 THEN PRINT "(2) Hello Smith, I would like to buy some weapons." ELSE PRINT "(2) Hello Smith, I would like to requst you to make some weapons."
PRINT "(3) Hey Smith, do you wanna joinme in my adventure?"
PRINT ""
PRINT "what will you do/say?"

SELECT CASE smithery$

    CASE "1"
        IF check_1% = 1 GOTO smithery1a ELSE GOTO smithery1b
    CASE "2"
        GOTO smithery2a
    CASE "3"
        GOTO smithery3a
    CASE ELSE
        GOTO smithery

END SELECT

Я хочу, чтобы он не обновлял экран, как сумасшедший

iвспомнил, почему это происходит, я не добавил input

smithery:

CLS

Saythis "As you walk into the smithery you notice swords, axes, hammers and tools used for forging are lining the walls, some newer than others but none of them have rusted or gone uncleaned, smith must care about his works, you also smell coals burning as you notice smith is flattening a rod of hot iron which looks like a sword,"
IF check_1% = 1 THEN PRINT "(1) Hello Smith, are the weapons I requested done?" ELSE PRINT "(1) Hello Smith, I would like to buy some weapons"
IF check_1% = 1 THEN PRINT "(2) Hello Smith, I would like to buy some weapons." ELSE PRINT "(2) Hello Smith, I would like to requst you to make some weapons."
PRINT "(3) Hey Smith, do you wanna joinme in my adventure?"
PRINT ""
INPUT "what will you do/say?", smithery$

SELECT CASE smithery$

    CASE "1"
        IF check_1% = 1 GOTO smithery1a ELSE GOTO smithery1b
    CASE "2"
        GOTO smithery2a
    CASE "3"
        GOTO smithery3a
    CASE ELSE
        GOTO smithery

END SELECT

1 Ответ

0 голосов
/ 04 апреля 2019

добавление input сработало, я обычно забываю добавить, что

...