Table of Contents

Scripting/Console commands list

This section will document all the scripting commands, which are also the @commands you can use in the in-game console.

Here’s the list of commands. Basically, the page of any command should contain the description from Nival script functions pdf manual. Then, any addition is welcome if you have some more experience with it.

Generic Functions

GetGameVar()
length()
GetDifficulty()
Load()
mod()
print()
random()
Save()
SetGameVar()
Sleep()
sqrt()
startThread()
GetMapDataPath()

On the Adventure Map

AddHeroCreatures()
AddObjectCreatures()
BlockGame()
CalcHeroMoveCost()
CanMoveHero()
ChangeHeroStat()
CreateMonster()
DeployReserveHero()
EnableAIHeroHiring()
EnableHeroAI()
IsObjectExists()
GenerateMonsters()
GetCurrentPlayer()
GetDate()
GetHeroCreatures()
GetHeroLevel()
GetHeroStat()
GetObjectCreatures()
GetObjectiveProgress()
GetObjectiveState()
GetObjectOwner()
GetObjectsInRegion()
GetObjectPosition()
GetPlayerHeroes()
GetPlayerResource()
GetTownBuildingLevel()
GetTownBuildingLimitLevel()
GetTownBuildingMaxLevel()
GetTownHero()
GiveArtefact()
LevelUpHero()
GiveHeroSkill()
GiveHeroWarMachine()
HasArtefact()
HasBorderguardKey()
HasHeroSkill()
HasHeroWarMachine()
IsHeroAlive()
IsHeroLootable()
IsObjectEnabled()
IsObjectInRegion()
IsObjectiveVisible()
IsObjectVisible()
IsRegionBlocked()
KnowHeroSpell()
Loose()
MarkObjectAsVisited()
MessageBox()
MoveCamera()
MoveHero()
MoveHeroRealTime()
GetAllNames()
OpenCircleFog()
OpenRegionFog()
Play2DSound()
Play3DSound()
PlayObjectAnimation()
RazeTown()
RegionToPoint()
RemoveArtefact()
RemoveHeroCreature()
RemoveHeroWarMachine()
RemoveObject()
RemoveObjectCreature()
ResetHeroCombatScript()
ResetObjectFlashlight()
SetAIHeroAttractor()
SetAIPlayerAttractor()
SetCombatLight()
SetHeroCombatScript()
SetHeroLootable()
SetAmbientLight()
SetObjectEnabled()
SetObjectiveProgress()
SetObjectiveState()
SetObjectiveVisible()
SetObjectFlashLight()
SetObjectOwner()
SetObjectPosition()
SetPlayerResource()
SetPlayerStartResources()
SetRegionBlocked()
SetTownBuildingLimitLevel()
SetWarfogBehaviour()
ShowFlyingSign()
SiegeTown()
StartCombat()
StartCutScene()
StartDialogScene()
StopPlaySound()
TalkBoxForPlayers()
TeachHeroSpell()
TransformTown()
Trigger()
UnblockGame()
UnreserveHero()
Win()

In Combat

Prepare()
Start()
IsHuman()
IsComputer()
SetControlMode()
EnableAutoFinish()
Finish()
GetAttackerHero()
GetAttackerCreatures()
GetAttackerWarMachines()
GetAttackerWarMachine()
GetDefenderHero()
GetDefenderCreatures()
GetDefenderWarMachines()
GetAttackerWarMachine()
GetDefenderBuidings()
GetDefenderBuiding()
IsAttacker()
IsHero()
IsCreature()
IsWarMachine()
IsBuilding()
GetHeroName()
GetCreatureType()
GetCreatureNumber()
GetWarMachineType()
GetBuildingType()
GetUnitPosition()
AddCreature()
EnableCinematicCamera()

In Town

HeroHired()
CreatureHired()

Tutorial

IsTutorialItemEnable()
IsTutorialMessageBoxOpen()
TutorialActivateHint()
TutorialMessageBox()
TutorialSetBlink()