Difference between revisions of "Action"

From NWN Lexicon
Jump to: navigation, search
m (Prettified article formatting)
Line 1: Line 1:
=ACTION_* Constant Group=
+
{{DISPLAYTITLE:ACTION_* Constant Group}}
 +
Constants representing standard actions that objects can perform.
  
Standard actions.
+
==Constants==
  
<br /><br />
+
{| class="wikitable padding-5 sortable" border="1" style="min-width: 600px;"
 
+
|-
===Constants===
+
! style="text-align: left;" | Constant
 
+
! style="text-align: left;" width="60" | Value
 
+
! style="text-align: left;" class="unsortable" | Description
 
 
{| border="1" cellpadding="5"
 
! width="25%" | Constant
 
! width="10%" | Value
 
! Description
 
 
|-
 
|-
| valign="top" | ACTION_ANIMALEMPATHY
+
| ACTION_ANIMALEMPATHY
 
| 16
 
| 16
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_ATTACKOBJECT
+
| ACTION_ATTACKOBJECT
 
| 3
 
| 3
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_CASTSPELL
+
| ACTION_CASTSPELL
 
| 4
 
| 4
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_CLOSEDOOR
+
| ACTION_CLOSEDOOR
 
| 6
 
| 6
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_COUNTERSPELL
+
| ACTION_COUNTERSPELL
 
| 31
 
| 31
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_DIALOGOBJECT
+
| ACTION_DIALOGOBJECT
 
| 7
 
| 7
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_DISABLETRAP
+
| ACTION_DISABLETRAP
 
| 8
 
| 8
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_DROPITEM
+
| ACTION_DROPITEM
 
| 2
 
| 2
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_EXAMINETRAP
+
| ACTION_EXAMINETRAP
 
| 11
 
| 11
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_FLAGTRAP
+
| ACTION_FLAGTRAP
 
| 10
 
| 10
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_FOLLOW
+
| ACTION_FOLLOW
 
| 35
 
| 35
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_HEAL
+
| ACTION_HEAL
 
| 33
 
| 33
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_INVALID
+
| ACTION_INVALID
 
| 65535
 
| 65535
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_ITEMCASTSPELL
+
| ACTION_ITEMCASTSPELL
 
| 19
 
| 19
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_KIDAMAGE
+
| ACTION_KIDAMAGE
 
| 41
 
| 41
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_LOCK
+
| ACTION_LOCK
 
| 14
 
| 14
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_MOVETOPOINT
+
| ACTION_MOVETOPOINT
 
| 0
 
| 0
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_OPENDOOR
+
| ACTION_OPENDOOR
 
| 5
 
| 5
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_OPENLOCK
+
| ACTION_OPENLOCK
 
| 13
 
| 13
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_PICKPOCKET
+
| ACTION_PICKPOCKET
 
| 34
 
| 34
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_PICKUPITEM
+
| ACTION_PICKUPITEM
 
| 1
 
| 1
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_RANDOMWALK
+
| ACTION_RANDOMWALK
 
| 43
 
| 43
|
+
| This was added in the Hordes sets of patches. It is the value associated with [[ActionRandomWalk]](). Note: In pre-1.64 patches, it referenced the wrong line in the actions.2da file, but it has now been corrected.
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | This was added in the hordes sets of patches. It is the value in association with ActionRandomWalk(). Note: In pre-1.64 patches, it referenced the wrong line in the actions.2da file, but it has now been corrected.
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_RECOVERTRAP
+
| ACTION_RECOVERTRAP
 
| 9
 
| 9
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_REST
+
| ACTION_REST
 
| 17
 
| 17
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_SETTRAP
+
| ACTION_SETTRAP
 
| 12
 
| 12
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_SIT
+
| ACTION_SIT
 
| 37
 
| 37
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_SMITEGOOD
+
| ACTION_SMITEGOOD
 
| 40
 
| 40
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_TAUNT
+
| ACTION_TAUNT
 
| 18
 
| 18
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_USEOBJECT
+
| ACTION_USEOBJECT
 
| 15
 
| 15
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|-
 
|-
| valign="top" | ACTION_WAIT
+
| ACTION_WAIT
 
| 36
 
| 36
|
+
| UNKNOWN
{| style="border: 0" width="100%"
 
| style="border: 0" width="99%" valign="top" | UNKNOWN
 
|}
 
 
|}
 
|}
  
 
+
==See Also==
 
 
====See Also====
 
  
 
{| class="seealso"
 
{| class="seealso"
 
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
 
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
|
+
|[[GetCurrentAction|GetCurrentAction]]
[[GetCurrentAction | GetCurrentAction ]]
+
|}<br />
|}
 
 
 
 
----
 
----
 
[[Category:Constants]]
 
[[Category:Constants]]

Revision as of 09:59, 7 September 2012

Constants representing standard actions that objects can perform.

Constants

Constant Value Description
ACTION_ANIMALEMPATHY 16 UNKNOWN
ACTION_ATTACKOBJECT 3 UNKNOWN
ACTION_CASTSPELL 4 UNKNOWN
ACTION_CLOSEDOOR 6 UNKNOWN
ACTION_COUNTERSPELL 31 UNKNOWN
ACTION_DIALOGOBJECT 7 UNKNOWN
ACTION_DISABLETRAP 8 UNKNOWN
ACTION_DROPITEM 2 UNKNOWN
ACTION_EXAMINETRAP 11 UNKNOWN
ACTION_FLAGTRAP 10 UNKNOWN
ACTION_FOLLOW 35 UNKNOWN
ACTION_HEAL 33 UNKNOWN
ACTION_INVALID 65535 UNKNOWN
ACTION_ITEMCASTSPELL 19 UNKNOWN
ACTION_KIDAMAGE 41 UNKNOWN
ACTION_LOCK 14 UNKNOWN
ACTION_MOVETOPOINT 0 UNKNOWN
ACTION_OPENDOOR 5 UNKNOWN
ACTION_OPENLOCK 13 UNKNOWN
ACTION_PICKPOCKET 34 UNKNOWN
ACTION_PICKUPITEM 1 UNKNOWN
ACTION_RANDOMWALK 43 This was added in the Hordes sets of patches. It is the value associated with ActionRandomWalk(). Note: In pre-1.64 patches, it referenced the wrong line in the actions.2da file, but it has now been corrected.
ACTION_RECOVERTRAP 9 UNKNOWN
ACTION_REST 17 UNKNOWN
ACTION_SETTRAP 12 UNKNOWN
ACTION_SIT 37 UNKNOWN
ACTION_SMITEGOOD 40 UNKNOWN
ACTION_TAUNT 18 UNKNOWN
ACTION_USEOBJECT 15 UNKNOWN
ACTION_WAIT 36 UNKNOWN

See Also

functions:  GetCurrentAction