Difference between revisions of "Event Functions"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(drag & drop)
m (s)
Line 3: Line 3:
 
[[File:FunctionsEvent.jpg]]
 
[[File:FunctionsEvent.jpg]]
  
Alternately, you can [[Text_Boxes#Drag_and_Drop|drag]] an [[Event]] and drop it onto a [[Text_Boxes|text box]]:
+
Alternately, you can [[Text_Boxes#Drag_and_Drop|drag]] an [[Events|Event]] and drop it onto a [[Text_Boxes|text box]]:
  
 
[[File:DragEvent.jpg]]
 
[[File:DragEvent.jpg]]

Revision as of 05:39, 15 February 2013

There is no reference for events, so you must give the key of the event followed by a dot to bring up the intellisense menu.

FunctionsEvent.jpg

Alternately, you can drag an Event and drop it onto a text box:

DragEvent.jpg

There are only two functions for events, both of which return integer values:

  • Length - The total number of turns in the event.
  • Position - The current position of the event (number of turns elapsed since it started).


<<< Short Location DescriptionObject-oriented functionsList Functions >>>