Aller au contenu

Photo

GEN_HIRE_FOLLOWER -- it annoys me that this works


1 réponse à ce sujet

#1
Talisander

Talisander
  • Members
  • 173 messages
Just started using the toolset yesterday, and I'm loving it.  At first I was stumped by how to add a party member, but after some searching I found two ways to do it.  One way is to call the function UT_HIREFOLLOWER (I think that's what it's called) within a script.

The other way is to simply go into a conversation file and link a plot file as an action to one of the lines of dialog.  You look in the /Global directory and then find the plot file with "party" in the filename.  Then, you select the GEN_HIRE_FOLLOWER flag within that plot file as the thing to be flagged.  It works like a charm, adding the npc that owns the conversation to your party, but it annoys me that it does work, because it suggests that I really don't understand what is going on with plot files.

I was under the impression that plot files are mostly made up of boolean variables (or plot flags).  I thought their only effect on the game would be when you create something that references them, like a line of dialog that only gets spoken when a certain flag is set.  I don't understand why simply setting a plot flag within a Bioware-made plot file like this somehow adds a party member.  Are there other plot flags that have useful effects like this?  Is there some way to look up what they are and what they do?

   Another added point of confusion is that the plot flag can be set multiple times for different npcs, and it can continue to add new party members in this way.  I would think once GEN_HIRE_FOLLOWER is set it is set, but there must be something I'm not getting about what GEN_HIRE_FOLLOWER is.  

Any help would be really appreciated.

Modifié par Talisander, 06 décembre 2009 - 06:07 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Attaching actions to flags using a custom plot script is the primary way plot scripting is done in Dragon Age.



The advantage is you only need a small number of scripts to handle a wide variety of actions, and related actions are located in the same script.



The plot flag is set (or cleared) after the script is run, which can be a bit confusing but gives you slightly more scripting power as you know both what the flag used to be and what it is about to be.



Every time you set or clear the plot flag the script runs, unless you call it from scripting with the run script parameter set to false. In this way generic actions, such as GEN_HIRE_FOLLOWER, are fully possible.