Forum.iFiction.Ru

iFiction.Ru · ifHub · FAQ · IFWiki · QSP · URQ · INSTEAD · AXMA

форум об interactive fiction, текстовых приключенческих играх и всём таком...

Вы не зашли.

0    0    #1
29.11.2017 18:05

HanonO
Участник (+19)
Зарегистрирован: 09.05.2017
Сообщений: 32

Question about Choice Links

Когда игроку представлен список выбора, в котором отметки могут отображаться только одним параметром, является ли эта переменная задана при нажатии или сначала обновление страницы, нажав другую ссылку, чтобы продолжить до изменения переменной?

В частности, скажем, у меня есть повторяющийся проход, где игрок находится в комнате, а кто-то пытается пробить дверь, чтобы напасть на них. На странице есть ссылка на ссылку «Запирать дверь». который устанавливает $ hold в 1.

Установлена ли переменная $ hold в 1 минуту, когда они нажимают на этот выбор, и появляется галочка? Если повторный проход повторится и проверяет переменную $ hold до того, как игрок нажимает на другую ссылку на странице, узнает ли она, что они выбрали закрытие двери?
---
When the player is presented with a choice list where the check marks can appear by only one option, is that variable set when they click, or must the page refresh first by clicking another link to proceed before the variable changes?

Specifically, say I have a repeating passage where the player is in a room and someone else is trying to break through a door to attack them. On the page is a choice link to "Hold the door shut." which sets $holding to 1.

Is the $holding variable set to 1 the minute they click the choice and the check mark appears? If the repeating passage happens again and checks the $holding variable before the player clicks another link on the page, will it recognize they have selected to hold the door shut?

Отредактировано HanonO (02.12.2017 23:04)

Неактивен

0    0    #2
29.11.2017 19:25

HanonO
Участник (+19)
Зарегистрирован: 09.05.2017
Сообщений: 32

Re: Question about Choice Links

After I posted this, it's not even working either way. Here's my code.

:: new

Here is the new page.

[[Return to first page|start]]

How many apples do you want?

<<choice 'One.;Two.;Three.' $apples>>

Enter the [[apple store]].

:: Start

[[Gather Apples|new]]

:: StoryMenu



:: StorySubtitle



:: StoryTitle

Choice Menu Not Setting Variable Test

:: apple store

Hello, you have <<print $apples>> apples!

[[start]]

The above is printing $apples, which is set by the previous choice.

:: StoryAuthor

Test


Прикрепленные файлы:
Test.sm, Размер: 556 байт, Скачано: 454

Неактивен

0    0    #3
09.12.2017 08:37

DoubleDragon
Модератор (+391, -32)
Откуда: Москва
Зарегистрирован: 07.04.2012
Сообщений: 1760
Вебсайт

Разработчик "AXMA Story Maker"

Re: Question about Choice Links

Changing the value of the specified variable occurs directly when one of the options is selected. But you can check this value only when going to the next passage.

In last version there is an error with this macro.
You can remove the $apples variable from the <<choice>> macro and check the value of the system variable $$choice.
We will correct this error in the next update.

================================

Изменение значения заданной переменной происходит непосредственно при выборе одного из вариантов. Но проверить это значение Вы можете только при переходе на следующий параграф.

В последней версии программы есть ошибка с этим макросом.
Вы можете удалить переменную $apples из макроса <<choice>> и затем проверить значение системной переменной $$choice.
Мы исправим эту ошибку в следующем обновлении.

Неактивен

Powered by PunBB
© copyright 2001–2024 iFiction.Ru