Trainz-mp Главная | Форум trainz-mp.ru | Обратная связь (Ваш вопрос, Создание пакетов) На наших часах: 6.05.2024 7:56:04

Здравствуйте Гость ( Войти через форум ) Авторизовавшись Вы сможете загружать сюда любые зависимости формата .CDP для игры Trainz Куиды Поиск

Репозиторий

<kuid:131986:155581> ChangeSVariables

Тип: Команда
Опубликовано: 17.07.2020 8:57:15
Скачиваний: 108
Размер: 27.7 kB

Скачать

A Driver schedule command to create and change session variables. The session variables are created by using the WorkTable rule (kuid:131986:230102) available on DLS. In order to create (and)or change session variables, do the following steps. (1) Download and install the WorkTable rule from the DLS. (2) Edit the WorkTable rule, add a new line, and type the following:

svar,SVNAME,SVOPER,SVNUM

where 'svar' : the command name recognized by the driver schedule command.
'SVNAME' : session variable name
'SVOPER' : arithmetical operations on SVNAME. It be set to 'set' to assigns an integer,
'inc' to increase and 'dec' to decrease value of the session variable..
'SVNUM' : corresponding value to assign, increase, or decrease the svname. Must be an integer.

ex: svar,myvar,set,5 (equivalent to setting myvar=5)
svar,myvar,inc,1 (equivalent to setting myvar=myvar+1)
svar,myvar,dec,1 (equivalent to setting myvar=myvar-1)

(3) Once a set of such command style statements are added to the WorkTable, they will appear once the ChangeSVariables command is launched.

PREREQUISITE: WorkTable rule to create items in the command's add menu list.
VERSION 0
SIMILAR COMMANDS/RULES: SessionVariables rule, SetScoreXtoY, IncreaseScoreXbyY, and DecreaseScoreXbyY commands.
NOTES: Session variables only be of integer type. DO NOT USE floating point numbers/operations.


config.txt:

Файлы:
changesvariables.texture.txt 41 B
changesvariablescommand.gs 3.8 kB
changesvariablesschedulecommand.gs 2.5 kB
newdrivercommandpack.jpg 9.6 kB
tag.tga 64.0 kB
Общий объём файлов: 80.1 kB

Версии элемента:
kuid kind name build date size
<kuid:131986:155581> drivercommand ChangeSVariables 2.4 17.07.2020 8:57:15 27.7 kB

Зависимости:
kuid author kind name build date size
<kuid:-3:10197> #-3 library ПеременныеСессии 0 2.07.2020 9:39:31 257 B
<kuid:-3:10219> #-3 library Звуковые команды 0 1.07.2020 12:56:36 8.4 kB
<kuid2:131986:230102:3> #131986 behavior WorkTable 2.4 5.06.2020 18:52:31 27.0 kB
Всего связей: 3, неизвестных связей: 0

Зависимые элементы:
kuid author kind name build date size
Нет

Яндекс.Метрика


Powered by AKR © Камиль Ахметзянов aka kemal, 2011 - 2024