GetLastTileActionId()

From NWN Lexicon
Jump to navigationJump to search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Gets the ID (1..8) of the last tile action performed in OnPlayerTileAction.

effect GetLastTileActionId();

Description

Gets the ID (1..8) of the last tile action performed in OnPlayerTileAction.


Remarks

The action ID relates to the columns in surfacemat.2da. The column names are identified by ActX_Strref and ActX_Icon where X is 1 to 8.

Therefore if you have "Jump" as action 1 for "Grass" surface material, which you can retrieve using GetSurfaceMaterial, you then perform your "Jump" action in the script.


Version

This function was added in 1.85.8193.30 of NWN:EE.

Example

See OnPlayerTileAction for context and an example.

See Also

functions:

GetLastTileActionPosition GetLastPlayerToDoTileAction

events:

OnPlayerTileAction