//--------------------------------------------------------------------------------------------------
// Library: Built-In
//--------------------------------------------------------------------------------------------------
// Constants
const int libNtve_gv_c_ScreenButtonMaxCount = 50;
const int libNtve_gv_c_ScreenImageMaxCount = 50;
const int libNtve_gv_c_ScreenLabelMaxCount = 50;
const int libNtve_gv_pLAYERMAX = 32;
const int libNtve_gv__BBC_BossBarMaxCount = 50;

// Variable Declarations
int libNtve_gv__CineTransitionStyle;
bool libNtve_gv__CineModeGlobalOn;
playergroup libNtve_gv__PlayersInCineMode;
bool[33] libNtve_gv__CineModeSavedSettingFog;
bool[33] libNtve_gv__CineModeSavedSettingMask;
int libNtve_gv__CineModeSavedSpeed;
bool libNtve_gv__CineModeSavedAIPaused;
bool[51] libNtve_gv__CineModeSavedCheatAllowed;
trigger[51] libNtve_gv_screenButtonCallbacks;
int[51] libNtve_gv_screenButtonDialogs;
int[51] libNtve_gv_screenButtons;
bool[51] libNtve_gv_screenButtonsFlashing;
bool[51] libNtve_gv_screenButtonsFlashStopping;
int[51] libNtve_gv_screenButtonsBorderType;
string[51] libNtve_gv_screenButtonsBorderImage;
string[51] libNtve_gv_screenButtonsHoverImage;
int[51] libNtve_gv_screenButtonsFlashingBorderType;
string[51] libNtve_gv_screenButtonsFlashingBorderImage;
string[51] libNtve_gv_screenButtonsFlashingHoverImage;
int libNtve_gv_tP_FlashScreenButtonID;
fixed libNtve_gv_tP_FlashScreenButtonFlashTime;
color libNtve_gv_tP_FlashScreenButtonColor1;
color libNtve_gv_tP_FlashScreenButtonColor2;
int[51] libNtve_gv_screenImageDialogs;
int[51] libNtve_gv_screenImageDialogImages;
bool[51] libNtve_gv_screenImagePulsing;
int libNtve_gv_tP_PulseScreenImageID;
fixed libNtve_gv_tP_PulseScreenImagePeriod;
fixed libNtve_gv_tP_PulseScreenImageTransparency1;
fixed libNtve_gv_tP_PulseScreenImageTransparency2;
int[51] libNtve_gv_screenLabelDialogs;
int[51] libNtve_gv_screenLabelDialogLabels;
int[8] libNtve_gv_cinematicPortraits;
unitgroup[34] libNtve_gv_unitSelectionStored;
playergroup libNtve_gv__PlayersInStoryMode;
bool[33] libNtve_gv__StoryModeSavedSettingUI_Resource;
bool[33] libNtve_gv__StoryModeSavedSettingUI_Supply;
playergroup[51] libNtve_gv__BB_Players;
int[51] libNtve_gv__BB_Race;
string[51] libNtve_gv__BB_Portraits;
text[51] libNtve_gv__BB_Title;
unit[51] libNtve_gv__BB_Boss;
fixed[51] libNtve_gv__BB_MaxValue;
fixed[51] libNtve_gv__BB_CurrentValue;
int[51] libNtve_gv__BB_HPOldWidth;
int[51] libNtve_gv__BB_Dialog;
int[51] libNtve_gv__BB_BGImgBar;
int[51] libNtve_gv__BB_BGImgPortrait;
int[51] libNtve_gv__BB_PortraitImage;
int[51] libNtve_gv__BB_TitleLabel;
int[51] libNtve_gv__BB_HpBorderImage;
int[51] libNtve_gv__BB_HpLabel;
int[51] libNtve_gv__BB_HpFullImage;
int[51] libNtve_gv__BB_HpCurrentImage;
int[51] libNtve_gv__BB_BarWidth;
int[51] libNtve_gv__BB_BarHeight;
bool[17][101][4] libNtve_gv__GameUIVisible;
bool[4] libNtve_gv__GameUIStored;
unitfilter libNtve_gv_visibleFilter;
unit libNtve_gv_lastReplacedUnit;

// Function Declarations
actor libNtve_gf_AttachModelToActor (actor lp_actor, string lp_model, string lp_attachPoint);
actorscope libNtve_gf_LastCreatedActorScope ();
actor libNtve_gf_LastCreatedActor ();
actor libNtve_gf_AttachModelToUnit (unit lp_unit, string lp_model, string lp_attachPoint);
actor libNtve_gf_AttachModelToUnitInheritVisibility (unit lp_unit, string lp_model, string lp_attachPoint);
actor libNtve_gf_AttachModelToActor2 (actor lp_actor, string lp_model, string lp_attachPoint);
actorscope libNtve_gf_ActorScopeLastCreated ();
actorscope libNtve_gf_ActorScopeLastCreatedSend ();
actor libNtve_gf_ActorLastCreated ();
actor libNtve_gf_ActorLastCreatedSend ();
actor libNtve_gf_AttachActorToUnit (unit lp_unit, string lp_actor, string lp_attachPoint);
actor libNtve_gf_AttachActorToActor (actor lp_hostingActor, string lp_attachingActor, string lp_attachPoint);
actor libNtve_gf_CreateActorAtPoint (string lp_actor, point lp_position);
actor libNtve_gf_CreateModelAtPoint (string lp_model, point lp_position);
void libNtve_gf_CreateModelWithPointFacing (string lp_model, point lp_position);
void libNtve_gf_SendActorMessageToUnit (unit lp_unit, string lp_message);
void libNtve_gf_ActorRegionSendSimple (actor lp_region, string lp_message);
void libNtve_gf_SendActorMessageToGameRegion (region lp_region, string lp_message);
void libNtve_gf_SendActorMessageToGameRegionWithFilters (region lp_region, int lp_intersectType, string lp_message, string lp_classFilters, string lp_terms);
string libNtve_gf_ActorMsg1 (string lp_msgName, string lp_param1);
string libNtve_gf_ActorMsg2 (string lp_msgName, string lp_param1, string lp_param2);
string libNtve_gf_ActorMsg3 (string lp_msgName, string lp_param1, string lp_param2, string lp_param3);
string libNtve_gf_ActorMsg4 (string lp_msgName, string lp_param1, string lp_param2, string lp_param3, string lp_param4);
string libNtve_gf_ActionDamage ();
string libNtve_gf_ActionImpact ();
string libNtve_gf_AliasAdd (string lp_alias);
string libNtve_gf_AliasRemove (string lp_alias);
string libNtve_gf_AnimBaselineStart ();
string libNtve_gf_AnimBaselineStop ();
string libNtve_gf_AnimBlendTimeApply (fixed lp_blendTime);
string libNtve_gf_AnimBlendTimeRemove ();
string libNtve_gf_AnimClear (string lp_animName, fixed lp_blendTime);
string libNtve_gf_AnimClearAllBut (string lp_animName, fixed lp_blendTime);
string libNtve_gf_AnimDumpDB ();
string libNtve_gf_AnimGroupRemoveAll ();
string libNtve_gf_AnimPlaySequence (string lp_animName, string lp_sequenceList);
string libNtve_gf_AnimSetCompletion (string lp_animName, fixed lp_percent);
string libNtve_gf_AnimSetDuration (string lp_animName, fixed lp_duration);
string libNtve_gf_AnimSetPaused (bool lp_pause);
string libNtve_gf_AnimSetTime (string lp_animName, fixed lp_time, bool lp_scaled);
string libNtve_gf_AnimSetTimeScale (string lp_animName, fixed lp_scale);
string libNtve_gf_AnimSetTimeScaleGlobal (fixed lp_value);
string libNtve_gf_AttachSetBearings (string lp_attachMethods, string lp_bearings);
string libNtve_gf_AttachSetBearingsFrom (string lp_attachMethods, string lp_actorName, string lp_actorSiteOps);
string libNtve_gf_AttachSetPosition (string lp_attachMethods, string lp_position);
string libNtve_gf_AttachSetPositionFrom (string lp_attachMethods, string lp_actorName, string lp_actorSiteOps);
string libNtve_gf_AttachSetRotation (string lp_attachMethods, fixed lp_rotation);
string libNtve_gf_AttachSetRotationFrom (string lp_attachMethods, string lp_actorName, string lp_actorSiteOps);
string libNtve_gf_Create (string lp_actor, string lp_content);
string libNtve_gf_CreateCopy (string lp_createKey, string lp_sourceKey);
string libNtve_gf_DeathCustomize (string lp_subname);
string libNtve_gf_Destroy ();
string libNtve_gf_HostSiteOpsSet (string lp_hostName, string lp_ops, int lp_holdPosition, int lp_holdRotation);
string libNtve_gf_ListAdd (string lp_actorRefName);
string libNtve_gf_ListRemove (string lp_actorRefName);
string libNtve_gf_MissileTentacleReturn ();
string libNtve_gf_ModelEventSuppress (int lp_value, string lp_event);
string libNtve_gf_ModelSwap (string lp_model, int lp_variation);
string libNtve_gf_MoverSetAcceleration (fixed lp_value);
string libNtve_gf_MoverSetDeceleration (fixed lp_value);
string libNtve_gf_MoverSetDestination2D (fixed lp_x, fixed lp_y);
string libNtve_gf_MoverSetDestinationFrom (string lp_actorRefName);
string libNtve_gf_MoverSetDestinationH (fixed lp_value);
string libNtve_gf_MoverSetDestinationZ (fixed lp_value);
string libNtve_gf_MoverSetSpeed (fixed lp_value);
string libNtve_gf_MoverSetSpeedMax (fixed lp_value);
string libNtve_gf_MoverSetSpeedFromDuration (fixed lp_value);
string libNtve_gf_MoverMove ();
string libNtve_gf_MoverStop ();
string libNtve_gf_MoverStopNow ();
string libNtve_gf_MultiplyScale (fixed lp_x, fixed lp_y, fixed lp_z, fixed lp_duration);
string libNtve_gf_Print (string lp_string);
string libNtve_gf_QueryPersistent (string lp_enterResponseActor, string lp_leaveResponeActor);
string libNtve_gf_QueryRadius (fixed lp_radius, string lp_responseActor);
string libNtve_gf_QueryRegion (string lp_regionActor, string lp_responseActor);
string libNtve_gf_RefClear (string lp_actorRefName);
string libNtve_gf_RefDestroy (string lp_actorRefName);
string libNtve_gf_RefDump (string lp_actorRefName);
string libNtve_gf_RefNotify (string lp_actorRefName, string lp_subName);
string libNtve_gf_RefSet (string lp_actorRefName, string lp_refSource);
string libNtve_gf_RefSetFromMsg (string lp_actorRefName, string lp_message);
string libNtve_gf_RefSetFromActor (string lp_actorRefName, string lp_refPrimary, string lp_refSecondary);
string libNtve_gf_RefSetRefreshName (string lp_actorRefName, string lp_refreshName);
string libNtve_gf_SetBearings (fixed lp_positionX, fixed lp_positionY, fixed lp_positionZ, fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ);
string libNtve_gf_SetBearingsFrom (string lp_actor);
string libNtve_gf_SetBearingsH (fixed lp_positionX, fixed lp_positionY, fixed lp_height, fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ);
string libNtve_gf_SetFacing (fixed lp_facing);
string libNtve_gf_SetHeight (fixed lp_height);
string libNtve_gf_SetOpacity (fixed lp_opacity, fixed lp_blendDuration);
string libNtve_gf_SetPosition (fixed lp_x, fixed lp_y, fixed lp_z);
string libNtve_gf_SetPosition2D (fixed lp_x, fixed lp_y);
string libNtve_gf_SetPosition2DH (fixed lp_x, fixed lp_y);
string libNtve_gf_SetPositionFrom (string lp_actor);
string libNtve_gf_SetPositionH (fixed lp_x, fixed lp_y, fixed lp_height);
string libNtve_gf_SetRenderToTextureEnabled (bool lp_enabled);
string libNtve_gf_SetRotation (fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ);
string libNtve_gf_SetRotationFrom (string lp_actor);
string libNtve_gf_SetScale (fixed lp_x, fixed lp_y, fixed lp_z, fixed lp_blendDuration);
string libNtve_gf_SetScaleAbsolute (fixed lp_x, fixed lp_y, fixed lp_z, fixed lp_blendDuration);
string libNtve_gf_SetTeamColor (color lp_diffuseColor, color lp_emissiveColor);
string libNtve_gf_SetLocalTintColor (color lp_color);
string libNtve_gf_SetTintColor (color lp_color, fixed lp_hdr, fixed lp_duration);
string libNtve_gf_SetVisibility (bool lp_visible);
string libNtve_gf_SetWalkAnimMoveSpeed (fixed lp_value);
string libNtve_gf_SetZ (fixed lp_z);
string libNtve_gf_Signal (string lp_signal);
string libNtve_gf_SoundAddDSP (string lp_effect);
string libNtve_gf_SoundSetMuted (bool lp_mutedState, bool lp_fade);
string libNtve_gf_SoundSetOffset (int lp_offset);
string libNtve_gf_SoundSetPaused (bool lp_pausedState, bool lp_fade);
string libNtve_gf_StatusDecrement (string lp_statusVariable);
string libNtve_gf_StatusIncrement (string lp_statusVariable);
string libNtve_gf_TextureDump ();
string libNtve_gf_TextureDumpDB ();
string libNtve_gf_TextureGroupApply (string lp_textureProps);
string libNtve_gf_TextureGroupRemove (string lp_textureProps);
string libNtve_gf_TextureSelectByID (string lp_texture);
string libNtve_gf_MakeMsgTextureVideoPlay (string lp_texture, int lp_fPS, int lp_textureVideoPlayFlags, int lp_soundType, string lp_attachQuery);
string libNtve_gf_TextureVideoSetFrame (string lp_texture, int lp_frame);
string libNtve_gf_TextureVideoSetPaused (string lp_texture, bool lp_pauseState);
string libNtve_gf_TextureVideoSetTime (string lp_texture, fixed lp_time);
string libNtve_gf_TextureVideoStop (string lp_texture);
string libNtve_gf_TextureVideoStopAll ();
string libNtve_gf_TimerSet (fixed lp_duration, string lp_timerName);
string libNtve_gf_TimerKill (string lp_timerName);
void libNtve_gf_KillModel (actor lp_model);
void libNtve_gf_RemoveDoodadsinRegion (region lp_target, string lp_doodadType);
void libNtve_gf_RemoveDeathModelsinRegion (region lp_region);
void libNtve_gf_RemoveDeathModelsinRegionImmediately (region lp_region);
actor libNtve_gf_LookAtTargetFromPointWithZOffset (point lp_point, fixed lp_z);
actor libNtve_gf_LookAtTargetFromUnitAttachPoint (unit lp_unit, string lp_attachPoint);
void libNtve_gf_CreateLookAtTargetAtPoint (point lp_point);
void libNtve_gf_CreateLookAtTargetAtUnitAttachPoint (unit lp_unit, string lp_attachPoint);
void libNtve_gf_SimpleLookAtStart (unit lp_unit, string lp_type, actor lp_lookAtTarget);
void libNtve_gf_MakeUnitLookAtPoint (unit lp_unit, string lp_type, point lp_point);
void libNtve_gf_MakeUnitLookAtUnit (unit lp_unit, string lp_type, unit lp_lookAtTargetUnit, string lp_attachPoint);
void libNtve_gf_SimpleLookAtStop (unit lp_unit, string lp_type);
actor libNtve_gf_MainActorofUnit (unit lp_unit);
void libNtve_gf_MakeModelFaceAngle (actor lp_model, fixed lp_angle);
void libNtve_gf_PlayMovieTextureOnUnitActor (unit lp_unit, string lp_movieTexture);
void libNtve_gf_StopAllVideoTexturesOnUnit (unit lp_unit);
void libNtve_gf_ShowHideDoodadsInRegion (bool lp_showHide, region lp_target, string lp_doodadType);
int libNtve_gf_DifficultyValueInt (int lp_easy, int lp_normal, int lp_advanced, int lp_expert);
fixed libNtve_gf_DifficultyValueFixed (fixed lp_easy, fixed lp_normal, fixed lp_advanced, fixed lp_expert);
string libNtve_gf_DifficultyValueUnitType (string lp_easy, string lp_normal, string lp_advanced, string lp_expert);
void libNtve_gf_AICast (unit lp_unit, order lp_order);
void libNtve_gf_DeclareNextTown (int lp_player, point lp_center);
void libNtve_gf_SetTacticalAIRange (int lp_player, string lp_unitType, int lp_distance);
void libNtve_gf_SetTacticalAIThink (int lp_player, string lp_unitType, string lp_target, bool lp_isNative);
void libNtve_gf_PlayAnimation (actor lp_target, string lp_identifier, string lp_animation, int lp_flags, fixed lp_blendTime);
void libNtve_gf_PlayAnimationOnDoodadsInRegion (region lp_target, string lp_doodadType, string lp_identifier, string lp_animation, int lp_flags, fixed lp_blendTime);
void libNtve_gf_KillDoodadsInRegion (region lp_target, string lp_doodadType);
void libNtve_gf_ClearAnimation (actor lp_target, string lp_identifier);
void libNtve_gf_ClearAnimationOnDoodadsInRegion (region lp_target, string lp_doodadType, string lp_identifier);
void libNtve_gf_TurnAnimationPropertiesOn (actor lp_target, string lp_prop);
void libNtve_gf_TurnAnimationPropertiesOnWithBlendInOut (actor lp_target, string lp_prop, string lp_blendInAnimation, string lp_blendOutAnimation);
void libNtve_gf_TurnAnimationPropertiesOff (actor lp_target, string lp_prop);
void libNtve_gf_TurnAllAnimationPropertiesOff (actor lp_target);
void libNtve_gf_SetAnimationTime (actor lp_target, string lp_identifier, fixed lp_time, bool lp_scaled);
void libNtve_gf_SetAnimationTimeScale (actor lp_target, string lp_identifier, fixed lp_scale);
void libNtve_gf_SetAnimationCompletion (actor lp_target, string lp_identifier, fixed lp_percent);
void libNtve_gf_SetAnimationDuration (actor lp_target, string lp_identifier, fixed lp_duration);
void libNtve_gf_SwooshCamera (int lp_player, fixed lp_distance1, fixed lp_distance2, point lp_location, fixed lp_duration);
camerainfo libNtve_gf_CopyOfCameraObject (camerainfo lp_cam);
fixed libNtve_gf_CostOfAbility (string lp_ability, string lp_costType);
void libNtve_gf__CineModeTurnOnOffForPlayer (int lp_player, bool lp_onOff);
void libNtve_gf__CineModeTurnOnOffForPlayerGroup (playergroup lp_players, bool lp_onOff);
bool libNtve_gf__CineModeFogSetting (int lp_player);
void libNtve_gf__CineModeChangeFogSettingForPlayer (int lp_player, bool lp_fog);
void libNtve_gf__CineModeChangeFogSettingForPlayerGroup (playergroup lp_players, bool lp_fog);
bool libNtve_gf__CineModeMaskSetting (int lp_player);
void libNtve_gf__CineModeChangeMaskSettingForPlayer (int lp_player, bool lp_mask);
void libNtve_gf__CineModeChangeMaskSettingForPlayerGroup (playergroup lp_players, bool lp_mask);
void libNtve_gf__CineModeHideUI (playergroup lp_players);
void libNtve_gf__CineModeRestoreUI (playergroup lp_players);
void libNtve_gf__CineModeStoreCheatStatus ();
void libNtve_gf__CineModeRestoreCheatStatus ();
void libNtve_gf_CinematicMode (bool lp_onOff, playergroup lp_players, fixed lp_duration);
void libNtve_gf_GlobalCinematicSetting (bool lp_onOff);
void libNtve_gf_SetCinematicTransitionStyle (int lp_style);
bool libNtve_gf_PlayerInCinematicMode (int lp_player);
void libNtve_gf_MovieDynamicSubtitlesandDuration (string lp_soundFile);
text libNtve_gf_ConvertBooleanToText (bool lp_value);
string libNtve_gf_ConvertBooleanToString (bool lp_value);
bool libNtve_gf_ConvertStringToBoolean (string lp_value);
string libNtve_gf_ConvertPointToString (point lp_value);
point libNtve_gf_ConvertStringToPoint (string lp_value);
color libNtve_gf_ConvertPlayerColorToColor (int lp_playerColor);
string libNtve_gf_ConvertColorToString (color lp_color);
string libNtve_gf_ConvertBearingsToString (fixed lp_positionX, fixed lp_positionY, fixed lp_positionZ, fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ);
string libNtve_gf_ConvertXYToString (fixed lp_x, fixed lp_y);
string libNtve_gf_Convert3DVectorToString (fixed lp_x, fixed lp_y, fixed lp_z);
string libNtve_gf_Convert3DRotationToString (fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ);
void libNtve_gf_SaveDataTableValueDialogItem (bool lp_scope, string lp_name, int lp_value);
void libNtve_gf_SaveDataTableValueDifficultyLevel (bool lp_scope, string lp_name, int lp_value);
void libNtve_gf_SaveDataTableValuePlayerColor (bool lp_scope, string lp_name, int lp_value);
void libNtve_gf_SaveDataTableValueTextTag (bool lp_scope, string lp_name, int lp_value);
int libNtve_gf_ValueFromDataTableDialogItem (bool lp_scope, string lp_name);
int libNtve_gf_ValueFromDataTableDifficultyLevel (bool lp_scope, string lp_name);
int libNtve_gf_ValueFromDataTablePlayerColor (bool lp_scope, string lp_name);
int libNtve_gf_ValueFromDataTableTextTag (bool lp_scope, string lp_name);
int libNtve_gf_ConvertIntegerToDebugMessageType (int lp_value);
void libNtve_gf_SetDialogItemText (int lp_dialogItem, text lp_text, playergroup lp_players);
text libNtve_gf_DialogItemText (int lp_dialogItem, int lp_player);
int libNtve_gf_CreateDialogItemAchievement (int lp_dialog, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY, text lp_tooltip, string lp_achievement);
int libNtve_gf_CreateDialogItemButton (int lp_dialog, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY, text lp_tooltip, text lp_buttonText, string lp_hoverImage);
int libNtve_gf_CreateDialogItemCheckBox (int lp_dialog, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY, text lp_tooltip, bool lp_checked);
int libNtve_gf_CreateDialogItemImage (int lp_dialog, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY, text lp_tooltip, string lp_image, int lp_imageType, bool lp_tiled, color lp_tintColor, int lp_blendMode);
int libNtve_gf_CreateDialogItemLabel (int lp_dialog, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY, text lp_text, color lp_color, bool lp_textWriteout, fixed lp_textWriteoutDuration);
void libNtve_gf_SetDialogItemRotation (int lp_dialogItem, int lp_rotation, playergroup lp_players);
void libNtve_gf_SetDialogItemtoUseAspectUncorrection (int lp_dialogItem, bool lp_useAspectUncorrection, playergroup lp_players);
void libNtve_gf_SetDialogItemCurrentValue (int lp_dialogItem, fixed lp_currentValue, playergroup lp_players);
void libNtve_gf_SetDialogItemMinimumValue (int lp_dialogItem, fixed lp_minValue, playergroup lp_players);
void libNtve_gf_SetDialogItemMaximumValue (int lp_dialogItem, fixed lp_maxValue, playergroup lp_players);
void libNtve_gf_SetDialogItemChecked (int lp_dialogItem, bool lp_checked, playergroup lp_players);
void libNtve_gf_SetDialogItemEditorValue (int lp_dialogItem, string lp_value, playergroup lp_players);
fixed libNtve_gf_DialogItemValue (int lp_dialogItem, int lp_player);
fixed libNtve_gf_DialogItemMaximumValue (int lp_dialogItem, int lp_player);
fixed libNtve_gf_DialogItemMinimumValue (int lp_dialogItem, int lp_player);
bool libNtve_gf_DialogItemIsChecked (int lp_dialogItem, int lp_player);
string libNtve_gf_DialogItemEditValue (int lp_dialogItem, int lp_player);
void libNtve_gf_SetDialogItemColor (int lp_dialogItem, color lp_color, playergroup lp_players);
void libNtve_gf_SetDialogItemStyle (int lp_dialogItem, string lp_style, playergroup lp_players);
void libNtve_gf_SetDialogItemTextWriteout (int lp_dialogItem, bool lp_writeout, playergroup lp_players);
void libNtve_gf_SetDialogItemTextWriteoutDuration (int lp_dialogItem, fixed lp_duration, playergroup lp_players);
void libNtve_gf_SetDialogItemTooltip (int lp_dialogItem, text lp_tooltip, playergroup lp_players);
color libNtve_gf_DialogItemColor (int lp_dialogItem, int lp_player);
string libNtve_gf_DialogItemStyle (int lp_dialogItem, int lp_player);
text libNtve_gf_DialogItemTooltip (int lp_dialogItem, int lp_player);
void libNtve_gf_SetDialogItemImage (int lp_dialogItem, string lp_image, playergroup lp_players);
void libNtve_gf_SetDialogItemImage2 (int lp_dialogItem, string lp_image, playergroup lp_players);
void libNtve_gf_SetDialogItemImageType (int lp_dialogItem, int lp_imageType, playergroup lp_players);
void libNtve_gf_SetDialogItemBlendMode (int lp_dialogItem, int lp_blendMode, playergroup lp_players);
void libNtve_gf_SetDialogItemImageType2 (int lp_dialogItem, bool lp_tiled, playergroup lp_players);
string libNtve_gf_DialogItemImage (int lp_dialogItem, int lp_player);
int libNtve_gf_DialogItemImageType (int lp_dialogItem, int lp_player);
void libNtve_gf_SetDialogItemFlash (int lp_dialogItem, string lp_flash, playergroup lp_players);
void libNtve_gf_SetDialogItemCutscene (int lp_dialogItem, string lp_cutscene, playergroup lp_players);
void libNtve_gf_SetDialogItemAchievement (int lp_dialogItem, string lp_achievement, playergroup lp_players);
void libNtve_gf_SetDialogItemRenderPriority (int lp_dialogItem, int lp_renderPriority, playergroup lp_players);
void libNtve_gf_SetDialogItemClickOnDown (int lp_dialogItem, bool lp_clickOnDown, playergroup lp_players);
void libNtve_gf_SetDialogItemToggled (int lp_dialogItem, bool lp_toggled, playergroup lp_players);
void libNtve_gf_SetDialogItemMovie (int lp_dialogItem, string lp_movie, playergroup lp_players);
void libNtve_gf_SetDialogItemDesaturated (int lp_dialogItem, bool lp_desaturated, playergroup lp_players);
void libNtve_gf_SetDialogItemDesaturationColor (int lp_dialogItem, color lp_color, playergroup lp_players);
void libNtve_gf_SetDialogItemCustomTooltip (int lp_dialogItem, int lp_tooltip, playergroup lp_players);
void libNtve_gf_SetDialogItemUnit (int lp_dialogItem, unit lp_unit, playergroup lp_players);
void libNtve_gf_SetDialogItemModel (int lp_dialogItem, string lp_model, playergroup lp_players);
void libNtve_gf_SetDialogItemAnimation (int lp_dialogItem, string lp_animation, playergroup lp_players);
void libNtve_gf_SetDialogItemCamera (int lp_dialogItem, string lp_camera, playergroup lp_players);
void libNtve_gf_SetDialogItemBorderVisible (int lp_dialogItem, bool lp_visible, playergroup lp_players);
void libNtve_gf_SetDialogItemBorderImage (int lp_dialogItem, string lp_image, playergroup lp_players);
void libNtve_gf_SetDialogItemBackgroundVisible (int lp_dialogItem, bool lp_visible, playergroup lp_players);
void libNtve_gf_SetDialogItemUseTransition (int lp_dialogItem, bool lp_useTransition, playergroup lp_players);
void libNtve_gf_SetDialogItemMuted (int lp_dialogItem, bool lp_muted, playergroup lp_players);
void libNtve_gf_SetDialogItemPaused (int lp_dialogItem, bool lp_paused, playergroup lp_players);
void libNtve_gf_SetDialogItemAcceptMouse (int lp_dialogItem, bool lp_acceptMouse, playergroup lp_players);
void libNtve_gf_SetDialogItemTintColor (int lp_dialogItem, color lp_color, playergroup lp_players);
void libNtve_gf_SetDialogItemTeamColor (int lp_dialogItem, color lp_color, playergroup lp_players);
void libNtve_gf_SetDialogItemLight (int lp_dialogItem, string lp_light, playergroup lp_players);
void libNtve_gf_SetDialogItemTransitionModel (int lp_dialogItem, string lp_model, playergroup lp_players);
void libNtve_gf_SetDialogItemForceVisible (int lp_dialogItem, bool lp_visible, playergroup lp_players);
void libNtve_gf_SetDialogItemRenderType (int lp_dialogItem, int lp_renderType, playergroup lp_players);
void libNtve_gf_SetDialogItemUnitLink (int lp_dialogItem, string lp_unitLink, playergroup lp_players);
void libNtve_gf_SetDialogItemTeamColorIndex (int lp_dialogItem, int lp_index, playergroup lp_players);
void libNtve_gf_SetDialogItemAnimationDuration (int lp_dialogItem, fixed lp_time, playergroup lp_players);
void libNtve_gf_SetDialogItemAnimationTime (int lp_dialogItem, fixed lp_time, playergroup lp_players);
void libNtve_gf_SetDialogItemActor (int lp_dialogItem, string lp_actor, playergroup lp_players);
void libNtve_gf_SetDialogItemBehavior (int lp_dialogItem, string lp_behavior, playergroup lp_players);
void libNtve_gf_SetDialogItemHotkey (int lp_dialogItem, int lp_hotkey, playergroup lp_players);
void libNtve_gf_SetDialogItemAllowedMouseButtons (int lp_dialogItem, int lp_allowedButtons, playergroup lp_players);
void libNtve_gf_SetDialogItemAlphaMask (int lp_dialogItem, string lp_image, playergroup lp_players);
void libNtve_gf_SetDialogItemAnimationIndex (int lp_dialogItem, int lp_index, playergroup lp_players);
void libNtve_gf_SetDialogItemHandle (int lp_dialogItem, string lp_handle, playergroup lp_players);
void libNtve_gf_SetDialogItemBorderColor (int lp_dialogItem, color lp_color, playergroup lp_players);
void libNtve_gf_SetDialogItemFillColor (int lp_dialogItem, color lp_color, playergroup lp_players);
void libNtve_gf_SetDialogItemSubmenu (int lp_dialogItem, string lp_submenu, playergroup lp_players);
void libNtve_gf_SetDialogItemUnitGroup (int lp_dialogItem, unitgroup lp_unitGroup, playergroup lp_players);
void libNtve_gf_SetDialogItemPlayerId (int lp_dialogItem, int lp_playerId, playergroup lp_players);
void libNtve_gf_DisplayScreenButton (int lp_screenButtonID, text lp_text, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY, trigger lp_callback);
void libNtve_gf_HideScreenButton (bool lp_showHide, int lp_screenButtonID);
void libNtve_gf_FlashScreenButton (int lp_screenButtonID, fixed lp_flashTime, color lp_color1, color lp_color2);
void libNtve_gf_StopFlashingScreenButton (int lp_screenButtonID);
void libNtve_gf_SetScreenButtonBorderImage (int lp_screenButtonID, string lp_borderImage, string lp_hoverImage, int lp_borderType);
void libNtve_gf_SetScreenButtonFlashingBorderImage (int lp_screenButtonID, string lp_borderImage, string lp_hoverImage, int lp_borderType);
int libNtve_gf_ScreenButtonDialog (int lp_screenButtonID);
int libNtve_gf_ScreenButton (int lp_screenButtonID);
void libNtve_gf_DisplayScreenImage (int lp_screenImageID, string lp_image, int lp_blendMode, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY);
void libNtve_gf_HideScreenImage (bool lp_showHideOption, int lp_screenImageID);
void libNtve_gf_PulseScreenImage (int lp_screenImageID, fixed lp_period, fixed lp_transparency1, fixed lp_transparency2);
void libNtve_gf_StopPulsingScreenImage (int lp_screenImageID);
int libNtve_gf_ScreenImageDialog (int lp_screenImageID);
int libNtve_gf_ScreenImageDialogItem (int lp_screenImageID);
void libNtve_gf_DisplayScreenLabel (int lp_screenLabelID, text lp_label, string lp_style, int lp_width, int lp_height, int lp_anchor, int lp_offsetX, int lp_offsetY);
void libNtve_gf_HideScreenImage2 (bool lp_showHideOption, int lp_screenLabelID);
int libNtve_gf_ScreenLabelDialog (int lp_screenLabelID);
int libNtve_gf_ScreenLabelDialogItem (int lp_screenLabelID);
void libNtve_gf_CreateExplosionAtPoint (int lp_size, int lp_race, point lp_point);
bool libNtve_gf_PlayerCanCreateEffectAtPoint (int lp_player, string lp_effect, point lp_point);
bool libNtve_gf_PlayerCanCreateEffectOnUnit (int lp_player, string lp_effect, unit lp_target);
bool libNtve_gf_UnitCanCreateEffectAtPoint (unit lp_caster, string lp_effect, point lp_point);
bool libNtve_gf_UnitCanCreateEffectOnUnit (unit lp_caster, string lp_effect, unit lp_target);
fixed libNtve_gf_GamePlayTime (int lp_player);
void libNtve_gf_GameRemoveChargeRegen (string lp_inCharge);
void libNtve_gf_GameRemoveChargeUsed (string lp_inCharge);
void libNtve_gf_GameRemoveCooldown (string lp_inCooldown);
void libNtve_gf_PreloadModelAnimation (string lp_file, bool lp_queue);
void libNtve_gf_PreloadModelObject (string lp_id, bool lp_queue);
void libNtve_gf_PreloadSoundObject (string lp_id, bool lp_queue);
void libNtve_gf_PreloadSoundtrack (string lp_soundtrack, bool lp_queue);
void libNtve_gf_PreloadUnit (string lp_unit, bool lp_queue);
void libNtve_gf_WaitForTimer (timer lp_timer, fixed lp_time, bool lp_waitType);
void libNtve_gf_ShowHideLeaderboard (int lp_board, bool lp_showHide, playergroup lp_players);
int libNtve_gf_ArithmeticIntClamp (int lp_value, int lp_min, int lp_max);
fixed libNtve_gf_ArithmeticRealClamp (fixed lp_value, fixed lp_min, fixed lp_max);
fixed libNtve_gf_RandomPercent ();
fixed libNtve_gf_RandomAngle ();
order libNtve_gf_ReviveOrderTargetingPoint (abilcmd lp_abilCmd, point lp_p, unit lp_reviveUnit);
order libNtve_gf_ReviveOrderWithNoTarget (abilcmd lp_abilCmd, unit lp_reviveUnit);
void libNtve_gf_CreatePingFacingAngle (playergroup lp_players, string lp_model, point lp_position, color lp_color, fixed lp_duration, fixed lp_angle);
void libNtve_gf_ClearAlliance (int lp_sourcePlayer, int lp_targetPlayer);
void libNtve_gf_MakeAlly (int lp_sourcePlayer, int lp_targetPlayer);
void libNtve_gf_SetAlliance (int lp_sourcePlayer, int lp_targetPlayer, int lp_alliance);
void libNtve_gf_SetAllianceOneWay (int lp_sourcePlayer, int lp_targetPlayer, int lp_alliance);
void libNtve_gf_SetPlayerGroupAlliance (playergroup lp_players, int lp_alliance);
bool libNtve_gf_PlayerIsEnemy (int lp_sourcePlayer, int lp_targetPlayer, int lp_relation);
void libNtve_gf_PlayerRemoveChargeRegen (int lp_inPlayer, string lp_inCharge);
void libNtve_gf_PlayerRemoveChargeUsed (int lp_inPlayer, string lp_inCharge);
void libNtve_gf_PlayerRemoveCooldown (int lp_inPlayer, string lp_inCooldown);
void libNtve_gf_AddPlayerGroupToPlayerGroup (playergroup lp_sourceGroup, playergroup lp_targetGroup);
void libNtve_gf_RemovePlayerGroupFromPlayerGroup (playergroup lp_sourceGroup, playergroup lp_targetGroup);
point libNtve_gf_PointFromXYZ (fixed lp_x, fixed lp_y, fixed lp_y2);
point libNtve_gf_PointFromPositionAndAngle (point lp_point, fixed lp_angle);
point libNtve_gf_PointWithZOffset (point lp_p, fixed lp_z);
point libNtve_gf_PointOffsetTowardsPoint (point lp_sourcePoint, fixed lp_distance, point lp_targetPoint);
point libNtve_gf_RandomPointBetweenPoints (point lp_point1, point lp_point2);
int libNtve_gf_CinematicPortrait (int lp_position);
void libNtve_gf_HideAllCinematicPortraits (playergroup lp_players);
int libNtve_gf_FullscreenPortrait ();
void libNtve_gf_PortraitSetAnim (int lp_Portrait, string lp_Anim, string lp_identifier, int lp_flags, fixed lp_blendTime);
void libNtve_gf_ClearPortraitAnimation (int lp_portrait, string lp_identifier);
fixed libNtve_gf_WidthOfRegion (region lp_region);
fixed libNtve_gf_HeightOfRegion (region lp_region);
bool libNtve_gf_UnitTypeIsSelected (string lp_unitType, int lp_player);
void libNtve_gf_StoreUnitSelection (int lp_forPlayer, int lp_storeOption);
void libNtve_gf_RestoreUnitSelection (int lp_forPlayer);
void SoundPlayScene (soundlink lp_soundLink, playergroup lp_players, unitgroup lp_units, string lp_animation);
void SoundPlay (soundlink lp_soundLink, playergroup lp_players, fixed lp_volume, fixed lp_offset);
void SoundPlayOnUnit (soundlink lp_soundLink, playergroup lp_players, unit lp_unit, fixed lp_height, fixed lp_volume, fixed lp_offset);
void SoundPlayAtPoint (soundlink lp_soundLink, playergroup lp_players, point lp_location, fixed lp_height, fixed lp_volume, fixed lp_offset);
void libNtve_gf_SetAllSoundChannelVolumes (int lp_mode, playergroup lp_players, fixed lp_duration);
void libNtve_gf__StoryModeOnOffForPlayer (int lp_player, bool lp_onOff);
void libNtve_gf__StoryModeOnOffForPlayerGroup (playergroup lp_players, bool lp_onOff);
void libNtve_gf__StoryModeHideUI (playergroup lp_players);
void libNtve_gf__StoryModeRestoreUI (playergroup lp_players);
void libNtve_gf_StoryMode (playergroup lp_players, bool lp_onOff);
bool libNtve_gf_PlayerInStoryMode (int lp_player);
void libNtve_gf_SetUpgradeLevelForPlayer (int lp_p, string lp_upgrade, int lp_levels);
void libNtve_gf_SendTransmissionSimple (transmissionsource lp_Source, int lp_Target, soundlink lp_Sound, fixed lp_Duration, int lp_DurationType, bool lp_WaitUntilDone);
int TransmissionSendAdvanced (playergroup lp_Players, transmissionsource lp_Source, int lp_Target, string lp_portraitActor, string lp_PortraitAnim, soundlink lp_Sound, text lp_Speaker, text lp_Subtitle, fixed lp_Duration, int lp_DurationType, bool lp_WaitUntilDone);
int TransmissionSend (playergroup lp_Players, transmissionsource lp_Source, int lp_Target, string lp_PortraitAnim, soundlink lp_Sound, text lp_Speaker, text lp_Subtitle, fixed lp_Duration, int lp_DurationType, bool lp_WaitUntilDone);
void libNtve_gf_UIErrorMessage (playergroup lp_players, text lp_message, soundlink lp_sound);
int libNtve_gf__BB_PortraitBorderWidth (int lp_barID);
int libNtve_gf__BB_PortraitBorderHeight (int lp_barID);
int libNtve_gf__BB_PortraitWidth (int lp_barID);
int libNtve_gf__BB_PortraitHeight (int lp_barID);
int libNtve_gf__BB_TitleBarWidth (int lp_barID);
int libNtve_gf__BB_TitleBarHeight (int lp_barID);
int libNtve_gf__BB_HPBorderWidth (int lp_barID);
int libNtve_gf__BB_HPBorderHeight (int lp_barID);
int libNtve_gf__BB_HPBarWidth (int lp_barID);
int libNtve_gf__BB_HPBarHeight (int lp_barID);
int libNtve_gf__BB_HPBarCurrentWidth (int lp_barID);
text libNtve_gf__BB_HPBarFormatLabel (int lp_barID);
void libNtve_gf__BB_HPBarChange (int lp_barID);
void libNtve_gf_DisplayBossBar (int lp_bossBarID, string lp_portrait, text lp_title, int lp_max, playergroup lp_players);
void libNtve_gf_SetBossBarMaximumValue (int lp_bossBarID, int lp_max, bool lp_refresh);
void libNtve_gf_SetBossBarCurrentValue (int lp_bossBarID, int lp_current, bool lp_refresh);
void libNtve_gf_SetBossBarBoss (int lp_bossBarID, unit lp_boss, bool lp_refresh);
void libNtve_gf_SetBossBarRace (int lp_bossBarID, int lp_race, bool lp_refresh);
void libNtve_gf_MoveBossBar (int lp_bossBarID, int lp_anchor, int lp_offsetX, int lp_offsetY);
void libNtve_gf_ShowHideBossBar (bool lp_showHide, int lp_bossBarID);
void libNtve_gf_RefreshBossBar (int lp_bossBarID);
void libNtve_gf__StoreGameUIVisibleStates (bool lp_storeRestore, playergroup lp_players, int lp_index);
void libNtve_gf_HideGameUI (bool lp_showHide, playergroup lp_players);
bool libNtve_gf_UIFrameFlagCheck (int lp_uIFrame, int lp_flag);
text libNtve_gf_FormatTipTitle (text lp_title, int lp_type);
void libNtve_gf_CreateUnitsWithDefaultFacing (int lp_count, string lp_type, int lp_style, int lp_player, point lp_p);
void libNtve_gf_CreateUnitsAtPoint2 (int lp_count, string lp_type, int lp_flags, int lp_player, point lp_p);
unitgroup libNtve_gf_UnitCreateFacingPoint (int lp_count, string lp_type, int lp_flags, int lp_player, point lp_pos, point lp_facing);
void libNtve_gf_ReplaceUnit (unit lp_unit, string lp_unitType, int lp_options);
unit libNtve_gf_LastReplacedUnit ();
void libNtve_gf_RescueUnit (unit lp_unit, int lp_player, bool lp_changeColor);
void libNtve_gf_RescueUnit2 (unitgroup lp_unit, int lp_player, bool lp_changeColor);
bool libNtve_gf_UnitGroupIsDead (unitgroup lp_units);
void libNtve_gf_MakeUnitFacePoint (unit lp_unit, point lp_point, fixed lp_duration);
void libNtve_gf_PauseUnit (unit lp_unit, bool lp_pauseUnpause);
void libNtve_gf_ShowHideUnit (unit lp_unit, bool lp_showHide);
void libNtve_gf_ShareVisionofUnit (unit lp_unit, bool lp_shareUnshare, int lp_player);
bool libNtve_gf_UnitIsPaused (unit lp_u);
bool libNtve_gf_UnitIsHidden (unit lp_u);
bool libNtve_gf_UnitIsVisibleToPlayer (unit lp_unit, int lp_player);
bool libNtve_gf_UnitInRegion (unit lp_u, region lp_regioin);
unit libNtve_gf_KillingUnit ();
int libNtve_gf_KillingPlayer ();
unit libNtve_gf_AcquiredTarget ();
void libNtve_gf_MakeUnitInvulnerable (unit lp_unit, bool lp_option);
void libNtve_gf_MakeUnitUncommandable (unit lp_unit, bool lp_option);
bool libNtve_gf_UnitIsInvulnerable (unit lp_u);
int libNtve_gf_UnitGetPropertyKills (unit lp_u, bool lp_current);
int libNtve_gf_UnitGetPropertyResources (unit lp_u, bool lp_current);
bool libNtve_gf_UnitMoverExists (string lp_unitType, string lp_mover);
void libNtve_gf_UnitSetVariation (unit lp_unit, string lp_model, int lp_percent, string lp_textures);
void libNtve_gf_ChangeUnitDamage (unit lp_unit, int lp_takeDeal, int lp_option);
unitfilter libNtve_gf_ConvertTargetFilterStringToUnitFilter (string lp_targetFilterString);
bool libNtve_gf_UnitIsInsideTransport (unit lp_u);
abilcmd libNtve_gf_EventItemAbilityOrUnitAbility ();
bool libNtve_gf_UnitCanAttackUnit (unit lp_u, unit lp_s);
bool libNtve_gf_UnitIsUnderConstruction (unit lp_u);
string libNtve_gf_TriggeringProgressAbility ();
string libNtve_gf_TriggeringProgressEffect ();
string libNtve_gf_TriggeringProgressUnitType ();
string libNtve_gf_TriggeringProgressUpgrade ();
string libNtve_gf_QueuedBehaviorTypeInTrainingQueueSlot (unit lp_unit, int lp_slot, int lp_item);
string libNtve_gf_QueuedUnitTypeInTrainingQueueSlot (unit lp_unit, int lp_slot, int lp_item);
string libNtve_gf_QueuedUpgradeTypeInTrainingQueueSlot (unit lp_unit, int lp_slot, int lp_item);
void libNtve_gf_UnitBehaviorRemoveChargeRegen (unit lp_inUnit, string lp_inBehavior, string lp_inCharge);
void libNtve_gf_UnitAbilityRemoveChargeRegen (unit lp_inUnit, string lp_inAbil, string lp_inCharge);
void libNtve_gf_UnitRemoveChargeRegen (unit lp_inUnit, string lp_inCharge);
void libNtve_gf_UnitBehaviorRemoveChargeUsed (unit lp_inUnit, string lp_inBehavior, string lp_inCharge);
void libNtve_gf_UnitAbilityRemoveChargeUsed (unit lp_inUnit, string lp_inAbil, string lp_inCharge);
void libNtve_gf_UnitRemoveChargeUsed (unit lp_inUnit, string lp_inCharge);
void libNtve_gf_UnitBehaviorRemoveCooldown (unit lp_inUnit, string lp_inBehavior, string lp_inCooldown);
void libNtve_gf_UnitAbilityRemoveCooldown (unit lp_inUnit, string lp_inAbil, string lp_inCooldown);
void libNtve_gf_UnitRemoveCooldown (unit lp_inUnit, string lp_inCooldown);
unitgroup libNtve_gf_ConvertUnitToUnitGroup (unit lp_unit);
unitgroup libNtve_gf_UnitsInRegionWithAllianceToPlayerMatchingCondition (string lp_type, string lp_type2, string lp_type22, int lp_player, int lp_alliance, region lp_reg, unitfilter lp_unitFilter, int lp_count);
unitgroup libNtve_gf_UnitsInUnitGroupWithCustomValue (unitgroup lp_group, int lp_index, fixed lp_value);
void libNtve_gf_AddUnitGroupToUnitGroup (unitgroup lp_sourceUnitGroup, unitgroup lp_targetUnitGroup);
void libNtve_gf_RemoveUnitGroupFromUnitGroup (unitgroup lp_sourceUnitGroup, unitgroup lp_targetUnitGroup);
unit libNtve_gf_ClosestUnitToPoint (point lp_point, unitgroup lp_group);
point libNtve_gf_CenterOfUnitGroup (unitgroup lp_unitGroup);
void libNtve_gf_ShowHidePlacementModels (bool lp_show);

// Trigger Declarations
trigger libNtve_gt_ScreenButtonClicked;
trigger libNtve_gt_FlashScreenButton;
trigger libNtve_gt_PulseScreenImage;
trigger libNtve_gt__BB_BossHPChanged;

// Library Initialization
void libNtve_InitVariables ();

