Difference between revisions of "PRCSCR.xls"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(fix name of 2da)
Line 7: Line 7:
 
{{2da column|Script|string|the name of a script file to run}}
 
{{2da column|Script|string|the name of a script file to run}}
 
{{2da end}}
 
{{2da end}}
 +
 +
Using "any" in the AreaListName column will trigger the specified script when entering or loading any area.
  
 
[[Category:2DAs]]
 
[[Category:2DAs]]

Revision as of 18:27, 7 December 2009

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.

Note that the script will be run every time the player enters the area, so you'll want to have an associated plot flag to ensure that the changes are only made once.

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 area list, 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.