ns

package module
v3.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 10 Imported by: 213

Documentation

Overview

Package ns implements NoxScript 3 originally used in Nox maps.

Names of functions are synchronized with the latest NoxScript implementation: https://noxtools.github.io/noxscript/. Thus, most functions are drop-in replacements.

Package provides additional type safety by using named types, booleans, etc. It does not expose object-oriented APIs which are typical to Go.

See NS4 for object-oriented API: https://pkg.go.dev/github.com/noxworld-dev/noxscript/ns/v4.

Index

Constants

View Source
const (
	AnchorCast                     = "AnchorCast"
	AnchorOn                       = "AnchorOn"
	AnchorOff                      = "AnchorOff"
	BlindCast                      = "BlindCast"
	BlindOn                        = "BlindOn"
	BlindOff                       = "BlindOff"
	BlinkCast                      = "BlinkCast"
	BurnCast                       = "BurnCast"
	CleansingFlameCast             = "CleansingFlameCast"
	ChannelLifeCast                = "ChannelLifeCast"
	ChannelLifeEffect              = "ChannelLifeEffect"
	ChannelLifeStop                = "ChannelLifeStop"
	CancelCast                     = "CancelCast"
	CharmCast                      = "CharmCast"
	CharmSuccess                   = "CharmSuccess"
	CharmFailure                   = "CharmFailure"
	ConfuseCast                    = "ConfuseCast"
	ConfuseOn                      = "ConfuseOn"
	ConfuseOff                     = "ConfuseOff"
	CounterspellCast               = "CounterspellCast"
	CurePoisonCast                 = "CurePoisonCast"
	CurePoisonEffect               = "CurePoisonEffect"
	DeathCast                      = "DeathCast"
	DeathOn                        = "DeathOn"
	DeathOff                       = "DeathOff"
	DeathTimer                     = "DeathTimer"
	DeathRayCast                   = "DeathRayCast"
	DemonBreath                    = "DemonBreath"
	DetonateGlyphCast              = "DetonateGlyphCast"
	DrainManaCast                  = "DrainManaCast"
	EarthquakeCast                 = "EarthquakeCast"
	EnergyBoltCast                 = "EnergyBoltCast"
	FearCast                       = "FearCast"
	FearOn                         = "FearOn"
	FearOff                        = "FearOff"
	ForceOfNatureCast              = "ForceOfNatureCast"
	ForceOfNatureReflect           = "ForceOfNatureReflect"
	ForceOfNatureRelease           = "ForceOfNatureRelease"
	GlyphCast                      = "GlyphCast"
	GlyphDetonate                  = "GlyphDetonate"
	FireballCast                   = "FireballCast"
	FireballExplode                = "FireballExplode"
	FireBallExplode                = "FireBallExplode"
	FirewalkCast                   = "FirewalkCast"
	FirewalkOn                     = "FirewalkOn"
	FirewalkOff                    = "FirewalkOff"
	FirewalkFlame                  = "FirewalkFlame"
	FistCast                       = "FistCast"
	FistHit                        = "FistHit"
	ForceFieldCast                 = "ForceFieldCast"
	FrostCast                      = "FrostCast"
	FrostOn                        = "FrostOn"
	FrostOff                       = "FrostOff"
	FumbleCast                     = "FumbleCast"
	FumbleEffect                   = "FumbleEffect"
	GreaterHealCast                = "GreaterHealCast"
	GreaterHealEffect              = "GreaterHealEffect"
	GreaterHealStop                = "GreaterHealStop"
	HasteCast                      = "HasteCast"
	HasteOn                        = "HasteOn"
	HasteOff                       = "HasteOff"
	HugeFoot                       = "HugeFoot"
	InfravisionCast                = "InfravisionCast"
	InfravisionOn                  = "InfravisionOn"
	InfraVisionOff                 = "InfraVisionOff"
	InversionCast                  = "InversionCast"
	InvisibilityCast               = "InvisibilityCast"
	InvisibilityOn                 = "InvisibilityOn"
	InvisibilityOff                = "InvisibilityOff"
	InvulnerabilityCast            = "InvulnerabilityCast"
	InvulnerabilityOn              = "InvulnerabilityOn"
	InvulnerabilityOff             = "InvulnerabilityOff"
	InvulnerableEffect             = "InvulnerableEffect"
	LesserHealCast                 = "LesserHealCast"
	LesserHealEffect               = "LesserHealEffect"
	LightCast                      = "LightCast"
	LightOn                        = "LightOn"
	LightOff                       = "LightOff"
	LightningBolt                  = "LightningBolt"
	LightningCast                  = "LightningCast"
	LockCast                       = "LockCast"
	ManaBombCast                   = "ManaBombCast"
	ManaBombEffect                 = "ManaBombEffect"
	MarkCast                       = "MarkCast"
	MagicMissileCast               = "MagicMissileCast"
	MagicMissileDetonate           = "MagicMissileDetonate"
	MeteorCast                     = "MeteorCast"
	MeteorShowerCast               = "MeteorShowerCast"
	MeteorHit                      = "MeteorHit"
	MoonglowCast                   = "MoonglowCast"
	MoonglowOn                     = "MoonglowOn"
	MoonglowOff                    = "MoonglowOff"
	NullifyCast                    = "NullifyCast"
	NullifyOn                      = "NullifyOn"
	NullifyOff                     = "NullifyOff"
	PhantomCast                    = "PhantomCast"
	PixieSwarmCast                 = "PixieSwarmCast"
	PixieHit                       = "PixieHit"
	PlasmaCast                     = "PlasmaCast"
	PoisonCast                     = "PoisonCast"
	PoisonEffect                   = "PoisonEffect"
	PressurePlateRelease           = "PressurePlateRelease"
	ProtectionFromFireCast         = "ProtectionFromFireCast"
	ProtectionFromFireOn           = "ProtectionFromFireOn"
	ProtectionFromFireOff          = "ProtectionFromFireOff"
	ProtectionFromFireEffect       = "ProtectionFromFireEffect"
	ProtectionFromPoisonCast       = "ProtectionFromPoisonCast"
	ProtectionFromPoisonOn         = "ProtectionFromPoisonOn"
	ProtectionFromPoisonOff        = "ProtectionFromPoisonOff"
	ProtectionFromPoisonEffec      = "ProtectionFromPoisonEffec"
	ProtectionFromPoisonEffect     = "ProtectionFromPoisonEffect"
	ProtectionFromElectricity      = "ProtectionFromElectricity"
	ProtectionFromMagicCast        = "ProtectionFromMagicCast"
	ProtectionFromMagicOn          = "ProtectionFromMagicOn"
	ProtectionFromMagicOff         = "ProtectionFromMagicOff"
	ProtectionFromMagicEffect      = "ProtectionFromMagicEffect"
	PullCast                       = "PullCast"
	PushCast                       = "PushCast"
	ReflectiveShieldCast           = "ReflectiveShieldCast"
	ReflectiveShieldOn             = "ReflectiveShieldOn"
	ReflectiveShieldOff            = "ReflectiveShieldOff"
	ReflectiveShieldEffect         = "ReflectiveShieldEffect"
	RegenerationOn                 = "RegenerationOn"
	RegenerationOff                = "RegenerationOff"
	RunCast                        = "RunCast"
	RunOn                          = "RunOn"
	RunOff                         = "RunOff"
	SecretWallSecret               = "SecretWallSecret"
	ShieldCast                     = "ShieldCast"
	ShieldOn                       = "ShieldOn"
	ShieldOff                      = "ShieldOff"
	ShieldRepelled                 = "ShieldRepelled"
	ShockCast                      = "ShockCast"
	ShockOn                        = "ShockOn"
	ShockOff                       = "ShockOff"
	Shocked                        = "Shocked"
	SlowCast                       = "SlowCast"
	SlowOn                         = "SlowOn"
	SlowOff                        = "SlowOff"
	StoneBlockMove                 = "StoneBlockMove"
	StunCast                       = "StunCast"
	StunOn                         = "StunOn"
	StunOff                        = "StunOff"
	SpikeBlockMover                = "SpikeBlockMover"
	SummonCast                     = "SummonCast"
	SwapCast                       = "SwapCast"
	TagCast                        = "TagCast"
	TagOn                          = "TagOn"
	TagOff                         = "TagOff"
	TeleportOut                    = "TeleportOut"
	TeleportIn                     = "TeleportIn"
	TeleportToMarkerCast           = "TeleportToMarkerCast"
	TeleportToMarkerEffect         = "TeleportToMarkerEffect"
	TeleportPopCast                = "TeleportPopCast"
	TeleportToTargetCast           = "TeleportToTargetCast"
	TelekinesisCast                = "TelekinesisCast"
	TelekinesisOn                  = "TelekinesisOn"
	TelekinesisOff                 = "TelekinesisOff"
	ToxicCloudCast                 = "ToxicCloudCast"
	TriggerGlyphCast               = "TriggerGlyphCast"
	TurnUndeadCast                 = "TurnUndeadCast"
	TurnUndeadEffect               = "TurnUndeadEffect"
	VampirismCast                  = "VampirismCast"
	VampirismOn                    = "VampirismOn"
	VampirismOff                   = "VampirismOff"
	DrainHealth                    = "DrainHealth"
	VillainCast                    = "VillainCast"
	VillainOn                      = "VillainOn"
	VillainOff                     = "VillainOff"
	WallCast                       = "WallCast"
	WallOn                         = "WallOn"
	WallOff                        = "WallOff"
	BerserkerChargeInvoke          = "BerserkerChargeInvoke"
	BerserkerCrash                 = "BerserkerCrash"
	BerserkerChargeOn              = "BerserkerChargeOn"
	BerserkerChargeOff             = "BerserkerChargeOff"
	WarcryInvoke                   = "WarcryInvoke"
	WarcryOn                       = "WarcryOn"
	WarcryOff                      = "WarcryOff"
	HarpoonInvoke                  = "HarpoonInvoke"
	HarpoonOn                      = "HarpoonOn"
	HarpoonOff                     = "HarpoonOff"
	TreadLightlyInvoke             = "TreadLightlyInvoke"
	TreadLightlyOn                 = "TreadLightlyOn"
	TreadLightlyOff                = "TreadLightlyOff"
	EyeOfTheWolfInvoke             = "EyeOfTheWolfInvoke"
	EyeOfTheWolfOn                 = "EyeOfTheWolfOn"
	EyeOfTheWolfOff                = "EyeOfTheWolfOff"
	SpellPhonemeUp                 = "SpellPhonemeUp"
	SpellPhonemeUpRight            = "SpellPhonemeUpRight"
	SpellPhonemeRight              = "SpellPhonemeRight"
	SpellPhonemeDownRight          = "SpellPhonemeDownRight"
	SpellPhonemeDown               = "SpellPhonemeDown"
	SpellPhonemeDownLeft           = "SpellPhonemeDownLeft"
	SpellPhonemeLeft               = "SpellPhonemeLeft"
	SpellPhonemeUpLeft             = "SpellPhonemeUpLeft"
	FemaleSpellPhonemeUp           = "FemaleSpellPhonemeUp"
	FemaleSpellPhonemeUpRight      = "FemaleSpellPhonemeUpRight"
	FemaleSpellPhonemeRight        = "FemaleSpellPhonemeRight"
	FemaleSpellPhonemeDownRig      = "FemaleSpellPhonemeDownRig"
	FemaleSpellPhonemeDown         = "FemaleSpellPhonemeDown"
	FemaleSpellPhonemeDownLef      = "FemaleSpellPhonemeDownLef"
	FemaleSpellPhonemeLeft         = "FemaleSpellPhonemeLeft"
	FemaleSpellPhonemeUpLeft       = "FemaleSpellPhonemeUpLeft"
	NPCSpellPhonemeUp              = "NPCSpellPhonemeUp"
	NPCSpellPhonemeUpRight         = "NPCSpellPhonemeUpRight"
	NPCSpellPhonemeRight           = "NPCSpellPhonemeRight"
	NPCSpellPhonemeDownRight       = "NPCSpellPhonemeDownRight"
	NPCSpellPhonemeDown            = "NPCSpellPhonemeDown"
	NPCSpellPhonemeDownLeft        = "NPCSpellPhonemeDownLeft"
	NPCSpellPhonemeLeft            = "NPCSpellPhonemeLeft"
	NPCSpellPhonemeUpLeft          = "NPCSpellPhonemeUpLeft"
	NPCFemaleSpellPhonemeUp        = "NPCFemaleSpellPhonemeUp"
	NPCFemaleSpellPhonemeUpRi      = "NPCFemaleSpellPhonemeUpRi"
	NPCFemaleSpellPhonemeUpRight   = "NPCFemaleSpellPhonemeUpRight"
	NPCFemaleSpellPhonemeRigh      = "NPCFemaleSpellPhonemeRigh"
	NPCFemaleSpellPhonemeRight     = "NPCFemaleSpellPhonemeRight"
	NPCFemaleSpellPhonemeDown      = "NPCFemaleSpellPhonemeDown"
	NPCFemaleSpellPhonemeDownLeft  = "NPCFemaleSpellPhonemeDownLeft"
	NPCFemaleSpellPhonemeDownRight = "NPCFemaleSpellPhonemeDownRight"
	NPCFemaleSpellPhonemeLeft      = "NPCFemaleSpellPhonemeLeft"
	NPCFemaleSpellPhonemeUpLe      = "NPCFemaleSpellPhonemeUpLe"
	NPCFemaleSpellPhonemeUpLeft    = "NPCFemaleSpellPhonemeUpLeft"
	FireballWand                   = "FireballWand"
	SmallFireballWand              = "SmallFireballWand"
	FlareWand                      = "FlareWand"
	LightningWand                  = "LightningWand"
	DepletedWand                   = "DepletedWand"
	Ricochet                       = "Ricochet"
	WeaponEffectFire               = "WeaponEffectFire"
	WeaponEffectElectricity        = "WeaponEffectElectricity"
	PermanentFizzle                = "PermanentFizzle"
	ManaEmpty                      = "ManaEmpty"
	Lock                           = "Lock"
	Unlock                         = "Unlock"
	ElevEnable                     = "ElevEnable"
	ElevDisable                    = "ElevDisable"
	OpenWoodenDoor                 = "OpenWoodenDoor"
	MoveWoodenDoor                 = "MoveWoodenDoor"
	CloseWoodenDoor                = "CloseWoodenDoor"
	WoodenDoorLocked               = "WoodenDoorLocked"
	OpenGate                       = "OpenGate"
	MoveGate                       = "MoveGate"
	CloseGate                      = "CloseGate"
	GateLocked                     = "GateLocked"
	OpenWoodenGate                 = "OpenWoodenGate"
	CloseWoodenGate                = "CloseWoodenGate"
	OpenHeavyWoodenDoor            = "OpenHeavyWoodenDoor"
	CloseHeavyWoodenDoor           = "CloseHeavyWoodenDoor"
	ElevStoneUp                    = "ElevStoneUp"
	ElevStoneDown                  = "ElevStoneDown"
	ElevWoodUp                     = "ElevWoodUp"
	ElevWoodDown                   = "ElevWoodDown"
	ElevMechUp                     = "ElevMechUp"
	ElevMechDown                   = "ElevMechDown"
	ElevLavaUp                     = "ElevLavaUp"
	ElevLavaDown                   = "ElevLavaDown"
	ElevGreenUp                    = "ElevGreenUp"
	ElevGreenDown                  = "ElevGreenDown"
	ElevLOTDUp                     = "ElevLOTDUp"
	ElevLOTDDown                   = "ElevLOTDDown"
	Gear1                          = "Gear1"
	Gear2                          = "Gear2"
	Gear3                          = "Gear3"
	SmallRockMove                  = "SmallRockMove"
	MediumRockMove                 = "MediumRockMove"
	LargeRockMove                  = "LargeRockMove"
	BoulderMove                    = "BoulderMove"
	WalkOnSnow                     = "WalkOnSnow"
	WalkOnStone                    = "WalkOnStone"
	WalkOnDirt                     = "WalkOnDirt"
	WalkOnWood                     = "WalkOnWood"
	WalkOnWater                    = "WalkOnWater"
	WalkOnMud                      = "WalkOnMud"
	RunOnSnow                      = "RunOnSnow"
	RunOnStone                     = "RunOnStone"
	RunOnDirt                      = "RunOnDirt"
	RunOnWood                      = "RunOnWood"
	RunOnWater                     = "RunOnWater"
	RunOnMud                       = "RunOnMud"
	PlayerFallThud                 = "PlayerFallThud"
	BarrelMove                     = "BarrelMove"
	BlackPowderBurn                = "BlackPowderBurn"
	FireExtinguish                 = "FireExtinguish"
	PolypExplode                   = "PolypExplode"
	PowderBarrelExplode            = "PowderBarrelExplode"
	BarrelBreak                    = "BarrelBreak"
	WaterBarrelBreak               = "WaterBarrelBreak"
	LOTDBarrelBreak                = "LOTDBarrelBreak"
	WineCaskBreak                  = "WineCaskBreak"
	BarrelStackBreak               = "BarrelStackBreak"
	CoffinBreak                    = "CoffinBreak"
	WaspHiveBreak                  = "WaspHiveBreak"
	WorkstationBreak               = "WorkstationBreak"
	CrushLight                     = "CrushLight"
	CrushMedium                    = "CrushMedium"
	CrushHard                      = "CrushHard"
	SentryRayHitWall               = "SentryRayHitWall"
	SentryRayHit                   = "SentryRayHit"
	DeathRayKill                   = "DeathRayKill"
	TauntLaugh                     = "TauntLaugh"
	TauntShakeFist                 = "TauntShakeFist"
	TauntPoint                     = "TauntPoint"
	FlagPickup                     = "FlagPickup"
	FlagDrop                       = "FlagDrop"
	FlagRespawn                    = "FlagRespawn"
	FlagCapture                    = "FlagCapture"
	TreasurePickup                 = "TreasurePickup"
	TreasureDrop                   = "TreasureDrop"
	GameOver                       = "GameOver"
	ServerOptionsChange            = "ServerOptionsChange"
	CamperAlarm                    = "CamperAlarm"
	PlayerEliminated               = "PlayerEliminated"
	CrownChange                    = "CrownChange"
	HumanMaleEatFood               = "HumanMaleEatFood"
	HumanMaleEatApple              = "HumanMaleEatApple"
	HumanMaleDrinkJug              = "HumanMaleDrinkJug"
	HumanMaleHurtLight             = "HumanMaleHurtLight"
	HumanMaleHurtMedium            = "HumanMaleHurtMedium"
	HumanMaleHurtHeavy             = "HumanMaleHurtHeavy"
	HumanMaleHurtPoison            = "HumanMaleHurtPoison"
	HumanMaleDie                   = "HumanMaleDie"
	HumanMaleExertionLight         = "HumanMaleExertionLight"
	HumanMaleExertionHeavy         = "HumanMaleExertionHeavy"
	HumanFemaleEatFood             = "HumanFemaleEatFood"
	HumanFemaleEatApple            = "HumanFemaleEatApple"
	HumanFemaleDrinkJug            = "HumanFemaleDrinkJug"
	HumanFemaleHurtLight           = "HumanFemaleHurtLight"
	HumanFemaleHurtMedium          = "HumanFemaleHurtMedium"
	HumanFemaleHurtHeavy           = "HumanFemaleHurtHeavy"
	HumanFemaleHurtPoison          = "HumanFemaleHurtPoison"
	HumanFemaleDie                 = "HumanFemaleDie"
	HumanFemaleExertionLight       = "HumanFemaleExertionLight"
	HumanFemaleExertionHeavy       = "HumanFemaleExertionHeavy"
	MonsterEatFood                 = "MonsterEatFood"
	BatMove                        = "BatMove"
	BatRecognize                   = "BatRecognize"
	BatBite                        = "BatBite"
	BatDie                         = "BatDie"
	SmallSpiderMove                = "SmallSpiderMove"
	SmallSpiderIdle                = "SmallSpiderIdle"
	SmallSpiderRecognize           = "SmallSpiderRecognize"
	SmallSpiderBite                = "SmallSpiderBite"
	SmallSpiderDie                 = "SmallSpiderDie"
	LargeSpiderMove                = "LargeSpiderMove"
	LargeSpiderIdle                = "LargeSpiderIdle"
	LargeSpiderRecognize           = "LargeSpiderRecognize"
	LargeSpiderBite                = "LargeSpiderBite"
	LargeSpiderSpit                = "LargeSpiderSpit"
	WebGooHit                      = "WebGooHit"
	LargeSpiderDie                 = "LargeSpiderDie"
	SkeletonMove                   = "SkeletonMove"
	SkeletonRecognize              = "SkeletonRecognize"
	SkeletonHitting                = "SkeletonHitting"
	SkeletonMissing                = "SkeletonMissing"
	SkeletonAttackInit             = "SkeletonAttackInit"
	SkeletonDie                    = "SkeletonDie"
	SkeletonLordMove               = "SkeletonLordMove"
	SkeletonLordRecognize          = "SkeletonLordRecognize"
	SkeletonLordHitting            = "SkeletonLordHitting"
	SkeletonLordMissing            = "SkeletonLordMissing"
	SkeletonLordAttackInit         = "SkeletonLordAttackInit"
	SkeletonLordDie                = "SkeletonLordDie"
	BomberRecognize                = "BomberRecognize"
	BomberSummon                   = "BomberSummon"
	BomberMove                     = "BomberMove"
	BomberDie                      = "BomberDie"
	DemonRecognize                 = "DemonRecognize"
	DemonTaunt                     = "DemonTaunt"
	DemonSpellInit                 = "DemonSpellInit"
	DemonMove                      = "DemonMove"
	DemonHurt                      = "DemonHurt"
	DemonDie                       = "DemonDie"
	GruntTaunt                     = "GruntTaunt"
	GruntIdle                      = "GruntIdle"
	GruntBowTwang                  = "GruntBowTwang"
	GruntRecognize                 = "GruntRecognize"
	GruntMove                      = "GruntMove"
	GruntAttackInit                = "GruntAttackInit"
	GruntHitting                   = "GruntHitting"
	GruntMissing                   = "GruntMissing"
	GruntHurt                      = "GruntHurt"
	GruntDie                       = "GruntDie"
	OgreBruteTaunt                 = "OgreBruteTaunt"
	OgreBruteIdle                  = "OgreBruteIdle"
	OgreBruteListen                = "OgreBruteListen"
	OgreBruteAttackInit            = "OgreBruteAttackInit"
	OgreBruteMeleeMiss             = "OgreBruteMeleeMiss"
	OgreBruteEngage                = "OgreBruteEngage"
	OgreBruteRecognize             = "OgreBruteRecognize"
	OgreBruteMove                  = "OgreBruteMove"
	OgreBruteHurt                  = "OgreBruteHurt"
	OgreBruteMeleeHit              = "OgreBruteMeleeHit"
	OgreBruteDie                   = "OgreBruteDie"
	OgreWarlordTaunt               = "OgreWarlordTaunt"
	OgreWarlordIdle                = "OgreWarlordIdle"
	OgreWarlordListen              = "OgreWarlordListen"
	OgreWarlordAttackInit          = "OgreWarlordAttackInit"
	OgreWarlordMeleeMiss           = "OgreWarlordMeleeMiss"
	OgreWarlordEngage              = "OgreWarlordEngage"
	OgreWarlordRecognize           = "OgreWarlordRecognize"
	OgreWarlordThrow               = "OgreWarlordThrow"
	OgreWarlordMove                = "OgreWarlordMove"
	OgreWarlordHurt                = "OgreWarlordHurt"
	OgreWarlordMeleeHit            = "OgreWarlordMeleeHit"
	OgreWarlordDie                 = "OgreWarlordDie"
	ScorpionMove                   = "ScorpionMove"
	ScorpionIdle                   = "ScorpionIdle"
	ScorpionRecognize              = "ScorpionRecognize"
	ScorpionStingHit               = "ScorpionStingHit"
	ScorpionStingMiss              = "ScorpionStingMiss"
	ScorpionAttackInit             = "ScorpionAttackInit"
	ScorpionHurt                   = "ScorpionHurt"
	ScorpionDie                    = "ScorpionDie"
	LeechMove                      = "LeechMove"
	LeechIdle                      = "LeechIdle"
	LeechRecognize                 = "LeechRecognize"
	LeechHitting                   = "LeechHitting"
	LeechMissing                   = "LeechMissing"
	LeechAttackInit                = "LeechAttackInit"
	LeechHurt                      = "LeechHurt"
	LeechDie                       = "LeechDie"
	ZombieMove                     = "ZombieMove"
	ZombieIdle                     = "ZombieIdle"
	ZombieRecognize                = "ZombieRecognize"
	ZombieHitting                  = "ZombieHitting"
	ZombieMissing                  = "ZombieMissing"
	ZombieAttackInit               = "ZombieAttackInit"
	ZombieHurt                     = "ZombieHurt"
	ZombieDie                      = "ZombieDie"
	VileZombieMove                 = "VileZombieMove"
	VileZombieIdle                 = "VileZombieIdle"
	VileZombieRecognize            = "VileZombieRecognize"
	VileZombieHitting              = "VileZombieHitting"
	VileZombieMissing              = "VileZombieMissing"
	VileZombieAttackInit           = "VileZombieAttackInit"
	VileZombieHurt                 = "VileZombieHurt"
	VileZombieDie                  = "VileZombieDie"
	BearMove                       = "BearMove"
	BearRecognize                  = "BearRecognize"
	BearHitting                    = "BearHitting"
	BearMissing                    = "BearMissing"
	BearAttackInit                 = "BearAttackInit"
	BearHurt                       = "BearHurt"
	BearDie                        = "BearDie"
	WolfMove                       = "WolfMove"
	WolfIdle                       = "WolfIdle"
	WolfRecognize                  = "WolfRecognize"
	WolfHitting                    = "WolfHitting"
	WolfMissing                    = "WolfMissing"
	WolfAttackInit                 = "WolfAttackInit"
	WolfHurt                       = "WolfHurt"
	WolfDie                        = "WolfDie"
	PlantRecognize                 = "PlantRecognize"
	PlantHitting                   = "PlantHitting"
	PlantMissing                   = "PlantMissing"
	PlantAttackInit                = "PlantAttackInit"
	PlantHurt                      = "PlantHurt"
	PlantDie                       = "PlantDie"
	MimicMove                      = "MimicMove"
	MimicIdle                      = "MimicIdle"
	MimicRecognize                 = "MimicRecognize"
	MimicAttackInit                = "MimicAttackInit"
	MimicHitting                   = "MimicHitting"
	MimicMissing                   = "MimicMissing"
	MimicHurt                      = "MimicHurt"
	MimicDie                       = "MimicDie"
	MechGolemRecognize             = "MechGolemRecognize"
	MechGolemHitting               = "MechGolemHitting"
	MechGolemMissing               = "MechGolemMissing"
	MechGolemMove                  = "MechGolemMove"
	MechGolemAttackInit            = "MechGolemAttackInit"
	MechGolemHurt                  = "MechGolemHurt"
	MechGolemDie                   = "MechGolemDie"
	ImpMove                        = "ImpMove"
	ImpRecognize                   = "ImpRecognize"
	ImpSteal                       = "ImpSteal"
	ImpShoot                       = "ImpShoot"
	ImpDie                         = "ImpDie"
	GolemRecognize                 = "GolemRecognize"
	GolemMove                      = "GolemMove"
	GolemHitting                   = "GolemHitting"
	GolemMissing                   = "GolemMissing"
	GolemHurt                      = "GolemHurt"
	GolemDie                       = "GolemDie"
	TowerRecognize                 = "TowerRecognize"
	TowerShoot                     = "TowerShoot"
	SkullRecognize                 = "SkullRecognize"
	SkullShoot                     = "SkullShoot"
	GhostMove                      = "GhostMove"
	GhostRecognize                 = "GhostRecognize"
	GhostHitting                   = "GhostHitting"
	GhostHurt                      = "GhostHurt"
	GhostDie                       = "GhostDie"
	WizardTalkable                 = "WizardTalkable"
	WizardMove                     = "WizardMove"
	WizardRecognize                = "WizardRecognize"
	WizardEngage                   = "WizardEngage"
	WizardRetreat                  = "WizardRetreat"
	WizardHurt                     = "WizardHurt"
	WizardDie                      = "WizardDie"
	WaspMove                       = "WaspMove"
	WaspIdle                       = "WaspIdle"
	WaspRecognize                  = "WaspRecognize"
	WaspSting                      = "WaspSting"
	WaspDie                        = "WaspDie"
	EmberDemonMove                 = "EmberDemonMove"
	EmberDemonTaunt                = "EmberDemonTaunt"
	EmberDemonRecognize            = "EmberDemonRecognize"
	EmberDemonHitting              = "EmberDemonHitting"
	EmberDemonMissing              = "EmberDemonMissing"
	EmberDemonThrow                = "EmberDemonThrow"
	EmberDemonHurt                 = "EmberDemonHurt"
	EmberDemonDie                  = "EmberDemonDie"
	UrchinMove                     = "UrchinMove"
	UrchinTaunt                    = "UrchinTaunt"
	UrchinIdle                     = "UrchinIdle"
	UrchinRecognize                = "UrchinRecognize"
	UrchinThrow                    = "UrchinThrow"
	UrchinHurt                     = "UrchinHurt"
	UrchinFlee                     = "UrchinFlee"
	UrchinDie                      = "UrchinDie"
	UrchinShamanMove               = "UrchinShamanMove"
	UrchinShamanTaunt              = "UrchinShamanTaunt"
	UrchinShamanIdle               = "UrchinShamanIdle"
	UrchinShamanRecognize          = "UrchinShamanRecognize"
	UrchinShamanHurt               = "UrchinShamanHurt"
	UrchinShamanFlee               = "UrchinShamanFlee"
	UrchinShamanDie                = "UrchinShamanDie"
	ArcherMove                     = "ArcherMove"
	ArcherTaunt                    = "ArcherTaunt"
	ArcherIdle                     = "ArcherIdle"
	ArcherRetreat                  = "ArcherRetreat"
	ArcherRecognize                = "ArcherRecognize"
	ArcherMissileInit              = "ArcherMissileInit"
	ArcherShoot                    = "ArcherShoot"
	ArcherHurt                     = "ArcherHurt"
	ArcherDie                      = "ArcherDie"
	SwordsmanMove                  = "SwordsmanMove"
	SwordsmanTaunt                 = "SwordsmanTaunt"
	SwordsmanIdle                  = "SwordsmanIdle"
	SwordsmanRecognize             = "SwordsmanRecognize"
	SwordsmanHitting               = "SwordsmanHitting"
	SwordsmanMissing               = "SwordsmanMissing"
	SwordsmanRetreat               = "SwordsmanRetreat"
	SwordsmanAttackInit            = "SwordsmanAttackInit"
	SwordsmanHurt                  = "SwordsmanHurt"
	SwordsmanDie                   = "SwordsmanDie"
	BeholderMove                   = "BeholderMove"
	BeholderIdle                   = "BeholderIdle"
	BeholderRecognize              = "BeholderRecognize"
	BeholderAttackInit             = "BeholderAttackInit"
	BeholderHurt                   = "BeholderHurt"
	BeholderDie                    = "BeholderDie"
	DryadMove                      = "DryadMove"
	DryadTaunt                     = "DryadTaunt"
	DryadRecognize                 = "DryadRecognize"
	DryadHurt                      = "DryadHurt"
	DryadDie                       = "DryadDie"
	EvilCherubMove                 = "EvilCherubMove"
	EvilCherubTaunt                = "EvilCherubTaunt"
	EvilCherubIdle                 = "EvilCherubIdle"
	EvilCherubMissileInit          = "EvilCherubMissileInit"
	EvilCherubRecognize            = "EvilCherubRecognize"
	EvilCherubShoot                = "EvilCherubShoot"
	EvilCherubHurt                 = "EvilCherubHurt"
	EvilCherubDie                  = "EvilCherubDie"
	FishDie                        = "FishDie"
	FrogDie                        = "FrogDie"
	FrogRecognize                  = "FrogRecognize"
	HecubahTaunt                   = "HecubahTaunt"
	HecubahTalkable                = "HecubahTalkable"
	HecubahMove                    = "HecubahMove"
	HecubahRecognize               = "HecubahRecognize"
	HecubahAttackInit              = "HecubahAttackInit"
	HecubahHurt                    = "HecubahHurt"
	HecubahDie                     = "HecubahDie"
	HecubahDieFrame0A              = "HecubahDieFrame0A"
	HecubahDieFrame0B              = "HecubahDieFrame0B"
	HecubahDieFrame98              = "HecubahDieFrame98"
	HecubahDieFrame194             = "HecubahDieFrame194"
	HecubahDieFrame283             = "HecubahDieFrame283"
	HecubahDieFrame439             = "HecubahDieFrame439"
	NecromancerTaunt               = "NecromancerTaunt"
	NecromancerTalkable            = "NecromancerTalkable"
	NecromancerMove                = "NecromancerMove"
	NecromancerRecognize           = "NecromancerRecognize"
	NecromancerEngage              = "NecromancerEngage"
	NecromancerRetreat             = "NecromancerRetreat"
	NecromancerAttackInit          = "NecromancerAttackInit"
	NecromancerHurt                = "NecromancerHurt"
	NecromancerDie                 = "NecromancerDie"
	LichMove                       = "LichMove"
	LichRecognize                  = "LichRecognize"
	LichAttackInit                 = "LichAttackInit"
	LichHurt                       = "LichHurt"
	LichDie                        = "LichDie"
	FlyingGolemMove                = "FlyingGolemMove"
	FlyingGolemRecognize           = "FlyingGolemRecognize"
	FlyingGolemShoot               = "FlyingGolemShoot"
	FlyingGolemHurt                = "FlyingGolemHurt"
	FlyingGolemDie                 = "FlyingGolemDie"
	NPCIdle                        = "NPCIdle"
	NPCTalkable                    = "NPCTalkable"
	NPCRecognize                   = "NPCRecognize"
	NPCRetreat                     = "NPCRetreat"
	NPCHurt                        = "NPCHurt"
	NPCDie                         = "NPCDie"
	MaidenIdle                     = "MaidenIdle"
	MaidenTalkable                 = "MaidenTalkable"
	MaidenFlee                     = "MaidenFlee"
	MaidenHurt                     = "MaidenHurt"
	MaidenDie                      = "MaidenDie"
	RatDie                         = "RatDie"
	ShadeMove                      = "ShadeMove"
	ShadeRecognize                 = "ShadeRecognize"
	ShadeAttackInit                = "ShadeAttackInit"
	ShadeHurt                      = "ShadeHurt"
	ShadeDie                       = "ShadeDie"
	WeirdlingMove                  = "WeirdlingMove"
	WillOWispMove                  = "WillOWispMove"
	WillOWispIdle                  = "WillOWispIdle"
	WillOWispRecognize             = "WillOWispRecognize"
	WillOWispEngage                = "WillOWispEngage"
	WillOWispHurt                  = "WillOWispHurt"
	WillOWispDie                   = "WillOWispDie"
	TrollMove                      = "TrollMove"
	TrollIdle                      = "TrollIdle"
	TrollRecognize                 = "TrollRecognize"
	TrollHurt                      = "TrollHurt"
	TrollAttackInit                = "TrollAttackInit"
	TrollFlatus                    = "TrollFlatus"
	TrollDie                       = "TrollDie"
	MaleNPC1Idle                   = "MaleNPC1Idle"
	MaleNPC1Talkable               = "MaleNPC1Talkable"
	MaleNPC1Recognize              = "MaleNPC1Recognize"
	MaleNPC1Engage                 = "MaleNPC1Engage"
	MaleNPC1Retreat                = "MaleNPC1Retreat"
	MaleNPC1Hurt                   = "MaleNPC1Hurt"
	MaleNPC1AttackInit             = "MaleNPC1AttackInit"
	MaleNPC1Die                    = "MaleNPC1Die"
	MaleNPC2Idle                   = "MaleNPC2Idle"
	MaleNPC2Talkable               = "MaleNPC2Talkable"
	MaleNPC2Recognize              = "MaleNPC2Recognize"
	MaleNPC2Engage                 = "MaleNPC2Engage"
	MaleNPC2Retreat                = "MaleNPC2Retreat"
	MaleNPC2Hurt                   = "MaleNPC2Hurt"
	MaleNPC2AttackInit             = "MaleNPC2AttackInit"
	MaleNPC2Die                    = "MaleNPC2Die"
	Maiden1Talkable                = "Maiden1Talkable"
	Maiden1Idle                    = "Maiden1Idle"
	Maiden1Recognize               = "Maiden1Recognize"
	Maiden1Retreat                 = "Maiden1Retreat"
	Maiden1Hurt                    = "Maiden1Hurt"
	Maiden1AttackInit              = "Maiden1AttackInit"
	Maiden1Die                     = "Maiden1Die"
	Maiden2Idle                    = "Maiden2Idle"
	Maiden2Talkable                = "Maiden2Talkable"
	Maiden2Recognize               = "Maiden2Recognize"
	Maiden2Retreat                 = "Maiden2Retreat"
	Maiden2Hurt                    = "Maiden2Hurt"
	Maiden2AttackInit              = "Maiden2AttackInit"
	Maiden2Die                     = "Maiden2Die"
	HorvathTalkable                = "HorvathTalkable"
	HorvathEngage                  = "HorvathEngage"
	HorvathHurt                    = "HorvathHurt"
	HorvathDie                     = "HorvathDie"
	Wizard1Idle                    = "Wizard1Idle"
	Wizard1Talkable                = "Wizard1Talkable"
	Wizard1Recognize               = "Wizard1Recognize"
	Wizard1Engage                  = "Wizard1Engage"
	Wizard1Retreat                 = "Wizard1Retreat"
	Wizard1Hurt                    = "Wizard1Hurt"
	Wizard1AttackInit              = "Wizard1AttackInit"
	Wizard1Die                     = "Wizard1Die"
	Wizard2Idle                    = "Wizard2Idle"
	Wizard2Talkable                = "Wizard2Talkable"
	Wizard2Recognize               = "Wizard2Recognize"
	Wizard2Engage                  = "Wizard2Engage"
	Wizard2Retreat                 = "Wizard2Retreat"
	Wizard2Hurt                    = "Wizard2Hurt"
	Wizard2AttackInit              = "Wizard2AttackInit"
	Wizard2Die                     = "Wizard2Die"
	FireKnight1Idle                = "FireKnight1Idle"
	FireKnight1Talkable            = "FireKnight1Talkable"
	FireKnight1Recognize           = "FireKnight1Recognize"
	FireKnight1Engage              = "FireKnight1Engage"
	FireKnight1Retreat             = "FireKnight1Retreat"
	FireKnight1Hurt                = "FireKnight1Hurt"
	FireKnight1AttackInit          = "FireKnight1AttackInit"
	FireKnight1Die                 = "FireKnight1Die"
	FireKnight2Idle                = "FireKnight2Idle"
	FireKnight2Talkable            = "FireKnight2Talkable"
	FireKnight2Recognize           = "FireKnight2Recognize"
	FireKnight2Engage              = "FireKnight2Engage"
	FireKnight2Retreat             = "FireKnight2Retreat"
	FireKnight2Hurt                = "FireKnight2Hurt"
	FireKnight2AttackInit          = "FireKnight2AttackInit"
	FireKnight2Die                 = "FireKnight2Die"
	Guard1Idle                     = "Guard1Idle"
	Guard1Talkable                 = "Guard1Talkable"
	Guard1Recognize                = "Guard1Recognize"
	Guard1Engage                   = "Guard1Engage"
	Guard1Retreat                  = "Guard1Retreat"
	Guard1Hurt                     = "Guard1Hurt"
	Guard1AttackInit               = "Guard1AttackInit"
	Guard1Die                      = "Guard1Die"
	Guard2Idle                     = "Guard2Idle"
	Guard2Talkable                 = "Guard2Talkable"
	Guard2Recognize                = "Guard2Recognize"
	Guard2Engage                   = "Guard2Engage"
	Guard2Retreat                  = "Guard2Retreat"
	Guard2Hurt                     = "Guard2Hurt"
	Guard2AttackInit               = "Guard2AttackInit"
	Guard2Die                      = "Guard2Die"
	WoundedNPCIdle                 = "WoundedNPCIdle"
	WoundedNPCTalkable             = "WoundedNPCTalkable"
	WoundedNPCRecognize            = "WoundedNPCRecognize"
	WoundedNPCRetreat              = "WoundedNPCRetreat"
	WoundedNPCHurt                 = "WoundedNPCHurt"
	WoundedNPCAttackInit           = "WoundedNPCAttackInit"
	WoundedNPCDie                  = "WoundedNPCDie"
	HorrendousTalkable             = "HorrendousTalkable"
	HorrendousRecognize            = "HorrendousRecognize"
	HorrendousRetreat              = "HorrendousRetreat"
	HorrendousHurt                 = "HorrendousHurt"
	HorrendousAttackInit           = "HorrendousAttackInit"
	HorrendousDie                  = "HorrendousDie"
	PotionUse                      = "PotionUse"
	RestoreHealthName              = "RestoreHealth"
	RestoreMana                    = "RestoreMana"
	SecretWallOpen                 = "SecretWallOpen"
	SecretWallClose                = "SecretWallClose"
	SecretWallEarthOpen            = "SecretWallEarthOpen"
	SecretWallEarthClose           = "SecretWallEarthClose"
	SecretWallMetalOpen            = "SecretWallMetalOpen"
	SecretWallMetalClose           = "SecretWallMetalClose"
	SecretWallStoneOpen            = "SecretWallStoneOpen"
	SecretWallStoneClose           = "SecretWallStoneClose"
	SecretWallWoodOpen             = "SecretWallWoodOpen"
	SecretWallWoodClose            = "SecretWallWoodClose"
	TriggerPressed                 = "TriggerPressed"
	TriggerReleased                = "TriggerReleased"
	PotionBreak                    = "PotionBreak"
	WallDestroyed                  = "WallDestroyed"
	WallDestroyedStone             = "WallDestroyedStone"
	WallDestroyedWood              = "WallDestroyedWood"
	WallDestroyedMetal             = "WallDestroyedMetal"
	ChestOpen                      = "ChestOpen"
	CryptChestOpen                 = "CryptChestOpen"
	SackChestOpen                  = "SackChestOpen"
	EggBreak                       = "EggBreak"
	ButtonPress                    = "ButtonPress"
	ButtonRelease                  = "ButtonRelease"
	LeverToggle                    = "LeverToggle"
	SwitchToggle                   = "SwitchToggle"
	ChainPull                      = "ChainPull"
	ShortBellsUp                   = "ShortBellsUp"
	LongBellsUp                    = "LongBellsUp"
	LongBellsDown                  = "LongBellsDown"
	BigBell                        = "BigBell"
	MetallicBong                   = "MetallicBong"
	Chime                          = "Chime"
	BigGong                        = "BigGong"
	SmallGong                      = "SmallGong"
	MysticChant                    = "MysticChant"
	TripleChime                    = "TripleChime"
	Clank1                         = "Clank1"
	Clank2                         = "Clank2"
	Clank3                         = "Clank3"
	MapOpen                        = "MapOpen"
	MapClose                       = "MapClose"
	BookOpen                       = "BookOpen"
	BookClose                      = "BookClose"
	PageTurn                       = "PageTurn"
	InventoryOpen                  = "InventoryOpen"
	InventoryClose                 = "InventoryClose"
	InventoryPickup                = "InventoryPickup"
	InventoryDrop                  = "InventoryDrop"
	SpellPickup                    = "SpellPickup"
	SpellDrop                      = "SpellDrop"
	SpellPopOffBook                = "SpellPopOffBook"
	TrapEditorOpen                 = "TrapEditorOpen"
	TrapEditorClose                = "TrapEditorClose"
	ChangeSpellbar                 = "ChangeSpellbar"
	ExpandSpellbar                 = "ExpandSpellbar"
	CollapseSpellbar               = "CollapseSpellbar"
	CreatureCageAppears            = "CreatureCageAppears"
	CreatureCageHides              = "CreatureCageHides"
	ShopRepairItem                 = "ShopRepairItem"
	MetalArmorPickup               = "MetalArmorPickup"
	MetalArmorDrop                 = "MetalArmorDrop"
	MetalArmorBreak                = "MetalArmorBreak"
	LeatherArmorPickup             = "LeatherArmorPickup"
	LeatherArmorDrop               = "LeatherArmorDrop"
	LeatherArmorBreak              = "LeatherArmorBreak"
	WoodenArmorPickup              = "WoodenArmorPickup"
	WoodenArmorDrop                = "WoodenArmorDrop"
	WoodenArmorBreak               = "WoodenArmorBreak"
	ClothArmorPickup               = "ClothArmorPickup"
	ClothArmorDrop                 = "ClothArmorDrop"
	ClothArmorBreak                = "ClothArmorBreak"
	ShoesPickup                    = "ShoesPickup"
	ShoesDrop                      = "ShoesDrop"
	MetalWeaponBreak               = "MetalWeaponBreak"
	WoodWeaponBreak                = "WoodWeaponBreak"
	KeyPickup                      = "KeyPickup"
	KeyDrop                        = "KeyDrop"
	AmuletPickup                   = "AmuletPickup"
	AmuletDrop                     = "AmuletDrop"
	TrapPickup                     = "TrapPickup"
	TrapDrop                       = "TrapDrop"
	BookPickup                     = "BookPickup"
	BookDrop                       = "BookDrop"
	ScrollPickup                   = "ScrollPickup"
	ScrollDrop                     = "ScrollDrop"
	WandPickup                     = "WandPickup"
	WandDrop                       = "WandDrop"
	PotionPickup                   = "PotionPickup"
	PotionDrop                     = "PotionDrop"
	MeatPickup                     = "MeatPickup"
	MeatDrop                       = "MeatDrop"
	ApplePickup                    = "ApplePickup"
	AppleDrop                      = "AppleDrop"
	ShroomPickup                   = "ShroomPickup"
	ShroomDrop                     = "ShroomDrop"
	SpectaclesPickup               = "SpectaclesPickup"
	SpectaclesDrop                 = "SpectaclesDrop"
	MetalWeaponPickup              = "MetalWeaponPickup"
	WoodenWeaponPickup             = "WoodenWeaponPickup"
	MetalWeaponDrop                = "MetalWeaponDrop"
	WoodenWeaponDrop               = "WoodenWeaponDrop"
	BearTrapTriggered              = "BearTrapTriggered"
	PoisonTrapTriggered            = "PoisonTrapTriggered"
	StoneHitStone                  = "StoneHitStone"
	StoneHitEarth                  = "StoneHitEarth"
	StoneHitWood                   = "StoneHitWood"
	StoneHitMetal                  = "StoneHitMetal"
	StoneHitFlesh                  = "StoneHitFlesh"
	WoodHitStone                   = "WoodHitStone"
	WoodHitEarth                   = "WoodHitEarth"
	WoodHitWood                    = "WoodHitWood"
	WoodHitMetal                   = "WoodHitMetal"
	WoodHitFlesh                   = "WoodHitFlesh"
	MetalHitStone                  = "MetalHitStone"
	MetalHitEarth                  = "MetalHitEarth"
	MetalHitWood                   = "MetalHitWood"
	MetalHitMetal                  = "MetalHitMetal"
	MetalHitFlesh                  = "MetalHitFlesh"
	FleshHitStone                  = "FleshHitStone"
	FleshHitEarth                  = "FleshHitEarth"
	FleshHitWood                   = "FleshHitWood"
	FleshHitMetal                  = "FleshHitMetal"
	FleshHitFlesh                  = "FleshHitFlesh"
	DiamondHitStone                = "DiamondHitStone"
	DiamondHitEarth                = "DiamondHitEarth"
	DiamondHitWood                 = "DiamondHitWood"
	DiamondHitMetal                = "DiamondHitMetal"
	DiamondHitFlesh                = "DiamondHitFlesh"
	HitStoneBreakable              = "HitStoneBreakable"
	HitEarthBreakable              = "HitEarthBreakable"
	HitWoodBreakable               = "HitWoodBreakable"
	HitMetalBreakable              = "HitMetalBreakable"
	HitMagicBreakable              = "HitMagicBreakable"
	HitMetalShield                 = "HitMetalShield"
	PunchMissing                   = "PunchMissing"
	LongswordMissing               = "LongswordMissing"
	SwordMissing                   = "SwordMissing"
	HammerMissing                  = "HammerMissing"
	AxeMissing                     = "AxeMissing"
	MaceMissing                    = "MaceMissing"
	BowEmpty                       = "BowEmpty"
	CrossBowEmpty                  = "CrossBowEmpty"
	BowShoot                       = "BowShoot"
	CrossBowShoot                  = "CrossBowShoot"
	ArrowTrapShoot                 = "ArrowTrapShoot"
	GreatSwordReflect              = "GreatSwordReflect"
	ChakramThrow                   = "ChakramThrow"
	ChakramCatch                   = "ChakramCatch"
	ChakramFallToGround            = "ChakramFallToGround"
	StaffBlock                     = "StaffBlock"
	NextWeapon                     = "NextWeapon"
	HeartBeat                      = "HeartBeat"
	GenerateTick                   = "GenerateTick"
	SummonClick                    = "SummonClick"
	SummonComplete                 = "SummonComplete"
	SummonAbort                    = "SummonAbort"
	ManaClick                      = "ManaClick"
	LevelUp                        = "LevelUp"
	JournalEntryAdd                = "JournalEntryAdd"
	SecretFound                    = "SecretFound"
	EarthRumbleMajor               = "EarthRumbleMajor"
	EarthRumbleMinor               = "EarthRumbleMinor"
	ElectricalArc1                 = "ElectricalArc1"
	FloorSpikesUp                  = "FloorSpikesUp"
	FloorSpikesDown                = "FloorSpikesDown"
	SpikeBlockMove                 = "SpikeBlockMove"
	BoulderRoll                    = "BoulderRoll"
	ArcheryContestBegins           = "ArcheryContestBegins"
	HorrendousIsKilled             = "HorrendousIsKilled"
	StaffOblivionAchieve1          = "StaffOblivionAchieve1"
	StaffOblivionAchieve2          = "StaffOblivionAchieve2"
	StaffOblivionAchieve3          = "StaffOblivionAchieve3"
	StaffOblivionAchieve4          = "StaffOblivionAchieve4"
	FireGrate                      = "FireGrate"
	MechGolemPowerUp               = "MechGolemPowerUp"
	ShellSelect                    = "ShellSelect"
	ShellClick                     = "ShellClick"
	ShellSlideIn                   = "ShellSlideIn"
	ShellSlideOut                  = "ShellSlideOut"
	ShellMouseBoom                 = "ShellMouseBoom"
	NoCanDo                        = "NoCanDo"
	BallThrow                      = "BallThrow"
	BallGrab                       = "BallGrab"
	BallBounce                     = "BallBounce"
	BallHitGoal                    = "BallHitGoal"
	HarpoonBroken                  = "HarpoonBroken"
	HarpoonReel                    = "HarpoonReel"
	MonsterGeneratorDie            = "MonsterGeneratorDie"
	MonsterGeneratorHurt           = "MonsterGeneratorHurt"
	MonsterGeneratorSpawn          = "MonsterGeneratorSpawn"
	PlayerExit                     = "PlayerExit"
	AwardLife                      = "AwardLife"
	SoulGateTouch                  = "SoulGateTouch"
	QuestRespawn                   = "QuestRespawn"
	QuestFinalDeath                = "QuestFinalDeath"
	QuestPlayerJoinGame            = "QuestPlayerJoinGame"
	QuestStatScreen                = "QuestStatScreen"
	QuestIntroScreen               = "QuestIntroScreen"
	QuestPlayerExitGame            = "QuestPlayerExitGame"
	QuestLockedChest               = "QuestLockedChest"
	StoneDoorOpen                  = "StoneDoorOpen"
	StoneDoorClose                 = "StoneDoorClose"
	DiamondPickup                  = "DiamondPickup"
	DiamondDrop                    = "DiamondDrop"
	EnableSharedKeyMode            = "EnableSharedKeyMode"
)
View Source
const (
	MISSILE          = "MISSILE"
	MONSTER          = "MONSTER"
	PLAYER           = "PLAYER"
	OBSTACLE         = "OBSTACLE"
	FOOD             = "FOOD"
	EXIT             = "EXIT"
	KEY              = "KEY"
	DOOR             = "DOOR"
	INFO_BOOK        = "INFO_BOOK"
	TRIGGER          = "TRIGGER"
	TRANSPORTER      = "TRANSPORTER"
	HOLE             = "HOLE"
	WAND             = "WAND"
	FIRE             = "FIRE"
	ELEVATOR         = "ELEVATOR"
	ELEVATOR_SHAFT   = "ELEVATOR_SHAFT"
	DANGEROUS        = "DANGEROUS"
	MONSTERGENERATOR = "MONSTERGENERATOR"
	READABLE         = "READABLE"
	LIGHT            = "LIGHT"
	SIMPLE           = "SIMPLE"
	COMPLEX          = "COMPLEX"
	IMMOBILE         = "IMMOBILE"
	VISIBLE_ENABLE   = "VISIBLE_ENABLE"
	WEAPON           = "WEAPON"
	ARMOR            = "ARMOR"
	NOT_STACKABLE    = "NOT_STACKABLE"
	TREASURE         = "TREASURE"
	FLAG             = "FLAG"
	CLIENT_PERSIST   = "CLIENT_PERSIST"
	CLIENT_PREDICT   = "CLIENT_PREDICT"
	PICKUP           = "PICKUP"
)
View Source
const (
	DAMAGE_BLADE             = DamageType(0)
	DAMAGE_FLAME             = DamageType(1)
	DAMAGE_CRUSH             = DamageType(2)
	DAMAGE_IMPALE            = DamageType(3)
	DAMAGE_DRAIN             = DamageType(4)
	DAMAGE_POISON            = DamageType(5)
	DAMAGE_DISPEL_UNDEAD     = DamageType(6)
	DAMAGE_EXPLOSION         = DamageType(7)
	DAMAGE_BITE              = DamageType(8)
	DAMAGE_ELECTRIC          = DamageType(9)
	DAMAGE_CLAW              = DamageType(10)
	DAMAGE_IMPACT            = DamageType(11)
	DAMAGE_LAVA              = DamageType(12)
	DAMAGE_DEATH_MAGIC       = DamageType(13)
	DAMAGE_PLASMA            = DamageType(14)
	DAMAGE_MANA_BOMB         = DamageType(15)
	DAMAGE_ZAP_RAY           = DamageType(16)
	DAMAGE_AIRBORNE_ELECTRIC = DamageType(17)
)
View Source
const (
	PARTICLEFX    = "PARTICLEFX"
	PLASMA        = "PLASMA"
	SUMMON        = "SUMMON"
	SUMMON_CANCEL = "SUMMON_CANCEL"
	//SHIELD = "SHIELD"
	BLUE_SPARKS            = "BLUE_SPARKS"
	YELLOW_SPARKS          = "YELLOW_SPARKS"
	CYAN_SPARKS            = "CYAN_SPARKS"
	VIOLET_SPARKS          = "VIOLET_SPARKS"
	EXPLOSION              = "EXPLOSION"
	LESSER_EXPLOSION       = "LESSER_EXPLOSION"
	COUNTERSPELL_EXPLOSION = "COUNTERSPELL_EXPLOSION"
	THIN_EXPLOSION         = "THIN_EXPLOSION"
	TELEPORT               = "TELEPORT"
	SMOKE_BLAST            = "SMOKE_BLAST"
	DAMAGE_POOF            = "DAMAGE_POOF"
	LIGHTNING              = "LIGHTNING"
	ENERGY_BOLT            = "ENERGY_BOLT"
	CHAIN_LIGHTNING_BOLT   = "CHAIN_LIGHTNING_BOLT"
	DRAIN_MANA             = "DRAIN_MANA"
	CHARM                  = "CHARM"
	GREATER_HEAL           = "GREATER_HEAL"
	//MAGIC = "MAGIC"
	SPARK_EXPLOSION    = "SPARK_EXPLOSION"
	DEATH_RAY          = "DEATH_RAY"
	SENTRY_RAY         = "SENTRY_RAY"
	RICOCHET           = "RICOCHET"
	JIGGLE             = "JIGGLE"
	GREEN_BOLT         = "GREEN_BOLT"
	GREEN_EXPLOSION    = "GREEN_EXPLOSION"
	WHITE_FLASH        = "WHITE_FLASH"
	GENERATING_MAP     = "GENERATING_MAP"
	ASSEMBLING_MAP     = "ASSEMBLING_MAP"
	POPULATING_MAP     = "POPULATING_MAP"
	DURATION_SPELL     = "DURATION_SPELL"
	DELTAZ_SPELL_START = "DELTAZ_SPELL_START"
	TURN_UNDEAD        = "TURN_UNDEAD"
	ARROW_TRAP         = "ARROW_TRAP"
	VAMPIRISM          = "VAMPIRISM"
	MANA_BOMB_CANCEL   = "MANA_BOMB_CANCEL"
)
View Source
const (
	ENCHANT_INVISIBLE                = "ENCHANT_INVISIBLE"
	ENCHANT_MOONGLOW                 = "ENCHANT_MOONGLOW"
	ENCHANT_BLINDED                  = "ENCHANT_BLINDED"
	ENCHANT_CONFUSED                 = "ENCHANT_CONFUSED"
	ENCHANT_SLOWED                   = "ENCHANT_SLOWED"
	ENCHANT_HELD                     = "ENCHANT_HELD"
	ENCHANT_DETECTING                = "ENCHANT_DETECTING"
	ENCHANT_ETHEREAL                 = "ENCHANT_ETHEREAL"
	ENCHANT_RUN                      = "ENCHANT_RUN"
	ENCHANT_HASTED                   = "ENCHANT_HASTED"
	ENCHANT_VILLAIN                  = "ENCHANT_VILLAIN"
	ENCHANT_AFRAID                   = "ENCHANT_AFRAID"
	ENCHANT_BURNING                  = "ENCHANT_BURNING"
	ENCHANT_VAMPIRISM                = "ENCHANT_VAMPIRISM"
	ENCHANT_ANCHORED                 = "ENCHANT_ANCHORED"
	ENCHANT_LIGHT                    = "ENCHANT_LIGHT"
	ENCHANT_DEATH                    = "ENCHANT_DEATH"
	ENCHANT_PROTECT_FROM_FIRE        = "ENCHANT_PROTECT_FROM_FIRE"
	ENCHANT_PROTECT_FROM_POISON      = "ENCHANT_PROTECT_FROM_POISON"
	ENCHANT_PROTECT_FROM_MAGIC       = "ENCHANT_PROTECT_FROM_MAGIC"
	ENCHANT_PROTECT_FROM_ELECTRICITY = "ENCHANT_PROTECT_FROM_ELECTRICITY"
	ENCHANT_INFRAVISION              = "ENCHANT_INFRAVISION"
	ENCHANT_SHOCK                    = "ENCHANT_SHOCK"
	ENCHANT_INVULNERABLE             = "ENCHANT_INVULNERABLE"
	ENCHANT_TELEKINESIS              = "ENCHANT_TELEKINESIS"
	ENCHANT_FREEZE                   = "ENCHANT_FREEZE"
	ENCHANT_SHIELD                   = "ENCHANT_SHIELD"
	ENCHANT_REFLECTIVE_SHIELD        = "ENCHANT_REFLECTIVE_SHIELD"
	ENCHANT_CHARMING                 = "ENCHANT_CHARMING"
	ENCHANT_ANTI_MAGIC               = "ENCHANT_ANTI_MAGIC"
	ENCHANT_CROWN                    = "ENCHANT_CROWN"
	ENCHANT_SNEAK                    = "ENCHANT_SNEAK"
)
View Source
const (
	NW = Direction(0)
	N  = Direction(1)
	NE = Direction(2)
	W  = Direction(3)
	E  = Direction(5)
	SW = Direction(6)
	S  = Direction(7)
	SE = Direction(8)
)
View Source
const (
	SPELL_INVALID                     = "SPELL_INVALID"
	SPELL_ANCHOR                      = "SPELL_ANCHOR"
	SPELL_ARACHNAPHOBIA               = "SPELL_ARACHNAPHOBIA"
	SPELL_BLIND                       = "SPELL_BLIND"
	SPELL_BLINK                       = "SPELL_BLINK"
	SPELL_BURN                        = "SPELL_BURN"
	SPELL_CANCEL                      = "SPELL_CANCEL"
	SPELL_CHAIN_LIGHTNING_BOLT        = "SPELL_CHAIN_LIGHTNING_BOLT"
	SPELL_CHANNEL_LIFE                = "SPELL_CHANNEL_LIFE"
	SPELL_CHARM                       = "SPELL_CHARM"
	SPELL_CLEANSING_FLAME             = "SPELL_CLEANSING_FLAME"
	SPELL_CLEANSING_MANA_FLAME        = "SPELL_CLEANSING_MANA_FLAME"
	SPELL_CONFUSE                     = "SPELL_CONFUSE"
	SPELL_COUNTERSPELL                = "SPELL_COUNTERSPELL"
	SPELL_CURE_POISON                 = "SPELL_CURE_POISON"
	SPELL_DEATH                       = "SPELL_DEATH"
	SPELL_DEATH_RAY                   = "SPELL_DEATH_RAY"
	SPELL_DETECT_MAGIC                = "SPELL_DETECT_MAGIC"
	SPELL_DETONATE                    = "SPELL_DETONATE"
	SPELL_DETONATE_GLYPHS             = "SPELL_DETONATE_GLYPHS"
	SPELL_DISENCHANT_ALL              = "SPELL_DISENCHANT_ALL"
	SPELL_TURN_UNDEAD                 = "SPELL_TURN_UNDEAD"
	SPELL_DRAIN_MANA                  = "SPELL_DRAIN_MANA"
	SPELL_EARTHQUAKE                  = "SPELL_EARTHQUAKE"
	SPELL_LIGHTNING                   = "SPELL_LIGHTNING"
	SPELL_EXPLOSION                   = "SPELL_EXPLOSION"
	SPELL_FEAR                        = "SPELL_FEAR"
	SPELL_FIREBALL                    = "SPELL_FIREBALL"
	SPELL_FIREWALK                    = "SPELL_FIREWALK"
	SPELL_FIST                        = "SPELL_FIST"
	SPELL_FORCE_FIELD                 = "SPELL_FORCE_FIELD"
	SPELL_FORCE_OF_NATURE             = "SPELL_FORCE_OF_NATURE"
	SPELL_FREEZE                      = "SPELL_FREEZE"
	SPELL_FUMBLE                      = "SPELL_FUMBLE"
	SPELL_GLYPH                       = "SPELL_GLYPH"
	SPELL_GREATER_HEAL                = "SPELL_GREATER_HEAL"
	SPELL_HASTE                       = "SPELL_HASTE"
	SPELL_INFRAVISION                 = "SPELL_INFRAVISION"
	SPELL_INVERSION                   = "SPELL_INVERSION"
	SPELL_INVISIBILITY                = "SPELL_INVISIBILITY"
	SPELL_INVULNERABILITY             = "SPELL_INVULNERABILITY"
	SPELL_LESSER_HEAL                 = "SPELL_LESSER_HEAL"
	SPELL_LIGHT                       = "SPELL_LIGHT"
	SPELL_CHAIN_LIGHTNING             = "SPELL_CHAIN_LIGHTNING"
	SPELL_LOCK                        = "SPELL_LOCK"
	SPELL_MARK                        = "SPELL_MARK"
	SPELL_MARK_1                      = "SPELL_MARK_1"
	SPELL_MARK_2                      = "SPELL_MARK_2"
	SPELL_MARK_3                      = "SPELL_MARK_3"
	SPELL_MARK_4                      = "SPELL_MARK_4"
	SPELL_MAGIC_MISSILE               = "SPELL_MAGIC_MISSILE"
	SPELL_SHIELD                      = "SPELL_SHIELD"
	SPELL_METEOR                      = "SPELL_METEOR"
	SPELL_METEOR_SHOWER               = "SPELL_METEOR_SHOWER"
	SPELL_MOONGLOW                    = "SPELL_MOONGLOW"
	SPELL_NULLIFY                     = "SPELL_NULLIFY"
	SPELL_MANA_BOMB                   = "SPELL_MANA_BOMB"
	SPELL_PHANTOM                     = "SPELL_PHANTOM"
	SPELL_PIXIE_SWARM                 = "SPELL_PIXIE_SWARM"
	SPELL_PLASMA                      = "SPELL_PLASMA"
	SPELL_POISON                      = "SPELL_POISON"
	SPELL_PROTECTION_FROM_ELECTRICITY = "SPELL_PROTECTION_FROM_ELECTRICITY"
	SPELL_PROTECTION_FROM_FIRE        = "SPELL_PROTECTION_FROM_FIRE"
	SPELL_PROTECTION_FROM_MAGIC       = "SPELL_PROTECTION_FROM_MAGIC"
	SPELL_PROTECTION_FROM_POISON      = "SPELL_PROTECTION_FROM_POISON"
	SPELL_PULL                        = "SPELL_PULL"
	SPELL_PUSH                        = "SPELL_PUSH"
	SPELL_OVAL_SHIELD                 = "SPELL_OVAL_SHIELD"
	SPELL_RESTORE_HEALTH              = "SPELL_RESTORE_HEALTH"
	SPELL_RESTORE_MANA                = "SPELL_RESTORE_MANA"
	SPELL_RUN                         = "SPELL_RUN"
	SPELL_SHOCK                       = "SPELL_SHOCK"
	SPELL_SLOW                        = "SPELL_SLOW"
	SPELL_SMALL_ZAP                   = "SPELL_SMALL_ZAP"
	SPELL_STUN                        = "SPELL_STUN"
	SPELL_SUMMON_BAT                  = "SPELL_SUMMON_BAT"
	SPELL_SUMMON_BLACK_BEAR           = "SPELL_SUMMON_BLACK_BEAR"
	SPELL_SUMMON_BEAR                 = "SPELL_SUMMON_BEAR"
	SPELL_SUMMON_BEHOLDER             = "SPELL_SUMMON_BEHOLDER"
	SPELL_SUMMON_BOMBER               = "SPELL_SUMMON_BOMBER"
	SPELL_SUMMON_CARNIVOROUS_PLANT    = "SPELL_SUMMON_CARNIVOROUS_PLANT"
	SPELL_SUMMON_ALBINO_SPIDER        = "SPELL_SUMMON_ALBINO_SPIDER"
	SPELL_SUMMON_SMALL_ALBINO_SPIDER  = "SPELL_SUMMON_SMALL_ALBINO_SPIDER"
	SPELL_SUMMON_EVIL_CHERUB          = "SPELL_SUMMON_EVIL_CHERUB"
	SPELL_SUMMON_EMBER_DEMON          = "SPELL_SUMMON_EMBER_DEMON"
	SPELL_SUMMON_GHOST                = "SPELL_SUMMON_GHOST"
	SPELL_SUMMON_GIANT_LEECH          = "SPELL_SUMMON_GIANT_LEECH"
	SPELL_SUMMON_IMP                  = "SPELL_SUMMON_IMP"
	SPELL_SUMMON_MECHANICAL_FLYER     = "SPELL_SUMMON_MECHANICAL_FLYER"
	SPELL_SUMMON_MECHANICAL_GOLEM     = "SPELL_SUMMON_MECHANICAL_GOLEM"
	SPELL_SUMMON_MIMIC                = "SPELL_SUMMON_MIMIC"
	SPELL_SUMMON_OGRE                 = "SPELL_SUMMON_OGRE"
	SPELL_SUMMON_OGRE_BRUTE           = "SPELL_SUMMON_OGRE_BRUTE"
	SPELL_SUMMON_OGRE_WARLORD         = "SPELL_SUMMON_OGRE_WARLORD"
	SPELL_SUMMON_SCORPION             = "SPELL_SUMMON_SCORPION"
	SPELL_SUMMON_SHADE                = "SPELL_SUMMON_SHADE"
	SPELL_SUMMON_SKELETON             = "SPELL_SUMMON_SKELETON"
	SPELL_SUMMON_SKELETON_LORD        = "SPELL_SUMMON_SKELETON_LORD"
	SPELL_SUMMON_SPIDER               = "SPELL_SUMMON_SPIDER"
	SPELL_SUMMON_SMALL_SPIDER         = "SPELL_SUMMON_SMALL_SPIDER"
	SPELL_SUMMON_SPITTING_SPIDER      = "SPELL_SUMMON_SPITTING_SPIDER"
	SPELL_SUMMON_STONE_GOLEM          = "SPELL_SUMMON_STONE_GOLEM"
	SPELL_SUMMON_TROLL                = "SPELL_SUMMON_TROLL"
	SPELL_SUMMON_URCHIN               = "SPELL_SUMMON_URCHIN"
	SPELL_SUMMON_WASP                 = "SPELL_SUMMON_WASP"
	SPELL_SUMMON_WILLOWISP            = "SPELL_SUMMON_WILLOWISP"
	SPELL_SUMMON_WOLF                 = "SPELL_SUMMON_WOLF"
	SPELL_SUMMON_BLACK_WOLF           = "SPELL_SUMMON_BLACK_WOLF"
	SPELL_SUMMON_WHITE_WOLF           = "SPELL_SUMMON_WHITE_WOLF"
	SPELL_SUMMON_ZOMBIE               = "SPELL_SUMMON_ZOMBIE"
	SPELL_SUMMON_VILE_ZOMBIE          = "SPELL_SUMMON_VILE_ZOMBIE"
	SPELL_SUMMON_DEMON                = "SPELL_SUMMON_DEMON"
	SPELL_SUMMON_LICH                 = "SPELL_SUMMON_LICH"
	SPELL_SUMMON_DRYAD                = "SPELL_SUMMON_DRYAD"
	SPELL_SUMMON_URCHIN_SHAMAN        = "SPELL_SUMMON_URCHIN_SHAMAN"
	SPELL_SWAP                        = "SPELL_SWAP"
	SPELL_TAG                         = "SPELL_TAG"
	SPELL_TELEPORT_OTHER_TO_MARK_1    = "SPELL_TELEPORT_OTHER_TO_MARK_1"
	SPELL_TELEPORT_OTHER_TO_MARK_2    = "SPELL_TELEPORT_OTHER_TO_MARK_2"
	SPELL_TELEPORT_OTHER_TO_MARK_3    = "SPELL_TELEPORT_OTHER_TO_MARK_3"
	SPELL_TELEPORT_OTHER_TO_MARK_4    = "SPELL_TELEPORT_OTHER_TO_MARK_4"
	SPELL_TELEPORT_POP                = "SPELL_TELEPORT_POP"
	SPELL_TELEPORT_TO_MARK_1          = "SPELL_TELEPORT_TO_MARK_1"
	SPELL_TELEPORT_TO_MARK_2          = "SPELL_TELEPORT_TO_MARK_2"
	SPELL_TELEPORT_TO_MARK_3          = "SPELL_TELEPORT_TO_MARK_3"
	SPELL_TELEPORT_TO_MARK_4          = "SPELL_TELEPORT_TO_MARK_4"
	SPELL_TELEPORT_TO_TARGET          = "SPELL_TELEPORT_TO_TARGET"
	SPELL_TELEKINESIS                 = "SPELL_TELEKINESIS"
	SPELL_TOXIC_CLOUD                 = "SPELL_TOXIC_CLOUD"
	SPELL_TRIGGER_GLYPH               = "SPELL_TRIGGER_GLYPH"
	SPELL_VAMPIRISM                   = "SPELL_VAMPIRISM"
	SPELL_VILLAIN                     = "SPELL_VILLAIN"
	SPELL_WALL                        = "SPELL_WALL"
	SPELL_WINK                        = "SPELL_WINK"
	SPELL_SUMMON_CREATURE             = "SPELL_SUMMON_CREATURE"
	SPELL_MARK_LOCATION               = "SPELL_MARK_LOCATION"
	SPELL_TELEPORT_TO_MARKER          = "SPELL_TELEPORT_TO_MARKER"
)
View Source
const (
	HELMET      = "HELMET"
	SHIELD      = "SHIELD"
	BREASTPLATE = "BREASTPLATE"
	ARM_ARMOR   = "ARM_ARMOR"
	PANTS       = "PANTS"
	BOOTS       = "BOOTS"
	SHIRT       = "SHIRT"
	LEG_ARMOR   = "LEG_ARMOR"
	BACK        = "BACK"
	//FLAG = "FLAG"
	QUIVER                   = "QUIVER"
	CROSSBOW                 = "CROSSBOW"
	ARROW                    = "ARROW"
	BOLT                     = "BOLT"
	CHAKRAM                  = "CHAKRAM"
	SHURIKEN                 = "SHURIKEN"
	SWORD                    = "SWORD"
	LONG_SWORD               = "LONG_SWORD"
	GREAT_SWORD              = "GREAT_SWORD"
	MACE                     = "MACE"
	OGRE_AXE                 = "OGRE_AXE"
	HAMMER                   = "HAMMER"
	STAFF                    = "STAFF"
	STAFF_SULPHOROUS_FLARE   = "STAFF_SULPHOROUS_FLARE"
	STAFF_SULPHOROUS_SHOWER  = "STAFF_SULPHOROUS_SHOWER"
	STAFF_LIGHTNING          = "STAFF_LIGHTNING"
	STAFF_FIREBALL           = "STAFF_FIREBALL"
	STAFF_TRIPLE_FIREBALL    = "STAFF_TRIPLE_FIREBALL"
	STAFF_FORCE_OF_NATURE    = "STAFF_FORCE_OF_NATURE"
	STAFF_DEATH_RAY          = "STAFF_DEATH_RAY"
	STAFF_OBLIVION_HALBERD   = "STAFF_OBLIVION_HALBERD"
	STAFF_OBLIVION_HEART     = "STAFF_OBLIVION_HEART"
	STAFF_OBLIVION_WIERDLING = "STAFF_OBLIVION_WIERDLING"
	STAFF_OBLIVION_ORB       = "STAFF_OBLIVION_ORB"
	SMALL_MONSTER            = "SMALL_MONSTER"
	MEDIUM_MONSTER           = "MEDIUM_MONSTER"
	LARGE_MONSTER            = "LARGE_MONSTER"
	SHOPKEEPER               = "SHOPKEEPER"
	NPC                      = "NPC"
	FEMALE_NPC               = "FEMALE_NPC"
	UNDEAD                   = "UNDEAD"
	MONITOR                  = "MONITOR"
	MIGRATE                  = "MIGRATE"
	IMMUNE_POISON            = "IMMUNE_POISON"
	IMMUNE_FIRE              = "IMMUNE_FIRE"
	IMMUNE_ELECTRICITY       = "IMMUNE_ELECTRICITY"
	IMMUNE_FEAR              = "IMMUNE_FEAR"
	BOMBER                   = "BOMBER"
	NO_TARGET                = "NO_TARGET"
	NO_SPELL_TARGET          = "NO_SPELL_TARGET"
	HAS_SOUL                 = "HAS_SOUL"
	WARCRY_STUN              = "WARCRY_STUN"
	LOOK_AROUND              = "LOOK_AROUND"
	WOUNDED_NPC              = "WOUNDED_NPC"
	//SIMPLE = "SIMPLE"
	APPLE                  = "APPLE"
	POTION                 = "POTION"
	HEALTH_POTION          = "HEALTH_POTION"
	MANA_POTION            = "MANA_POTION"
	CURE_POISON_POTION     = "CURE_POISON_POTION"
	MUSHROOM               = "MUSHROOM"
	HASTE_POTION           = "HASTE_POTION"
	INVISIBILITY_POTION    = "INVISIBILITY_POTION"
	SHIELD_POTION          = "SHIELD_POTION"
	FIRE_PROTECT_POTION    = "FIRE_PROTECT_POTION"
	SHOCK_PROTECT_POTION   = "SHOCK_PROTECT_POTION"
	POISON_PROTECT_POTION  = "POISON_PROTECT_POTION"
	INVULNERABILITY_POTION = "INVULNERABILITY_POTION"
	INFRAVISION_POTION     = "INFRAVISION_POTION"
	VAMPIRISM_POTION       = "VAMPIRISM_POTION"
	HEAVY                  = "HEAVY"
	LAVA                   = "LAVA"
	GATE                   = "GATE"
	VISIBLE_OBELISK        = "VISIBLE_OBELISK"
	INVISIBLE_OBELISK      = "INVISIBLE_OBELISK"
	TECH                   = "TECH"
	LOTD                   = "LOTD"
	USEABLE                = "USEABLE"
	CHEST_NW               = "CHEST_NW"
	CHEST_NE               = "CHEST_NE"
	CHEST_SE               = "CHEST_SE"
	CHEST_SW               = "CHEST_SW"
	STONE_DOOR             = "STONE_DOOR"
	SPELL_BOOK             = "SPELL_BOOK"
	FIELD_GUIDE            = "FIELD_GUIDE"
	ABILITY_BOOK           = "ABILITY_BOOK"
	MISSILE_COUNTERSPELL   = "MISSILE_COUNTERSPELL"
	//MAGIC = "MAGIC"
	GENERATOR_NW    = "GENERATOR_NW"
	GENERATOR_NE    = "GENERATOR_NE"
	GENERATOR_SE    = "GENERATOR_SE"
	GENERATOR_SW    = "GENERATOR_SW"
	QUEST_EXIT      = "QUEST_EXIT"
	QUEST_WARP_EXIT = "QUEST_WARP_EXIT"
	FLESH           = "FLESH"
	CLOTH           = "CLOTH"
	ANIMAL_HIDE     = "ANIMAL_HIDE"
	WOOD            = "WOOD"
	METAL           = "METAL"
	STONE           = "STONE"
	EARTH           = "EARTH"
	LIQUID          = "LIQUID"
	GLASS           = "GLASS"
	PAPER           = "PAPER"
	SNOW            = "SNOW"
	MUD             = "MUD"
	MAGIC           = "MAGIC"
	DIAMOND         = "DIAMOND"
	NONE            = "NONE"
)
View Source
const (
	NORMAL    = "NORMAL"
	NEXT      = "NEXT"
	YESNO     = "YESNO"
	YESNONEXT = "YESNONEXT"
)
View Source
const (
	Goodbye = 0
	Yes     = 1
	No      = 2
)
View Source
const OTHER = ObjectID(-1)

OTHER object id.

This constant can be used any place where an object id is used.

View Source
const SELF = ObjectID(-2)

SELF object id.

This constant can be used any place where an object id is used.

Variables

This section is empty.

Functions

func AggressionLevel

func AggressionLevel(id ObjectID, level float32)

AggressionLevel sets creature's aggression level.

This will set a creature's aggression level. The most commonly used value is 0.83.

func Attack

func Attack(id ObjectID, target ObjectID)

Attack an object.

func AudioEvent

func AudioEvent(name AudioName, wp WaypointID)

AudioEvent plays an audio event at a location.

func AutoSave

func AutoSave()

AutoSave triggers an autosave. Only solo games.

func AwardSpell

func AwardSpell(id ObjectID, spellID Spell) bool

AwardSpell award spell level to object.

This will raise the spell level of the object. If the object can not cast this spell then it will have no effect.

func BecomeEnemy

func BecomeEnemy(id ObjectID)

BecomeEnemy unsets object as pet of host.

func BecomePet

func BecomePet(id ObjectID)

BecomePet sets object as pet of host.

func Blind

func Blind()

Blind the host.

func CancelDialog

func CancelDialog(id ObjectID)

CancelDialog cancels a conversation with object.

func CancelTimer

func CancelTimer(id TimerID) bool

CancelTimer cancel a timer. Returns true on success.

func CastSpellLocationLocation

func CastSpellLocationLocation(spellID Spell, x1, y1, x2, y2 float32)

CastSpellLocationLocation casts a spell from source to target.

func CastSpellLocationObject

func CastSpellLocationObject(spellID Spell, x, y float32, target ObjectID)

CastSpellLocationObject casts a spell from source to target.

func CastSpellObjectLocation

func CastSpellObjectLocation(spellID Spell, source ObjectID, x, y float32)

CastSpellObjectLocation casts a spell from source to target.

func CastSpellObjectObject

func CastSpellObjectObject(spellID Spell, source ObjectID, target ObjectID)

CastSpellObjectObject casts a spell from source to target.

Example usage:

ns.CastSpellOn("SPELL_DEATH_RAY", ns.Object("CruelDude"), ns.GetHost())

func ChangeGold

func ChangeGold(id ObjectID, delta int)

ChangeGold changes amount of gold for player object. Delta can be negative.

func ChangeScore

func ChangeScore(id ObjectID, score int)

ChangeScore changes player object's score.

func Chat

func Chat(id ObjectID, message string)

Chat causes an object to say a localized string.

This will display a localized in string a speech bubble. If the string is not in the database string, it will instead print an error message with "MISSING:".

func ChatTimer

func ChatTimer(id ObjectID, message string, duration int)

ChatTimer causes an object to say a localized for string duration in frames.

This will display a localized in string a speech bubble. If the string is not in the database string, it will instead print an error message with "MISSING:".

func ChatTimerSeconds

func ChatTimerSeconds(id ObjectID, message string, duration int)

ChatTimerSeconds causes an object to say a localized for string duration in seconds.

This will display a localized in string a speech bubble. If the string is not in the database string, it will instead print an error message with "MISSING:".

func ClearMessages

func ClearMessages(id ObjectID)

ClearMessages clears messages on player's screen.

func ClearOwner

func ClearOwner(id ObjectID)

ClearOwner clears the owner of an object.

func CreatureFollow

func CreatureFollow(id ObjectID, target ObjectID)

CreatureFollow causes creature to follow an object.

This will cause a creature to follow target, and it won't attack anything unless disrupted or instructed to.

func CreatureGroupFollow

func CreatureGroupFollow(objectGroup ObjectGroupID, target ObjectID)

CreatureGroupFollow causes creatures in a group to follow an object.

This will cause the creatures to follow target, and they won't attack anything unless disrupted or instructed to.

func CreatureGroupGuard

func CreatureGroupGuard(objectGroup ObjectGroupID, x1, y1, x2, y2 float32, distance float32)

CreatureGroupGuard causes creatures in a group to guard a location.

This is the same as CreatureGuard but applies to creatures in a group.

func CreatureGroupHunt

func CreatureGroupHunt(objectGroup ObjectGroupID)

CreatureGroupHunt causes creatures in a group to hunt.

func CreatureGroupIdle

func CreatureGroupIdle(objectGroup ObjectGroupID)

CreatureGroupIdle causes creatures in a group to idle.

func CreatureGuard

func CreatureGuard(id ObjectID, x1, y1, x2, y2 float32, distance float32)

CreatureGuard causes a creature to guard a location.

This will cause a creature to move to a location, guard a nearby location, and attack any enemies that move within range of the guarded location.

func CreatureHunt

func CreatureHunt(id ObjectID)

CreatureHunt causes creature to hunt.

func CreatureIdle

func CreatureIdle(id ObjectID)

CreatureIdle causes creature to idle.

func CurrentHealth

func CurrentHealth(id ObjectID) int

CurrentHealth gets object's health.

func Damage

func Damage(target ObjectID, source ObjectID, amount int, typ DamageType)

Damage an object.

This will damage the target with a given source object, amount, and damage type.

See DamageType for details.

func DeathScreen

func DeathScreen(which int)

DeathScreen shows death screen. Screen to show is in range 1-11.

func Delete

func Delete(id ObjectID)

Delete an object.

func DeleteObjectTimer

func DeleteObjectTimer(id ObjectID, delay int)

DeleteObjectTimer deletes object after a delay.

func DestroyChat

func DestroyChat(id ObjectID)

DestroyChat destroys object's speech bubble.

func DestroyEveryChat

func DestroyEveryChat()

DestroyEveryChat destroys all speech bubbles.

func Distance

func Distance(x1, y1, x2, y2 float32) float32

Distance calculate distance between two locations.

func Drop

func Drop(id ObjectID, item ObjectID) bool

Drop causes object to drop an item.

func Effect

func Effect(effectID EffectID, x1, y1, x2, y2 float32)

Effect trigger an effect

This will trigger an effect from point (x1,y1) to (x2,y2). Some effects only have one point, in which case (x2,y2) is ignored.

func Enchant

func Enchant(id ObjectID, enchantID EnchantID, duration float32)

Enchant grants object an enchantment.

This will grant an object an enchantment of a specified duration.

func EnchantOff

func EnchantOff(id ObjectID, enchantID EnchantID)

EnchantOff removes enchant from an object.

func EndGame

func EndGame(typ int)

EndGame ends of game.

Type is one of:

0=Warrior
1=Wizard
2=Conjurer

func FloatToString deprecated

func FloatToString(number float32) string

FloatToString converts a float to a string.

This will convert a float to a string, and add the to string the string table temporarily.

Deprecated: use strconv.FormatFloat.

func Frozen

func Frozen(id ObjectID, frozen bool)

Frozen sets frozen status of an object.

func GetCharacterData deprecated

func GetCharacterData(idx int) int

GetCharacterData gets character data.

Get information about the loaded character. Index is in range 0-5.

Deprecated: return data is likely useless.

func GetElevatorStatus

func GetElevatorStatus(id ObjectID) int

GetElevatorStatus gets elevator status.

func GetGold

func GetGold(id ObjectID) int

GetGold gets amount of gold for player object.

func GetObjectX

func GetObjectX(id ObjectID) float32

GetObjectX gets object X coordinate.

func GetObjectY

func GetObjectY(id ObjectID) float32

GetObjectY gets object Y coordinate.

func GetObjectZ

func GetObjectZ(id ObjectID) float32

GetObjectZ gets object Z coordinate.

func GetQuestStatus

func GetQuestStatus(name string) int

GetQuestStatus gets quest status (int).

func GetQuestStatusFloat

func GetQuestStatusFloat(name string) float32

GetQuestStatusFloat get quest status (int).

func GetScore

func GetScore(id ObjectID) int

GetScore gets player object's score.

func GetWaypointX

func GetWaypointX(waypoint WaypointID) float32

GetWaypointX gets waypoint X coordinate.

func GetWaypointY

func GetWaypointY(waypoint WaypointID) float32

GetWaypointY gets waypoint Y coordinate.

func GiveXp

func GiveXp(id ObjectID, xp float32)

GiveXp grants experience to a player.

func GoBackHome

func GoBackHome(id ObjectID)

GoBackHome causes object to move to its starting location.

func GroupAggressionLevel

func GroupAggressionLevel(objectGroup ObjectGroupID, level float32)

GroupAggressionLevel sets group of creature's aggression level.

This will set a group of creature's aggression level. The most commonly used value is 0.83.

func GroupAttack

func GroupAttack(objectGroup ObjectGroupID, target ObjectID)

GroupAttack attacks an object.

func GroupAwardSpell

func GroupAwardSpell(objectGroup ObjectGroupID, spellID Spell)

GroupAwardSpell awards spell level to objects in a group.

This will raise the spell level of the objects in the group. If an object can not cast this spell then it will have no effect on that object.

func GroupCreateMover

func GroupCreateMover(objectGroup ObjectGroupID, waypoint WaypointID, speed float32)

GroupCreateMover creates a Mover for every object in a group.

func GroupDamage

func GroupDamage(targetGroup ObjectGroupID, source ObjectID, amount int, typ DamageType)

GroupDamage damages objects in a group.

This will damage the target objects with a given source object, amount, and damage type.

See DamageType for details.

func GroupDelete

func GroupDelete(objectGroup ObjectGroupID)

GroupDelete deletes objects in a group.

func GroupEnchant

func GroupEnchant(id ObjectGroupID, enchantID EnchantID, duration float32)

GroupEnchant grants objects in a group an enchantment.

This will grant the objects in a group an enchantment of a specified duration.

func GroupHitFarLocation

func GroupHitFarLocation(objectGroup ObjectGroupID, x, y float32)

GroupHitFarLocation ranged attacks a location.

func GroupHitLocation

func GroupHitLocation(objectGroup ObjectGroupID, x, y float32)

GroupHitLocation melee attacks a location.

func GroupIsOwnedBy

func GroupIsOwnedBy(owner ObjectID, target ObjectGroupID) bool

GroupIsOwnedBy gets whether any object in target group is owned by object.

func GroupIsOwnedByAny

func GroupIsOwnedByAny(owners ObjectGroupID, target ObjectGroupID) bool

GroupIsOwnedByAny gets whether any object in target is owned by any object in the group.

func GroupLookAtDirection

func GroupLookAtDirection(objectGroup ObjectGroupID, direction Direction)

GroupLookAtDirection causes objects in a group to look in a direction.

See Direction for details.

func GroupMove

func GroupMove(objectGroup ObjectGroupID, waypoint WaypointID)

GroupMove moves objects in a group to a waypoint.

This moves the objects in a group to a waypoint. The objects must be movable or attached to a "Mover". If the waypoint is linked, the objects will continue to move once they reach the first waypoint.

func GroupPauseObject

func GroupPauseObject(objectGroup ObjectGroupID, duration int)

GroupPauseObject pauses objects of a group temporarily.

func GroupResumeLevel

func GroupResumeLevel(objectGroup ObjectGroupID, percent float32)

GroupResumeLevel sets when creature resumes due to health.

This will cause the creatures to stop retreating if its health is above the specified percentage.

Percent health ratio is in range 0.0-1.0.

func GroupRetreatLevel

func GroupRetreatLevel(objectGroup ObjectGroupID, percent float32)

GroupRetreatLevel sets when creature retreats due to low health.

This will cause the creatures to retreat if its health falls below the specified percentage.

Percent low health ratio is in range 0.0-1.0.

func GroupRunAway

func GroupRunAway(objectGroup ObjectGroupID, target ObjectID, duration int)

GroupRunAway causes creatures to run away from target.

func GroupSetOwner

func GroupSetOwner(owner ObjectID, targets ObjectGroupID)

GroupSetOwner sets the owner of objects in a group.

This is the same as SetOwner but with a object group as the target.

func GroupSetOwners

func GroupSetOwners(owners ObjectGroupID, targets ObjectGroupID)

GroupSetOwners sets the objects in a group as owners of target.

This is the same as SetOwners but with a object group as the target.

func GroupSetRoamFlag

func GroupSetRoamFlag(objectGroup ObjectGroupID, flags int)

GroupSetRoamFlag sets roaming flags.

Flags a 8-bit value (default is 0x80).

func GroupWalk

func GroupWalk(objectGroup ObjectGroupID, x, y float32)

GroupWalk causes objects in a group to walk to a location.

func GroupWander

func GroupWander(objectGroup ObjectGroupID)

GroupWander cause objects in a group to wander.

func HasClass

func HasClass(id ObjectID, className Class) bool

HasClass gets whether object has a class.

func HasEnchant

func HasEnchant(id ObjectID, enchantID EnchantID) bool

HasEnchant gets whether object has an enchant.

func HasItem

func HasItem(holder ObjectID, item ObjectID) bool

HasItem gets whether the item is in the object's inventory.

func HasSubclass

func HasSubclass(id ObjectID, subclassName SubClass) bool

HasSubclass gets whether object has subclass.

This will test whether an item has a specific subclass. The subclass overlaps, so you should probably test for the class first (HasClass).

func HitFarLocation

func HitFarLocation(id ObjectID, x, y float32)

HitFarLocation ranged attacks a location.

func HitLocation

func HitLocation(id ObjectID, x, y float32)

HitLocation melee attacks a location.

func ImmediateBlind

func ImmediateBlind()

ImmediateBlind immediately blinds the host.

func IntToString deprecated

func IntToString(number int) string

IntToString convert an integer to a string.

This will convert an integer to a string, and add the to string the string table temporarily.

Deprecated: use strconv.Itoa.

func IsAttackedBy

func IsAttackedBy(id1 ObjectID, id2 ObjectID) bool

IsAttackedBy gets whether object1 is being attacked by object2.

func IsCaller

func IsCaller(id ObjectID) bool

IsCaller gets whether object is OTHER.

func IsCrown

func IsCrown(id ObjectID) bool

IsCrown gets whether object is a Crown.

func IsGameBall

func IsGameBall(id ObjectID) bool

IsGameBall gets whether object is a GameBall.

func IsLocked

func IsLocked(id ObjectID) bool

IsLocked gets whether object is locked.

This will return whether an object is locked. It works with any kind of lock.

func IsObjectOn

func IsObjectOn(id ObjectID) bool

IsObjectOn gets whether object is enabled.

func IsOwnedBy

func IsOwnedBy(owner ObjectID, target ObjectID) bool

IsOwnedBy get whether target is owned by object.

func IsOwnedByAny

func IsOwnedByAny(owners ObjectGroupID, target ObjectID) bool

IsOwnedByAny gets whether target is owned by any object in the group.

func IsSummoned

func IsSummoned(id ObjectID) bool

IsSummoned gets whether object is a summoned creature.

func IsTalking

func IsTalking() bool

IsTalking gets whether host is talking.

func IsTrading

func IsTrading() bool

IsTrading gets whether the host is currently trading.

This will return whether the host is currently talking to shopkeeper.

func IsTrigger

func IsTrigger(id ObjectID) bool

IsTrigger gets whether object is SELF.

func IsVisibleTo

func IsVisibleTo(object1 ObjectID, object2 ObjectID) bool

IsVisibleTo gets whether an object can see another object.

This will first check if the location of the objects are within 512 of each other coordinate-wise. It not, it returns false.

It then checks whether the first object can see the second object.

func IsWaypointOn

func IsWaypointOn(waypoint WaypointID) bool

IsWaypointOn gets whether waypoint is enabled.

func JournalDelete

func JournalDelete(id ObjectID, message string)

JournalDelete deletes entry from player's journal.

This will delete the first entry from a player object's journal whose message matches the specified message. If the player object id is 0, then all players are affected.

func JournalEdit

func JournalEdit(id ObjectID, message string, typ EntryType)

JournalEdit edits entry in player's journal.

This will modify the first entry in a player object's journal whose message matches the specified message. If the player object id is 0, then all players are affected.

func JournalEntry

func JournalEntry(id ObjectID, message string, typ EntryType)

JournalEntry adds entry to player's journal.

This will add an entry to a player object's journal. The can string be any string, but should be less than 64 characters. The is string displayed according to the specified type:

0 = Green text, no sound
1 = White text
2 = Red text with quest label
3 = Green text
4 = Grey text with completed label
8 = Yellow text with hint label

If the player object id is 0, then it will add the journal entry to all players.

func LockDoor

func LockDoor(id ObjectID)

LockDoor locks a door.

This will lock a door. It has no effect if the object is not a door.

func LookAtDirection

func LookAtDirection(id ObjectID, direction Direction)

LookAtDirection causes object to look in a direction.

See Direction for details.

func LookAtObject

func LookAtObject(id ObjectID, target ObjectID)

LookAtObject sets direction of object so it is looking at another object.

func LookWithAngle

func LookWithAngle(id ObjectID, angle int)

LookWithAngle sets an object's direction.

This will set an object's direction. The direction is an angle represented as an integer between 0 and 255. Due east is 0, and the angle increases as the object turns clock-wise.

Angle is a number between 0 and 255.

func MakeEnemy

func MakeEnemy(id ObjectID)

MakeEnemy unsets object as friendly.

func MakeFriendly

func MakeFriendly(id ObjectID)

MakeFriendly sets object friendly with host.

func MaxHealth

func MaxHealth(id ObjectID) int

MaxHealth gets object's maximum health.

func Move

func Move(id ObjectID, waypoint WaypointID)

Move an object to a waypoint.

This moves an object to a waypoint. The object must be movable or attached to a "Mover". If the waypoint is linked, the object will continue to move once it reaches the first waypoint.

func MoveObject

func MoveObject(id ObjectID, x, y float32)

MoveObject sets an object's location.

func MoveWaypoint

func MoveWaypoint(waypoint WaypointID, x, y float32)

MoveWaypoint sets a waypoint's location.

func Music

func Music(music int, volume int)

Music plays music. Volume is in range 0-100.

func MusicEvent

func MusicEvent()

func MusicPopEvent

func MusicPopEvent()

func MusicPushEvent

func MusicPushEvent()

func NoWallSound

func NoWallSound(noWallSound bool)

NoWallSound sets no wall sound flag.

func ObjectGroupOff

func ObjectGroupOff(objectGroup ObjectGroupID)

ObjectGroupOff disables objects in a group.

func ObjectGroupOn

func ObjectGroupOn(objectGroup ObjectGroupID)

ObjectGroupOn enables objects in a group.

func ObjectGroupToggle

func ObjectGroupToggle(objectGroup ObjectGroupID)

ObjectGroupToggle toggles objects in group.

func ObjectOff

func ObjectOff(id ObjectID)

ObjectOff disables an object.

func ObjectOn

func ObjectOn(id ObjectID)

ObjectOn enables an object.

func ObjectToggle

func ObjectToggle(id ObjectID)

ObjectToggle toggles an object.

func PauseObject

func PauseObject(id ObjectID, duration int)

PauseObject pauses an object temporarily.

func Pickup

func Pickup(id ObjectID, item ObjectID) bool

Pickup causes object to pickup an item.

func Print

func Print(message string)

Print displays a localized string.

This will display on a localized on string the screen of OTHER. If the string is not in the database string, it will instead print an error message with "MISSING:".

func PrintToAll

func PrintToAll(message string)

PrintToAll displays a localized to string everyone.

This will display on a localized on string everyone's screen. If the string is not in the database string, it will instead print an error message with "MISSING:".

func PushObject

func PushObject(id ObjectID, magnitude float32, x, y float32)

PushObject pushes an object from a vector and magnitude.

This will calculate a unit vector from the object's location to the specified location, and multiply it by the specified magnitude. This vector will be added to the object's location.

func PushObjectTo

func PushObjectTo(id ObjectID, x, y float32)

PushObjectTo pushes an object to a location.

func Raise

func Raise(id ObjectID, z float32)

Raise sets an object's Z coordinate.

This will set an object's Z coordinate and then let the object fall down.

func RaiseZombie

func RaiseZombie(id ObjectID)

RaiseZombie raises a zombie. Also clears stay down state.

func RaiseZombieGroup

func RaiseZombieGroup(objectGroup ObjectGroupID)

RaiseZombieGroup raises a zombie. Also clears stay down state.

func Random

func Random(min, max int) int

Random generate a random int.

func RandomFloat

func RandomFloat(min, max float32) float32

RandomFloat generate a random float.

func ResetQuestStatus

func ResetQuestStatus(name string)

ResetQuestStatus deletes quest status.

This will delete a quest status. The name can be a wildcard with an asterisk or with a map name.

TODO: what is the wildcard syntax?

func RestoreHealth

func RestoreHealth(id ObjectID, amount int)

RestoreHealth restores object's health.

func ResumeLevel

func ResumeLevel(id ObjectID, percent float32)

ResumeLevel sets when creature resumes due to health.

This will cause the creature to stop retreating if its health is above the specified percentage.

Percent health ratio is in range 0.0-1.0.

func RetreatLevel

func RetreatLevel(id ObjectID, percent float32)

RetreatLevel sets when creature retreats due to low health.

This will cause the creature to retreat if its health falls below the specified percentage.

Percent low health ratio is in range 0.0-1.0.

func RunAway

func RunAway(id ObjectID, target ObjectID, duration int)

RunAway causes creature to run away from target.

func SetCallback

func SetCallback(id ObjectID, idx ObjEvent, callback Func)

SetCallback sets a callback on an object.

This will set a function script to call for an event. The callback index is one of the following:

3  = Enemy sighted
4  = Looking for enemy
5  = Death
6  = Change focus
7  = Is hit
8  = Retreat
9  = Collision
10 = Enemy heard
11 = End of waypoint
13 = Lost sight of enemy

No other indexes are defined.

func SetDialog

func SetDialog(id ObjectID, typ DialogType, start Func, end Func)

SetDialog sets up a conversation with object.

This will cause a conversation with the object. The type of conversation is one of: NORMAL, NEXT, YESNO, YESNONEXT. The start and end are script functions that are called at the start and end of the conversation.

If using a YESNO conversation, the end script function should use ::GetAnswer to retrieve the result.

func SetHalberd

func SetHalberd(upgrade int)

SetHalberd upgrades host's oblivion staff.

This will upgrade the oblivion staff. The upgrades are:

0 = OblivionHalberd
1 = OblivionHeart
2 = OblivionWierdling
3 = OblivionOrb

func SetOwner

func SetOwner(owner ObjectID, target ObjectID)

SetOwner sets the owner of an object.

This will make an object the owner of the target. This will make the target friendly to the owner, and it will accredit the target's kills to the owner.

For example, in a multiplayer map, you might have a switch that activates a hazard. You can use this so that if the hazard kills anyone, the player who activated the hazard gets the credit.

func SetOwners

func SetOwners(owners ObjectGroupID, target ObjectID)

SetOwners sets the objects in a group as owners of target.

This is the same as SetOwner but with a object group as the owner.

func SetQuestStatus

func SetQuestStatus(status int, name string)

SetQuestStatus sets quest status (int).

func SetQuestStatusFloat

func SetQuestStatusFloat(status float32, name string)

SetQuestStatusFloat sets quest status (float).

func SetRoamFlag

func SetRoamFlag(id ObjectID, flags int)

SetRoamFlag sets roaming flags.

Flags a 8-bit value (default is 0x80).

func SetShopkeeperText

func SetShopkeeperText(id ObjectID, text string)

SetShopkeeperText sets shopkeeper text.

func StartDialog

func StartDialog(npc ObjectID, other ObjectID)

StartDialog starts a conversation between two objects.

This requires that SetDialog has already been used to setup the conversation on the NPC object.

func StartupScreen

func StartupScreen(which int)

StartupScreen shows startup screen to host.

func StopScript

func StopScript(value any)

StopScript exit current script function.

func StoryPic

func StoryPic(id ObjectID, name string)

StoryPic assigns a picture to a conversation.

func TellStory

func TellStory(audioID AudioName, story string)

TellStory causes the telling of a story.

This will cause a story to be told. It relies on SELF and OTHER to be particular values, which limits this to being used in the SetDialog callbacks.

Example usage:

ns.TellStory("SwordsmanHurt", "Con05:OgreTalk07")

func TrapSpells

func TrapSpells(id ObjectID, spell1, spell2, spell3 string)

TrapSpells sets spells on a bomber.

func UnBlind

func UnBlind()

UnBlind the host.

func Unknownb8 deprecated

func Unknownb8(id int) bool

Unknownb8 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unknownb9 deprecated

func Unknownb9(id int) bool

Unknownb9 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unknownc4 deprecated

func Unknownc4()

Unknownc4 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func UnlockDoor

func UnlockDoor(id ObjectID)

UnlockDoor unlocks a door.

This will unlock a door. It has no effect if the object is not a door.

func Unused1f deprecated

func Unused1f(id int)

Unused1f is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused20 deprecated

func Unused20(id int)

Unused20 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused50 deprecated

func Unused50()

Unused50 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused58 deprecated

func Unused58(arg1 int, arg2 int)

Unused58 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused59 deprecated

func Unused59(arg1 int, arg2 int)

Unused59 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused5a deprecated

func Unused5a(arg1 int, arg2 int)

Unused5a is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused5b deprecated

func Unused5b(arg1 int, arg2 int)

Unused5b is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused5c deprecated

func Unused5c(arg1 int, arg2 int)

Unused5c is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused5d deprecated

func Unused5d(arg1 int, arg2 int)

Unused5d is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused5e deprecated

func Unused5e(str string) int

Unused5e is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Unused74 deprecated

func Unused74(arg1 int, arg2 int)

Unused74 is not used in scripts. Does nothing, but kept for compatibility.

Deprecated: does nothing, compatibility only.

func Walk

func Walk(id ObjectID, x, y float32)

Walk causes an object to walk to a location.

func WallBreak

func WallBreak(wall WallID)

WallBreak breaks a wall.

This will break a wall. The wall must be breakable.

func WallClose

func WallClose(wall WallID)

WallClose closes a wall.

func WallGroupBreak

func WallGroupBreak(g WallGroupID)

WallGroupBreak breaks walls in a group.

This will break walls in a group. The walls must be breakable.

func WallGroupClose

func WallGroupClose(g WallGroupID)

WallGroupClose closes walls in a group.

func WallGroupOpen

func WallGroupOpen(g WallGroupID)

WallGroupOpen opens walls in a group.

func WallGroupToggle

func WallGroupToggle(g WallGroupID)

WallGroupToggle toggles walls in a group.

This will toggle a wall group between opened and closed.

func WallOpen

func WallOpen(wall WallID)

WallOpen opens a wall.

func WallToggle

func WallToggle(wall WallID)

WallToggle toggles a wall.

This will toggle wall between opened and closed.

func Wander

func Wander(id ObjectID)

Wander causes an object to wander.

This will cause a NPC or monster to wander.

func WayPointGroupOff

func WayPointGroupOff(waypointGroup WaypointGroupID)

WayPointGroupOff disables waypoints in a group.

func WayPointGroupOn

func WayPointGroupOn(waypointGroup WaypointGroupID)

WayPointGroupOn enables waypoints in a group.

func WayPointGroupToggle

func WayPointGroupToggle(waypointGroup WaypointGroupID)

WayPointGroupToggle toggles whether objects in group are disabled.

func WayPointOff

func WayPointOff(waypoint WaypointID)

WayPointOff disables a waypoint.

func WayPointOn

func WayPointOn(waypoint WaypointID)

WayPointOn enables a waypoint.

func WayPointToggle

func WayPointToggle(waypoint WaypointID)

WayPointToggle toggles waypoint.

func WideScreen

func WideScreen(value bool)

func ZombieGroupStayDown

func ZombieGroupStayDown(objectGroup ObjectGroupID)

ZombieGroupStayDown sets group of zombies to stay down.

func ZombieStayDown

func ZombieStayDown(id ObjectID)

ZombieStayDown sets zombie to stay down.

Types

type Answer

type Answer = int

func GetAnswer

func GetAnswer(id ObjectID) Answer

GetAnswer gets answer from conversation.

Result is one of:

0=Goodbye
1=Yes
2=No

type AudioName

type AudioName = string

type Class

type Class = string

type DamageType

type DamageType = int

type DialogType

type DialogType = string

type Direction

type Direction = int

func GetDirection

func GetDirection(id ObjectID) Direction

GetDirection gets object direction.

See LookWithAngle for details.

type EffectID

type EffectID = string

type EnchantID

type EnchantID = string

type EntryType

type EntryType = int

type Func

type Func = any

type Handle added in v3.4.0

type Handle = ns4.Handle

type ObjEvent

type ObjEvent = int

type ObjectGroupID

type ObjectGroupID int

func ObjectGroup

func ObjectGroup(name string) ObjectGroupID

ObjectGroup looks up object group by name.

func (ObjectGroupID) ObjGroupScriptID

func (id ObjectGroupID) ObjGroupScriptID() int

func (ObjectGroupID) ScriptID

func (id ObjectGroupID) ScriptID() int

type ObjectID

type ObjectID int

func CreateMover

func CreateMover(id ObjectID, waypoint WaypointID, speed float32) ObjectID

CreateMover creates a Mover for an object.

func CreateObject

func CreateObject(typ string, waypoint WaypointID) ObjectID

CreateObject creates an object at a location.

This will create an object given a type and a starting location.

Example usage:

spider := ns.CreateObject("SmallAlbinoSpider", ns.Waypoint("SpiderHole"))

func GetCaller

func GetCaller() ObjectID

GetCaller gets OTHER if valid.

func GetHolder

func GetHolder(item ObjectID) ObjectID

GetHolder gets the holder of an item.

This will return the object id that contains the item in its inventory.

func GetHost

func GetHost() ObjectID

GetHost gets host's player object.

This will return the host's player object id. The host is the player with a player id of 31.

func GetLastItem

func GetLastItem(id ObjectID) ObjectID

GetLastItem gets object's last inventory item.

This will return the object id of the last item in the object's inventory. If the inventory is empty, it will return 0.

This is used with GetPreviousItem to iterate through an object's inventory.

func GetPreviousItem

func GetPreviousItem(id ObjectID) ObjectID

GetPreviousItem gets previous inventory item.

This will return the object id of the previous item in the inventory from the given object id. If the specified object id is not in an inventory, or there are no more items in the inventory, it will return 0.

This is used with GetLastItem to iterate through an object's inventory.

func GetTrigger

func GetTrigger() ObjectID

GetTrigger gets SELF if valid.

func Object

func Object(name string) ObjectID

Object looks up an object by name.

This will lookup an object by its script name and return the object id.

func (ObjectID) ObjScriptID

func (id ObjectID) ObjScriptID() int

func (ObjectID) ScriptID

func (id ObjectID) ScriptID() int

type Spell

type Spell = string

type SubClass

type SubClass = string

type TimerID

type TimerID int

func FrameTimer

func FrameTimer(frames int, callback Func) TimerID

FrameTimer creates a timer with delay in frames.

This will create a timer that calls the given script function after a delay given in frames.

func FrameTimerWithArg

func FrameTimerWithArg(frames int, arg any, callback Func) TimerID

FrameTimerWithArg creates a timer with delay in frames with an argument.

This will create a timer that calls the given script function after a delay given in frames. The given argument will be passed into the script function.

func SecondTimer

func SecondTimer(seconds int, callback Func) TimerID

SecondTimer creates a timer with delay in seconds.

This will create a timer that calls the given script function after a delay given in seconds.

func SecondTimerWithArg

func SecondTimerWithArg(seconds int, arg any, callback Func) TimerID

SecondTimerWithArg creates a timer with delay in seconds with an argument.

This will create a timer that calls the given script function after a delay given in seconds. The given argument will be passed into the script function.

func (TimerID) ScriptID

func (id TimerID) ScriptID() int

func (TimerID) TimerScriptID

func (id TimerID) TimerScriptID() int

type WallGroupID

type WallGroupID int

func WallGroup

func WallGroup(name string) WallGroupID

WallGroup looks up wall group by name.

func (WallGroupID) ScriptID

func (id WallGroupID) ScriptID() int

func (WallGroupID) WallGroupScriptID

func (id WallGroupID) WallGroupScriptID() int

type WallID

type WallID int

func Wall

func Wall(x, y int) WallID

Wall gets a pointer to a wall by its wall coordinates.

func (WallID) ScriptID

func (id WallID) ScriptID() int

func (WallID) WallScriptID

func (id WallID) WallScriptID() int

type WaypointGroupID

type WaypointGroupID int

func WaypointGroup

func WaypointGroup(name string) WaypointGroupID

WaypointGroup looks up waypoint group by name.

func (WaypointGroupID) ScriptID

func (id WaypointGroupID) ScriptID() int

func (WaypointGroupID) WaypointGroupScriptID

func (id WaypointGroupID) WaypointGroupScriptID() int

type WaypointID

type WaypointID int

func Waypoint

func Waypoint(name string) WaypointID

Waypoint looks up waypoint by name.

func (WaypointID) ScriptID

func (id WaypointID) ScriptID() int

func (WaypointID) WaypointScriptID

func (id WaypointID) WaypointScriptID() int

Directories

Path Synopsis
cmd
Package vm is responsible for the interop between legacy NoxScript VM and new NS runtime.
Package vm is responsible for the interop between legacy NoxScript VM and new NS runtime.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL