docs up
This commit is contained in:
parent
d082cc785c
commit
9b52694520
|
@ -1,6 +1,6 @@
|
|||
# Contributor: Peter Kosyh <p.kosyhgmail.com>
|
||||
pkgname=instead
|
||||
pkgver=1.2.0
|
||||
pkgver=1.1.911
|
||||
pkgrel=1
|
||||
pkgdesc="instead quest interpreter"
|
||||
arch=('i686' 'x86_64')
|
||||
|
|
|
@ -716,9 +716,11 @@ In the example the player chooses his dinner. After getting the food (recording
|
|||
|
||||
The reaction may have any lua code, but STEAD has some frequently used functions predefined:
|
||||
|
||||
pon(n..) — enable the phrases with numbers n... (in the example it allows to take the same food again).
|
||||
poff(n...) — disable the phrases with numbers n...
|
||||
prem(n...) — remove (block) phrases with numbers n... (blocked phrases won't be re-enabled with subsequent “pon”).
|
||||
* pon(n..) — enable the phrases with numbers n... (in the example it allows to take the same food again).
|
||||
* poff(n...) — disable the phrases with numbers n...
|
||||
* prem(n...) — remove (block) phrases with numbers n... (blocked phrases won't be re-enabled with subsequent “pon”).
|
||||
* pseen(n...) — returns true, if phrases n.. are visible;
|
||||
* punseen(n..) — returns true, if phrases n... are not visible;
|
||||
|
||||
If argument n is not present, current phrase will be affected.
|
||||
|
||||
|
@ -759,7 +761,7 @@ facectrl = dlg {
|
|||
|
||||
`_phr` — creates a disabled phrase, which can be enabled. The example also shows the use of “pon”, “poff”, “prem” methods for a dialog (see “exit”).
|
||||
|
||||
You can enable/disable phrases not only of the current put of any arbitrary dialog with the “pon”/“poff” methods of a dialog object. For example: shopman:pon(5);
|
||||
You can enable/disable/remove/check phrases not only of the current put of any arbitrary dialog with the “pon”/“poff”/“prem”/“pseen”/“pusneen” methods of a dialog object. For example: shopman:pon(5);
|
||||
|
||||
===== 15. Lightweight objects =====
|
||||
|
||||
|
|
|
@ -713,9 +713,11 @@ povardlg = dlg {
|
|||
|
||||
В реакции может быть любой lua код, но в STEAD определены наиболее часто используемые функции:
|
||||
|
||||
pon(n..) -- включить фразы диалога с номерами n... (в нашем примере -- чтобы игрок мог повторно взять еду того-же вида).
|
||||
poff(n...) -- выключить фразы диалога с номерами n...
|
||||
prem(n...) -- удалить (заблокировать) фразы диалога с номерами n... (удаление означает невозможность включения фраз. pon(n..) не приведет к включению фраз).
|
||||
* pon(n..) -- включить фразы диалога с номерами n... (в нашем примере -- чтобы игрок мог повторно взять еду того-же вида).
|
||||
* poff(n...) -- выключить фразы диалога с номерами n...
|
||||
* prem(n...) -- удалить (заблокировать) фразы диалога с номерами n... (удаление означает невозможность включения фраз. pon(n..) не приведет к включению фраз).
|
||||
* pseen(n..) -- вернет true, если все заданные фразы диалога видимы.
|
||||
* punseen(n..) -- вернет true, если все заданные фразы диалога невидимы.
|
||||
|
||||
Если параметр n не указан, действие относится к текущей фразе.
|
||||
|
||||
|
@ -756,7 +758,7 @@ facectrl = dlg {
|
|||
|
||||
`_phr` -- создает выключенную фразу, которую можно включить. Данный пример показывает также возможность использования методов pon, poff, prem для диалога (см. exit).
|
||||
|
||||
Вы можете включать/выключать фразы не только текущего, но и произвольного диалога, с помощью методов объекта диалог pon/poff. Например: shopman:pon(5);
|
||||
Вы можете включать/выключать/удалять/проверять фразы не только текущего, но и произвольного диалога, с помощью методов объекта диалог pon/poff/prem/pseen/punseen. Например: shopman:pon(5);
|
||||
|
||||
===== 15. Облегченные объекты =====
|
||||
|
||||
|
@ -916,6 +918,7 @@ is_music() позволяет узнать, проигрывается ли му
|
|||
|
||||
===== 18. Полезные советы =====
|
||||
==== Модули ====
|
||||
* [[ru:gamedev:modules|Полный список модулей]]
|
||||
Начиная с версии 1.2.0 появилась возможность использования модулей с помощью require. На данный момент существуют следующие модули:
|
||||
|
||||
* dbg — модуль отладки (require "dbg" – включить отладчик);
|
||||
|
|
Reference in a new issue