User Tools

Site Tools


hpl3:game:dialoghandler

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
hpl3:game:dialoghandler [2012/12/12 13:02]
thomas
hpl3:game:dialoghandler [2012/12/12 13:04]
thomas [Variables]
Line 30: Line 30:
 ===== Branch Events ===== ===== Branch Events =====
  
 +==== Overview ====
 These events are needed in order to get the branching behaviors you are after. Events are added after having added subject and will belong that subject. They can in two types ''​LineEvents''​ and ''​EndEvent''​. The first type is checked after each voice line has completed playing. The second is checked when the entire subject is over.  These events are needed in order to get the branching behaviors you are after. Events are added after having added subject and will belong that subject. They can in two types ''​LineEvents''​ and ''​EndEvent''​. The first type is checked after each voice line has completed playing. The second is checked when the entire subject is over. 
  
Line 41: Line 42:
 Note that if asNewBranch is "",​ then the dialog does not jump to a new branch but just stops. Note that if asNewBranch is "",​ then the dialog does not jump to a new branch but just stops.
  
 +==== Conditions ====
 The different conditions available are:\\ The different conditions available are:\\
  
Line 70: Line 72:
 </​code>​ </​code>​
  
 +==== Example ====
 Now for some full test source. Lets say that we have a dialog that should stop playing whenever the player stops looking at the character, then we do like this: Now for some full test source. Lets say that we have a dialog that should stop playing whenever the player stops looking at the character, then we do like this:
  
hpl3/game/dialoghandler.txt ยท Last modified: 2015/09/17 10:18 by ian.thomas