Difference between revisions of "Job board"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (Extracted 2da information)
Line 1: Line 1:
A Chanter's board is a type of [[placeable]] used to represent a bulletin board where jobs or quests are posted for the player. Quests on chanter's boards are generally minor side quests of no direct relevance to the plot.
+
A [[job board]] is a type of [[placeable]] used to represent a bulletin board where jobs or quests are posted for the player. Quests on a job board are generally minor side quests of no direct relevance to the plot.
  
Chanter's boards are created largely through the use of [[plot]]s and [[2DA]]s. The board itself should require only a script that calls the following function when it receives the PLACEABLE_ACTION_EXAMINE event:
+
Job boards are created largely through the use of [[plot]]s and [[2DA]]s. The board itself should require only a script that calls the [[ShowChantersGUI]] function when it receives the [[PLACEABLE_ACTION_*|PLACEABLE_ACTION_EXAMINE]] action in the [[EVENT_TYPE_USE]] event.
  
<dascript>
+
== 2da files ==
ShowChantersGUI(int BoardID);
+
</dascript>
+
  
== JobBoards ==
+
* [[JobBoards 2da]]: The '''BoardID'''  number for any particular board is defined in the 2DA "JobBoards",  found in JobBoards.xls. This 2DA also defines a few things about what a  given board looks like.
 +
* [[JobBoardPlots 2da]]: This 2DA is responsible for placing entries on job boards. To make the quest offer disappear from the board once it has been accepted by the player,  you will need to have a plot script catch the '''AcceptedFlag''' set event.
  
The BoardID number for any particular board is defined in the 2DA "JobBoards", found in JobBoards.xls. This 2DA also defines a few things about what a given board looks like.
+
The '''JobBoardPlots''' 2da is defined as an m2da so it is easy to add new side quests to to one of the job boards in the [[Single Player]] module.
  
{{2da start|JobBoards}}
 
{{2da column| LABEL |string| A string used by the toolset internally}}
 
{{2da column| Texture |resource| the background texture displayed by the job board GUI}}
 
{{2da column| HeaderStrId |int| a [[string ID]] for a text header at the top of the board}}
 
{{2da column| ModuleRef |string| The campaign that owns this board}}
 
{{2da column| ShowDonationButton |int| {{undocumented}} }}
 
{{2da column| DonationScript |resource| script to be fired for each donation. Amount donated should be int param 0}}
 
{{2da column| DonationMsgStrId |int| String for the message box that is shown when the donation is accepted}}
 
{{2da column| HeaderTintIndex|int|
 
*1 - chantry
 
*2 - mage
 
*3 - blackstone
 
*4 - rogue
 
}}
 
{{2da end}}
 
 
'''Note: I'm not sure if the donation system is functional, none of the boards in the game are set up for it and the donation script listed for them is nonexistent.'''
 
 
== JobBoardPlots ==
 
 
This second 2DA is responsible for placing entries on job boards.
 
 
{{2da start|JobBoardPlots}}
 
{{2da column| LABEL | comment | }}
 
{{2da column| PlotRef | resource| The plot resource that this particular entry belongs to}}
 
{{2da column| BoardId| int| This ID number corresponds to the board's row ID in the JobBoards 2DA.}}
 
{{2da column| VisibleFlag |int| A flag ID number from the plot referenced in PlotRef. When this plot flag is ''set'', the flag's journal entry will be shown as an entry on the job board. The title given to the entry on the board will be the "Name" property of the PlotRef plot, so you should probably have a separate plot file for each entry on the board.}}
 
{{2da column| AcceptedFlag |int| A flag ID number from the plot referenced in PlotRef. When the job is accepted by the player, this flag is set.}}
 
{{2da column| OfferID |int| OfferID for PRC Offers (i.e. ID of the offer for the new PRC content, not the ID of the PRC package itself). }}
 
{{2da column| Comments | comment | }}
 
{{2da end}}
 
 
To make the quest offer disappear from the board once it's been accepted by the player, you'll need to have a plot script catch the AcceptedFlag set event and unset the VisibleFlag plot entry.
 
 
JobBoardPlots is an M2DA so it's easy to add new side quests to existing Chanter's boards.
 
 
[[Category:XLS files]]
 
 
[[Category:Plots]]
 
[[Category:Plots]]
 
[[Category:Placeables]]
 
[[Category:Placeables]]

Revision as of 12:40, 16 October 2011

A job board is a type of placeable used to represent a bulletin board where jobs or quests are posted for the player. Quests on a job board are generally minor side quests of no direct relevance to the plot.

Job boards are created largely through the use of plots and 2DAs. The board itself should require only a script that calls the ShowChantersGUI function when it receives the PLACEABLE_ACTION_EXAMINE action in the EVENT_TYPE_USE event.

2da files

  • JobBoards 2da: The BoardID number for any particular board is defined in the 2DA "JobBoards", found in JobBoards.xls. This 2DA also defines a few things about what a given board looks like.
  • JobBoardPlots 2da: This 2DA is responsible for placing entries on job boards. To make the quest offer disappear from the board once it has been accepted by the player, you will need to have a plot script catch the AcceptedFlag set event.

The JobBoardPlots 2da is defined as an m2da so it is easy to add new side quests to to one of the job boards in the Single Player module.