Difference between revisions of "PRCSCR.xls"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Перевод статьи)
m (Example: Applying CSS style)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{H-langs:{{{enname|}}}}}</includeonly><noinclude>{{H-langs:H:f PRCSCR.xls}}
+
Whenever a player enters an area in an area list in this M2DA the associated script will be run. A modder can therefore include a script with his mod that will be run when the player enters an existing area that he didn't create. This script can freely add or remove placeables and creatures and perform whatever other modifications to the area that a script is capable of doing.
*Перевод: Kelamor / [mailto:kelamor@inbox.ru Почта] / [[User:Kelamor|Переводы]]
+
----------------
+
  
 +
The Worksheets/M2DA's name should always start with "PRCSCR_". Whatever suffix you enter is your choice ,as the game will still find the file.
  
Каждый раз, когда игрок входит в локацию, скрипт, ассоциированный в PRCSCR-файле с этой локацией, запускается. Система PRCSCR позволяет моддеру добавить свой контент в существующие локации, либо внести другие изменения, которые возможно внести с помощью скриптов.
+
:''See also: [[PRCSCR]]''
  
Обязательным условием для того, чтобы игра нашла ваш PRCSCR-файл, является то, что лист в книге Excel, а также и сам файл после компиляции, должен именоваться начиная с "PRCSCR_", суффикс же может быть любой на ваш выбор. Главное не используйте кириллицу.
+
== Properties ==
Больше о системе PRCSCR смотрите по ссылке [[PRCSCR/ru]]
+
  
== Свойства ==
+
{{2da start|PRCSCR_}}
 +
{{2da column|AreaListName|string|a string that identifies a specific 'AreaList' property of any Area, or the special keyword "any".}}
 +
{{2da column|Script|string|the name of a script file to run}}
 +
{{2da end}}
  
1 столбец:
+
Using "any" in the AreaListName column will trigger the specified script when entering or loading any area.
Имя столбца - ID
+
Тип - int
+
Описание - Идентификационный номер строки. Данный номер должен быть уникален.
+
2 столбец:
+
Имя столбца - AreaListName
+
Тип - string
+
Описание - Строчное значение, которое идентифицирует значение AreaList локации, или же универсальное значение "ANY"
+
3 столбец:
+
Имя столбца - Script
+
Тип - string
+
Описание - Имя скрипта, запуск которого планируется при загрузке указанной локации.
+
  
Используйте '''"any"''' в столбце '''AreaListName''' для запуске скрипта при загрузке любой локации.
+
'''Note''': Make sure that the ID ranges you choose don't conflict with ones already in use. "[[2DA ranges in use]]"
  
'''Обратите внимание''': Удостоверьтесь, что диапазон значений ID, который выбран вами, не находится в противоречии с уже находящимися в использовании другими мододелами. Это можно сделать по адресу "[[2DA ranges in use]]"
 
  
 
<!-- Adding an example, in regard to how important this file is -->
 
<!-- Adding an example, in regard to how important this file is -->
 
<!-- Not sure if it makes sense if only this page gets one, but its something... -->
 
<!-- Not sure if it makes sense if only this page gets one, but its something... -->
== Пример ==
+
== Example ==
  
{| border="2" cellpadding="5" cellspacing="0" width="700pt" align"left"
+
{| class="wikitable" width=700px
|+ '''Пример листа таблицы Excel "PRCSCR_mygnomemod"'''
+
|+ '''Example Excel Worksheet "PRCSCR_mygnomemod"'''
| width="30pt" style="background-color:#808080" |'''ID'''
+
! ID !! AreaListName !! Script
| width="30pt" style="background-color:#AFAFAF" |'''AreaListName'''
+
| width="50pt" style="background-color:#AFAFAF" |'''Script'''
+
 
|-
 
|-
| style="background-color:#AFAFAF" |'''''int'''''
+
! ''int'' !! ''string'' !! ''string''
| style="background-color:#AFAFAF" |'''''string'''''
+
| style="background-color:#AFAFAF" |'''''string'''''
+
 
|-
 
|-
| style="background-color:#AFAFAF" |1200300
+
| 1200300 || cam100ar_camp_plains || mygnome_script
|cam100ar_camp_plains
+
|mygnome_script
+
 
|}
 
|}
  
'''Обратите внимание:'''
+
'''Notes:'''
  
#Суффикс в наименовании должен быть уникальным и не пересекаться с использованными в других модах.
+
#The worksheets name must have a unique suffix, to stand out from other Mods. This can be any you like.
#Используйте уникальные ID, к сведению - за Bioware закреплены номера от 0 до 1000000.
+
#Use any unique ID, by taking into account that Bioware reserves 0-1million.
#"mygnome_script" - скрипт, который будет запущен при загрузке локации. Расширение не указывайте!
+
#"cam100ar_camp_plains" is the normal Camp Area, this is where the Script will be run.
#PRCSCR-файл располагайте в папке "override" вашего модуля.
+
#"mygnome_script" is the Script to run, without "nss" file extenstion.  
-----
+
*У меня файл находится в папке '''core/packages/override''' и всё работает - --[[User:Kelamor|kelamor]] 06:16, 21 October 2010 (UTC)
+
*Обратите внимание, что указывается именно AreaListName, а не AreaName локации. Хотя в данном случае(с лагерем) они совпадают, в других локациях они разные. Обязательно учитывайте этот момент. Значение AreaListName вы найдёте в свойствах локации в тулсете.
+
*"Cam100ar_camp_plains" - это локация лагеря. Тут нужно помнить, что у лагеря, как и у некоторых других, есть несколько локаций, одна из них, указанная в данной таблице является основной, другие используются при катсценах. Естественно скрипт, назначенный в данной таблице, не запустится при запуске локации, которая используется при катсценах. Применение тэга "any" в колонке AreaListName запустит связанный скрипт при загрузке любой области.
+
-----
+
  
 
[[Category:XLS files]]
 
[[Category:XLS files]]
[[Category:Translations ru]]
+
{{Languages}}

Latest revision as of 18:24, 3 August 2011

Whenever a player enters an area in an area list in this M2DA the associated script will be run. A modder can therefore include a script with his mod that will be run when the player enters an existing area that he didn't create. This script can freely add or remove placeables and creatures and perform whatever other modifications to the area that a script is capable of doing.

The Worksheets/M2DA's name should always start with "PRCSCR_". Whatever suffix you enter is your choice ,as the game will still find the file.

See also: PRCSCR

Properties

Column Type Description
ID int A number that uniquely identifies the entry (unless creating an M2DA override). ID numbers are listed from smallest to highest within a given file but do not need to be consecutive.
AreaListName string a string that identifies a specific 'AreaList' property of any Area, or the special keyword "any".
Script string the name of a script file to run

Using "any" in the AreaListName column will trigger the specified script when entering or loading any area.

Note: Make sure that the ID ranges you choose don't conflict with ones already in use. "2DA ranges in use"


Example

Example Excel Worksheet "PRCSCR_mygnomemod"
ID AreaListName Script
int string string
1200300 cam100ar_camp_plains mygnome_script

Notes:

  1. The worksheets name must have a unique suffix, to stand out from other Mods. This can be any you like.
  2. Use any unique ID, by taking into account that Bioware reserves 0-1million.
  3. "cam100ar_camp_plains" is the normal Camp Area, this is where the Script will be run.
  4. "mygnome_script" is the Script to run, without "nss" file extenstion.


Language: English  • русский