Nox Script  3.0
 All Files Functions Variables Enumerations
Enumerations | Functions | Variables
builtins.h File Reference

Built-in definitions for Nox Script. More...

Go to the source code of this file.

Enumerations

enum  AudioEvent
 Audio events. More...
 
enum  Class
 Class names. More...
 
enum  DamageType
 Damange types. More...
 
enum  Effect
 Effects. More...
 
enum  Enchant
 Enchants. More...
 
enum  Direction
 Facing directions. More...
 
enum  Spell
 Spell names. More...
 
enum  Subclass
 Subclass names. More...
 

Functions

object Wall (int x, int y)
 Get a pointer to a wall by its wall coordinates. More...
 
void WallOpen (object wall)
 Open a wall. More...
 
void WallGroupOpen (object wallGroup)
 Open walls in a group. More...
 
void WallClose (object wall)
 Close a wall. More...
 
void WallGroupClose (object wallGroup)
 Close walls in a group. More...
 
void WallToggle (object wall)
 Toggle a wall. More...
 
void WallGroupToggle (object wallGroup)
 Toggle walls in a group. More...
 
void WallBreak (object wall)
 Breaks a wall. More...
 
void WallGroupBreak (object wallGroup)
 Breaks walls in a group. More...
 
int SecondTimer (int seconds, function callback)
 Create a timer with delay in seconds. More...
 
int FrameTimer (int frames, function callback)
 Create a timer with delay in frames. More...
 
void Move (int id, object waypoint)
 Move an object to a waypoint. More...
 
void GroupMove (object objectGroup, object waypoint)
 Move objects in a group to a waypoint. More...
 
void LookAtDirection (int id, int direction)
 Cause object to look in a direction. More...
 
void GroupLookAtDirection (object objectGroup, int direction)
 Cause objects in a group to look in a direction. More...
 
void ObjectOn (int id)
 Enable an object. More...
 
void ObjectGroupOn (object objectGroup)
 Enable objects in a group. More...
 
void WayPointOn (object waypoint)
 Enable a waypoint. More...
 
void WayPointGroupOn (object waypointGroup)
 Enable waypoints in a group. More...
 
void ObjectOff (int id)
 Disable an object. More...
 
void ObjectGroupOff (object objectGroup)
 Disable objects in a group. More...
 
void WayPointOff (object waypoint)
 Disable a waypoint. More...
 
void WayPointGroupOff (object waypointGroup)
 Disable waypoints in a group. More...
 
void ObjectToggle (int id)
 Toggle whether object is disabled. More...
 
void ObjectGroupToggle (object objectGroup)
 Toggle whether objects in group are disabled. More...
 
void WayPointToggle (object waypoint)
 Toggle whether waypoint is disabled. More...
 
void WayPointGroupToggle (object waypointGroup)
 Toggle whether objects in group are disabled. More...
 
void Delete (int id)
 Delete an object. More...
 
void GroupDelete (object objectGroup)
 Delete objects in a group. More...
 
void Wander (int id)
 Cause an object to wander. More...
 
void GroupWander (object objectGroup)
 Cause objects in a group to wander. More...
 
void GoBackHome (int id)
 Cause object to move to its starting location. More...
 
void AudioEvent (string audio, object waypoint)
 Play an audio event at a location. More...
 
void Print (string message)
 Display a localized string. More...
 
void PrintToAll (string message)
 Display a localized string to everyone. More...
 
void Chat (int id, string message)
 Cause an object to say a localized string. More...
 
void StopScript (any value)
 Exit current script function. More...
 
void UnlockDoor (int id)
 Unlock a door. More...
 
void LockDoor (int id)
 Lock a door. More...
 
int IsObjectOn (int id)
 Get whether object is enabled. More...
 
int IsWaypointOn (object waypoint)
 Get whether waypoint is enabled. More...
 
int IsLocked (int id)
 Get whether object is locked. More...
 
float RandomFloat (float min, float max)
 Random number (float). More...
 
int Random (int min, int max)
 Random number (int). More...
 
int SecondTimerWithArg (int seconds, any argument, function callback)
 Create a timer with delay in seconds with an argument. More...
 
int FrameTimerWithArg (int frames, any argument, function callback)
 Create a timer with delay in frames with an argument. More...
 
string IntToString (int number)
 Convert an integer to a string. More...
 
string FloatToString (float number)
 Convert a float to a string. More...
 
int CreateObject (string type, object waypoint)
 Create an object at a location. More...
 
void Damage (int target, int source, int amount, int type)
 Damages an object. More...
 
void GroupDamage (object targetGroup, int source, int amount, int type)
 Damages objects in a group. More...
 
int CreateMover (int id, object waypoint, float speed)
 Creates a Mover for an object. More...
 
void GroupCreateMover (object objectGroup, object waypoint, float speed)
 Creates a Mover for every object in a group. More...
 
int AwardSpell (int id, string spell)
 Award spell level to object. More...
 
void GroupAwardSpell (object objectGroup, string spell)
 Award spell level to objects in a group. More...
 
void Enchant (int id, string enchant, float duration)
 Grant object an enchantment. More...
 
void GroupEnchant (int id, string enchant, float duration)
 Grant objects in a group an enchantment. More...
 
int GetHost ()
 Get host's player object. More...
 
int Object (string name)
 Lookup an object by name. More...
 
float GetObjectX (int id)
 Get object X coordinate. More...
 
float GetWaypointX (object waypoint)
 Get waypoint X coordinate. More...
 
float GetObjectY (int id)
 Get object Y coordinate. More...
 
float GetWaypointY (object waypoint)
 Get waypoint Y coordinate. More...
 
float GetObjectZ (int id)
 Get object Z coordinate. More...
 
int GetDirection (int id)
 Get object direction. More...
 
void MoveObject (int id, float x, float y)
 Set an object's location. More...
 
void MoveWaypoint (object waypoint, float x, float y)
 Set a waypoint's location. More...
 
void Raise (int id, float z)
 Set an object's Z coordinate. More...
 
void LookWithAngle (int id, int angle)
 Set an object's direction. More...
 
void PushObjectTo (int id, float x, float y)
 Push an object to a location. More...
 
void PushObject (int id, float magnitude, float x, float y)
 Push an object from a vector and magnitude. More...
 
int GetLastItem (int id)
 Get object's last inventory item. More...
 
int GetPreviousItem (int id)
 Get previous inventory item. More...
 
int HasItem (int holder, int item)
 Get whether the item is in the object's inventory. More...
 
int GetHolder (int item)
 Get the holder of an item. More...
 
int Pickup (int id, int item)
 Cause object to pickup an item. More...
 
int Drop (int id, int item)
 Cause object to drop an item. More...
 
int HasClass (int id, string className)
 Get whether object has a class. More...
 
int HasEnchant (int id, string enchant)
 Get whether object has an enchant. More...
 
void EnchantOff (int id, string enchant)
 Remove enchant from an object. More...
 
int CurrentHealth (int id)
 Get object's health. More...
 
int MaxHealth (int id)
 Get object's maximum health. More...
 
void RestoreHealth (int id, int amount)
 Restore object's health. More...
 
float Distance (float x1, float y1, float x2, float y2)
 Calculate distance between two locations. More...
 
int IsVisibleTo (int object1, int object2)
 Gets whether an object can see another object. More...
 
int GetCharacterData (int idx)
 Get character data. More...
 
void LookAtObject (int id, int target)
 Set direction of object so it is looking at another object. More...
 
void Walk (int id, float x, float y)
 Causes an object to walk to a location. More...
 
void GroupWalk (object objectGroup, float x, float y)
 Causes objects in a group to walk to a location. More...
 
int CancelTimer (int id)
 Cancel a timer. More...
 
void Effect (string effect, float x1, float y1, float x2, float y2)
 Trigger an effect. More...
 
void SetOwner (int owner, int target)
 Set the owner of an object. More...
 
void GroupSetOwner (int owner, object targets)
 Set the owner of objects in a group. More...
 
void SetOwners (object owners, int target)
 Set the objects in a group as owners of target. More...
 
void GroupSetOwners (object owners, object targets)
 Set the objects in a group as owners of target. More...
 
int IsOwnedBy (int id, int target)
 Get whether target is owned by object. More...
 
int GroupIsOwnedBy (int id, object target)
 Get whether any object in target group is owned by object. More...
 
int IsOwnedByAny (object objectGroup, int target)
 Get whether target is owned by any object in the group. More...
 
int GroupIsOwnedByAny (object objectGroup, object target)
 Get whether any object in target is owned by any object in the group. More...
 
void ClearOwner (int id)
 Clear the owner of an object. More...
 
object Waypoint (string name)
 Lookup waypoint by name. More...
 
object WaypointGroup (string name)
 Lookup waypoint group by name. More...
 
object ObjectGroup (string name)
 Lookup object group by name. More...
 
object WallGroup (string name)
 Lookup wall group by name. More...
 
void ChatTimerSeconds (int id, string message, int duration)
 Cause an object to say a localized string for duration in seconds. More...
 
void ChatTimer (int id, string message, int duration)
 Cause an object to say a localized string for duration in frames. More...
 
void DestroyChat (int id)
 Destroys object's speech bubble. More...
 
void DestroyEveryChat ()
 Destroys all speech bubbles. More...
 
void SetQuestStatus (int status, string name)
 Set quest status (int). More...
 
void SetQuestStatusFloat (float status, string name)
 Set quest status (float). More...
 
int GetQuestStatus (string name)
 Get quest status (int). More...
 
float GetQuestStatusFloat (string name)
 Get quest status (int). More...
 
void ResetQuestStatus (string name)
 Delete quest status. More...
 
int IsTrigger (int id)
 Get whether object is SELF. More...
 
int IsCaller (int id)
 Get whether object is OTHER. More...
 
void SetDialog (int id, string type, function start, function end)
 Setup a conversation with object. More...
 
void CancelDialog (int id)
 Cancel a conversation with object. More...
 
void StoryPic (int id, string name)
 Assigns a picture to a conversation. More...
 
void TellStory (string audio, string story)
 Causes the telling of a story. More...
 
void StartDialog (int npc, int other)
 Starts a conversation between two objects. More...
 
void CastSpellObjectObject (string spell, int source, int target)
 Casts a spell from source to target. More...
 
void CastSpellObjectLocation (string spell, int source, float x, float y)
 Casts a spell from source to target. More...
 
void CastSpellLocationObject (string spell, float x, float y, int target)
 Casts a spell from source to target. More...
 
void CastSpellLocationLocation (string spell, float x1, float y1, float x2, float y2)
 Casts a spell from source to target. More...
 
void UnBlind ()
 Unblind the host. More...
 
void Blind ()
 Blind the host. More...
 
void WideScreen (int value)
 
int GetElevatorStatus (int id)
 Get elevator status. More...
 
void CreatureGuard (int id, float x1, float y1, float x2, float y2, float distance)
 Cause a creature to guard a location. More...
 
void CreatureGroupGuard (object objectGroup, float x1, float y1, float x2, float y2, float distance)
 Cause creatures in a group to guard a location. More...
 
void CreatureHunt (int id)
 Cause creature to hunt. More...
 
void CreatureGroupHunt (object objectGroup)
 Cause creatures in a group to hunt. More...
 
void CreatureIdle (int id)
 Cause creature to idle. More...
 
void CreatureGroupIdle (object objectGroup)
 Cause creatures in a group to idle. More...
 
void CreatureFollow (int id, int target)
 Cause creature to follow an object. More...
 
void CreatureGroupFollow (object objectGroup, int target)
 Cause creatures in a group to follow an object. More...
 
void AggressionLevel (int id, float level)
 Set creature's aggression level. More...
 
void GroupAggressionLevel (object objectGroup, float level)
 Set group of creature's aggression level. More...
 
void HitLocation (int id, float x, float y)
 Melee attack a location. More...
 
void GroupHitLocation (object objectGroup, float x, float y)
 Melee attack a location. More...
 
void HitFarLocation (int id, float x, float y)
 Ranged attack a location. More...
 
void GroupHitFarLocation (object objectGroup, float x, float y)
 Ranged attack a location. More...
 
void SetRoamFlag (int id, int flags)
 Set roaming flags. More...
 
void GroupSetRoamFlag (object objectGroup, int flags)
 Set roaming flags. More...
 
void Attack (int id, int target)
 Attack an object. More...
 
void GroupAttack (object objectGroup, int target)
 Attack an object. More...
 
void JournalEntry (int id, string message, int type)
 Add entry to player's journal. More...
 
void JournalDelete (int id, string message)
 Delete entry from player's journal. More...
 
void JournalEdit (int id, string message, int type)
 Edit entry in player's journal. More...
 
void RetreatLevel (int id, float percent)
 Set when creature retreats due to low health. More...
 
void GroupRetreatLevel (object objectGroup, float percent)
 Set when creature retreats due to low health. More...
 
void ResumeLevel (int id, float percent)
 Set when creature resumes due to health. More...
 
void GroupResumeLevel (object objectGroup, float percent)
 Set when creature resumes due to health. More...
 
void RunAway (int id, int target, int duration)
 Cause creature to run away from target. More...
 
void GroupRunAway (object objectGroup, int target, int duration)
 Cause creatures to run away from target. More...
 
void PauseObject (int id, int duration)
 Pause an object temporarily. More...
 
void GroupPauseObject (object objectGroup, int duration)
 Pause objects of a group temporarily. More...
 
int IsAttackedBy (int id1, int id2)
 Get whether object1 is being attacked by object2. More...
 
int GetGold (int id)
 Get amount of gold for player object. More...
 
void ChangeGold (int id, int delta)
 Change amount of gold for player object. More...
 
int GetAnswer (int id)
 Get answer from conversation. More...
 
void GiveXp (int id, float xp)
 Grant experience to a player. More...
 
int HasSubclass (int id, string subclass)
 Get whether object has subclass. More...
 
void AutoSave ()
 Trigger an autosave. Only solo games. More...
 
void Music (int music, int volume)
 Plays music. More...
 
void StartupScreen (int arg1)
 Show startup screen to host. More...
 
int IsTalking ()
 Get whether host is talking. More...
 
int GetTrigger ()
 Get SELF if valid. More...
 
int GetCaller ()
 Get OTHER if valid. More...
 
void MakeFriendly (int id)
 Set object friendly with host. More...
 
void MakeEnemy (int id)
 Unset object as friendly. More...
 
void BecomePet (int id)
 Set object as pet of host. More...
 
void BecomeEnemy (int id)
 Unset object as pet of host. More...
 
int Unknownb8 (int id)
 
int Unknownb9 (int id)
 
void SetHalberd (int upgrade)
 Upgrade host's oblivion staff. More...
 
void DeathScreen (int which)
 Show death screen. More...
 
void Frozen (int id, int frozen)
 Set frozen status of an object. More...
 
void NoWallSound (int noWallSound)
 Set no wall sound flag. More...
 
void SetCallback (int id, int idx, function callback)
 Set a callback on an object. More...
 
void DeleteObjectTimer (int id, int delay)
 Delete object after a delay. More...
 
void TrapSpells (int id, string spell1, string spell2, string spell3)
 Set spells on a bomber. More...
 
int IsTrading ()
 Get whether the host is currently trading. More...
 
void ClearMessages (int id)
 Clear messages on player's screen. More...
 
void SetShopkeeperText (int id, string text)
 Set shopkeeper text. More...
 
void Unknownc4 ()
 
int IsSummoned (int id)
 Gets whether object is a summoned creature. More...
 
void ZombieStayDown (int id)
 Set zombie to stay down. More...
 
void ZombieGroupStayDown (object objectGroup)
 Set group of zombies to stay down. More...
 
void RaiseZombie (int id)
 Raise a zombie. Also clears stay down state. More...
 
void RaiseZombieGroup (object objectGroup)
 Raise a zombie. Also clears stay down state. More...
 
void MusicPushEvent ()
 
void MusicPopEvent ()
 
void MusicEvent ()
 
int IsGameBall (int id)
 Get whether object is a GameBall. More...
 
int IsCrown (int id)
 Get whether object is a Crown. More...
 
void EndGame (int type)
 End of game. More...
 
void ImmediateBlind ()
 Immediately blind the host. More...
 
void ChangeScore (int id, int score)
 Change player object's score. More...
 
int GetScore (int id)
 Get player object's score. More...
 

Variables

const int FALSE = 0
 FALSE value. More...
 
const int TRUE = 1
 TRUE value. More...
 
const int SELF = -2
 SELF object id. More...
 
const int OTHER = -1
 OTHER object id. More...
 

Detailed Description

Built-in definitions for Nox Script.

Enumeration Type Documentation

enum AudioEvent

Audio events.

434 {
435  AnchorCast,
436  AnchorOn,
437  AnchorOff,
438  BlindCast,
439  BlindOn,
440  BlindOff,
441  BlinkCast,
442  BurnCast,
443  CleansingFlameCast,
444  ChannelLifeCast,
445  ChannelLifeEffect,
446  ChannelLifeStop,
447  CancelCast,
448  CharmCast,
449  CharmSuccess,
450  CharmFailure,
451  ConfuseCast,
452  ConfuseOn,
453  ConfuseOff,
454  CounterspellCast,
455  CurePoisonCast,
456  CurePoisonEffect,
457  DeathCast,
458  DeathOn,
459  DeathOff,
460  DeathTimer,
461  DeathRayCast,
462  DetonateGlyphCast,
463  DrainManaCast,
464  EarthquakeCast,
465  EnergyBoltCast,
466  FearCast,
467  FearOn,
468  FearOff,
469  ForceOfNatureCast,
470  ForceOfNatureReflect,
471  ForceOfNatureRelease,
472  GlyphCast,
473  GlyphDetonate,
474  FireballCast,
475  FireballExplode,
476  FirewalkCast,
477  FirewalkOn,
478  FirewalkOff,
479  FirewalkFlame,
480  FistCast,
481  FistHit,
482  ForceFieldCast,
483  FrostCast,
484  FrostOn,
485  FrostOff,
486  FumbleCast,
487  FumbleEffect,
488  GreaterHealCast,
489  GreaterHealEffect,
490  GreaterHealStop,
491  HasteCast,
492  HasteOn,
493  HasteOff,
494  InfravisionCast,
495  InfravisionOn,
496  InfraVisionOff,
497  InversionCast,
498  InvisibilityCast,
499  InvisibilityOn,
500  InvisibilityOff,
501  InvulnerabilityCast,
502  InvulnerabilityOn,
503  InvulnerabilityOff,
504  InvulnerableEffect,
505  LesserHealCast,
506  LesserHealEffect,
507  LightCast,
508  LightOn,
509  LightOff,
510  LightningCast,
511  LockCast,
512  ManaBombCast,
513  ManaBombEffect,
514  MarkCast,
515  MagicMissileCast,
516  MagicMissileDetonate,
517  MeteorCast,
518  MeteorShowerCast,
519  MeteorHit,
520  MoonglowCast,
521  MoonglowOn,
522  MoonglowOff,
523  NullifyCast,
524  NullifyOn,
525  NullifyOff,
526  PhantomCast,
527  PixieSwarmCast,
528  PixieHit,
529  PlasmaCast,
530  PoisonCast,
531  PoisonEffect,
532  ProtectionFromFireCast,
533  ProtectionFromFireOn,
534  ProtectionFromFireOff,
535  ProtectionFromFireEffect,
536  ProtectionFromPoisonCast,
537  ProtectionFromPoisonOn,
538  ProtectionFromPoisonOff,
539  ProtectionFromPoisonEffec,
540  ProtectionFromElectricity,
541  ProtectionFromElectricity,
542  ProtectionFromElectricity,
543  ProtectionFromElectricity,
544  ProtectionFromMagicCast,
545  ProtectionFromMagicOn,
546  ProtectionFromMagicOff,
547  ProtectionFromMagicEffect,
548  PullCast,
549  PushCast,
550  ReflectiveShieldCast,
551  ReflectiveShieldOn,
552  ReflectiveShieldOff,
553  ReflectiveShieldEffect,
554  RegenerationOn,
555  RegenerationOff,
556  RunCast,
557  RunOn,
558  RunOff,
559  ShieldCast,
560  ShieldOn,
561  ShieldOff,
562  ShieldRepelled,
563  ShockCast,
564  ShockOn,
565  ShockOff,
566  Shocked,
567  SlowCast,
568  SlowOn,
569  SlowOff,
570  StunCast,
571  StunOn,
572  StunOff,
573  SummonCast,
574  SwapCast,
575  TagCast,
576  TagOn,
577  TagOff,
578  TeleportOut,
579  TeleportIn,
580  TeleportToMarkerCast,
581  TeleportToMarkerEffect,
582  TeleportPopCast,
583  TeleportToTargetCast,
584  TelekinesisCast,
585  TelekinesisOn,
586  TelekinesisOff,
587  ToxicCloudCast,
588  TriggerGlyphCast,
589  TurnUndeadCast,
590  TurnUndeadEffect,
591  VampirismCast,
592  VampirismOn,
593  VampirismOff,
594  DrainHealth,
595  VillainCast,
596  VillainOn,
597  VillainOff,
598  WallCast,
599  WallOn,
600  WallOff,
601  BerserkerChargeInvoke,
602  BerserkerCrash,
603  BerserkerChargeOn,
604  BerserkerChargeOff,
605  WarcryInvoke,
606  WarcryOn,
607  WarcryOff,
608  HarpoonInvoke,
609  HarpoonOn,
610  HarpoonOff,
611  TreadLightlyInvoke,
612  TreadLightlyOn,
613  TreadLightlyOff,
614  EyeOfTheWolfInvoke,
615  EyeOfTheWolfOn,
616  EyeOfTheWolfOff,
617  SpellPhonemeUp,
618  SpellPhonemeUpRight,
619  SpellPhonemeRight,
620  SpellPhonemeDownRight,
621  SpellPhonemeDown,
622  SpellPhonemeDownLeft,
623  SpellPhonemeLeft,
624  SpellPhonemeUpLeft,
625  FemaleSpellPhonemeUp,
626  FemaleSpellPhonemeUpRight,
627  FemaleSpellPhonemeRight,
628  FemaleSpellPhonemeDownRig,
629  FemaleSpellPhonemeDown,
630  FemaleSpellPhonemeDownLef,
631  FemaleSpellPhonemeLeft,
632  FemaleSpellPhonemeUpLeft,
633  NPCSpellPhonemeUp,
634  NPCSpellPhonemeUpRight,
635  NPCSpellPhonemeRight,
636  NPCSpellPhonemeDownRight,
637  NPCSpellPhonemeDown,
638  NPCSpellPhonemeDownLeft,
639  NPCSpellPhonemeLeft,
640  NPCSpellPhonemeUpLeft,
641  NPCFemaleSpellPhonemeUp,
642  NPCFemaleSpellPhonemeUpRi,
643  NPCFemaleSpellPhonemeRigh,
644  NPCFemaleSpellPhonemeDown,
645  NPCFemaleSpellPhonemeDown,
646  NPCFemaleSpellPhonemeDown,
647  NPCFemaleSpellPhonemeLeft,
648  NPCFemaleSpellPhonemeUpLe,
649  FireballWand,
650  SmallFireballWand,
651  FlareWand,
652  LightningWand,
653  DepletedWand,
654  Ricochet,
655  WeaponEffectFire,
656  WeaponEffectElectricity,
657  PermanentFizzle,
658  ManaEmpty,
659  Lock,
660  Unlock,
661  ElevEnable,
662  ElevDisable,
663  OpenWoodenDoor,
664  MoveWoodenDoor,
665  CloseWoodenDoor,
666  WoodenDoorLocked,
667  OpenGate,
668  MoveGate,
669  CloseGate,
670  GateLocked,
671  OpenWoodenGate,
672  CloseWoodenGate,
673  OpenHeavyWoodenDoor,
674  CloseHeavyWoodenDoor,
675  ElevStoneUp,
676  ElevStoneDown,
677  ElevWoodUp,
678  ElevWoodDown,
679  ElevMechUp,
680  ElevMechDown,
681  ElevLavaUp,
682  ElevLavaDown,
683  ElevGreenUp,
684  ElevGreenDown,
685  ElevLOTDUp,
686  ElevLOTDDown,
687  Gear1,
688  Gear2,
689  Gear3,
690  SmallRockMove,
691  MediumRockMove,
692  LargeRockMove,
693  BoulderMove,
694  WalkOnSnow,
695  WalkOnStone,
696  WalkOnDirt,
697  WalkOnWood,
698  WalkOnWater,
699  WalkOnMud,
700  RunOnSnow,
701  RunOnStone,
702  RunOnDirt,
703  RunOnWood,
704  RunOnWater,
705  RunOnMud,
706  PlayerFallThud,
707  BarrelMove,
708  BlackPowderBurn,
709  FireExtinguish,
710  PolypExplode,
711  PowderBarrelExplode,
712  BarrelBreak,
713  WaterBarrelBreak,
714  LOTDBarrelBreak,
715  WineCaskBreak,
716  BarrelStackBreak,
717  CoffinBreak,
718  WaspHiveBreak,
719  WorkstationBreak,
720  CrushLight,
721  CrushMedium,
722  CrushHard,
723  SentryRayHitWall,
724  SentryRayHit,
725  DeathRayKill,
726  TauntLaugh,
727  TauntShakeFist,
728  TauntPoint,
729  FlagPickup,
730  FlagDrop,
731  FlagRespawn,
732  FlagCapture,
733  TreasurePickup,
734  TreasureDrop,
735  GameOver,
736  ServerOptionsChange,
737  CamperAlarm,
738  PlayerEliminated,
739  CrownChange,
740  HumanMaleEatFood,
741  HumanMaleEatApple,
742  HumanMaleDrinkJug,
743  HumanMaleHurtLight,
744  HumanMaleHurtMedium,
745  HumanMaleHurtHeavy,
746  HumanMaleHurtPoison,
747  HumanMaleDie,
748  HumanMaleExertionLight,
749  HumanMaleExertionHeavy,
750  HumanFemaleEatFood,
751  HumanFemaleEatApple,
752  HumanFemaleDrinkJug,
753  HumanFemaleHurtLight,
754  HumanFemaleHurtMedium,
755  HumanFemaleHurtHeavy,
756  HumanFemaleHurtPoison,
757  HumanFemaleDie,
758  HumanFemaleExertionLight,
759  HumanFemaleExertionHeavy,
760  MonsterEatFood,
761  BatMove,
762  BatRecognize,
763  BatBite,
764  BatDie,
765  SmallSpiderMove,
766  SmallSpiderIdle,
767  SmallSpiderRecognize,
768  SmallSpiderBite,
769  SmallSpiderDie,
770  LargeSpiderMove,
771  LargeSpiderIdle,
772  LargeSpiderRecognize,
773  LargeSpiderBite,
774  LargeSpiderSpit,
775  WebGooHit,
776  LargeSpiderDie,
777  SkeletonMove,
778  SkeletonRecognize,
779  SkeletonHitting,
780  SkeletonMissing,
781  SkeletonAttackInit,
782  SkeletonDie,
783  SkeletonLordMove,
784  SkeletonLordRecognize,
785  SkeletonLordHitting,
786  SkeletonLordMissing,
787  SkeletonLordAttackInit,
788  SkeletonLordDie,
789  BomberRecognize,
790  BomberSummon,
791  BomberMove,
792  BomberDie,
793  DemonRecognize,
794  DemonTaunt,
795  DemonSpellInit,
796  DemonMove,
797  DemonHurt,
798  DemonDie,
799  GruntTaunt,
800  GruntIdle,
801  GruntBowTwang,
802  GruntRecognize,
803  GruntMove,
804  GruntAttackInit,
805  GruntHitting,
806  GruntMissing,
807  GruntHurt,
808  GruntDie,
809  OgreBruteTaunt,
810  OgreBruteIdle,
811  OgreBruteListen,
812  OgreBruteAttackInit,
813  OgreBruteMeleeMiss,
814  OgreBruteEngage,
815  OgreBruteRecognize,
816  OgreBruteMove,
817  OgreBruteHurt,
818  OgreBruteMeleeHit,
819  OgreBruteDie,
820  OgreWarlordTaunt,
821  OgreWarlordIdle,
822  OgreWarlordListen,
823  OgreWarlordAttackInit,
824  OgreWarlordMeleeMiss,
825  OgreWarlordEngage,
826  OgreWarlordRecognize,
827  OgreWarlordThrow,
828  OgreWarlordMove,
829  OgreWarlordHurt,
830  OgreWarlordMeleeHit,
831  OgreWarlordDie,
832  ScorpionMove,
833  ScorpionIdle,
834  ScorpionRecognize,
835  ScorpionStingHit,
836  ScorpionStingMiss,
837  ScorpionAttackInit,
838  ScorpionHurt,
839  ScorpionDie,
840  LeechMove,
841  LeechIdle,
842  LeechRecognize,
843  LeechHitting,
844  LeechMissing,
845  LeechAttackInit,
846  LeechHurt,
847  LeechDie,
848  ZombieMove,
849  ZombieIdle,
850  ZombieRecognize,
851  ZombieHitting,
852  ZombieMissing,
853  ZombieAttackInit,
854  ZombieHurt,
855  ZombieDie,
856  VileZombieMove,
857  VileZombieIdle,
858  VileZombieRecognize,
859  VileZombieHitting,
860  VileZombieMissing,
861  VileZombieAttackInit,
862  VileZombieHurt,
863  VileZombieDie,
864  BearMove,
865  BearRecognize,
866  BearHitting,
867  BearMissing,
868  BearAttackInit,
869  BearHurt,
870  BearDie,
871  WolfMove,
872  WolfIdle,
873  WolfRecognize,
874  WolfHitting,
875  WolfMissing,
876  WolfAttackInit,
877  WolfHurt,
878  WolfDie,
879  PlantRecognize,
880  PlantHitting,
881  PlantMissing,
882  PlantAttackInit,
883  PlantHurt,
884  PlantDie,
885  MimicMove,
886  MimicIdle,
887  MimicRecognize,
888  MimicAttackInit,
889  MimicHitting,
890  MimicMissing,
891  MimicHurt,
892  MimicDie,
893  MechGolemRecognize,
894  MechGolemHitting,
895  MechGolemMissing,
896  MechGolemMove,
897  MechGolemAttackInit,
898  MechGolemHurt,
899  MechGolemDie,
900  ImpMove,
901  ImpRecognize,
902  ImpSteal,
903  ImpShoot,
904  ImpDie,
905  GolemRecognize,
906  GolemMove,
907  GolemHitting,
908  GolemMissing,
909  GolemHurt,
910  GolemDie,
911  TowerRecognize,
912  TowerShoot,
913  SkullRecognize,
914  SkullShoot,
915  GhostMove,
916  GhostRecognize,
917  GhostHitting,
918  GhostHurt,
919  GhostDie,
920  WizardTalkable,
921  WizardMove,
922  WizardRecognize,
923  WizardEngage,
924  WizardRetreat,
925  WizardHurt,
926  WizardDie,
927  WaspMove,
928  WaspIdle,
929  WaspRecognize,
930  WaspSting,
931  WaspDie,
932  EmberDemonMove,
933  EmberDemonTaunt,
934  EmberDemonRecognize,
935  EmberDemonHitting,
936  EmberDemonMissing,
937  EmberDemonThrow,
938  EmberDemonHurt,
939  EmberDemonDie,
940  UrchinMove,
941  UrchinTaunt,
942  UrchinIdle,
943  UrchinRecognize,
944  UrchinThrow,
945  UrchinHurt,
946  UrchinFlee,
947  UrchinDie,
948  UrchinShamanMove,
949  UrchinShamanTaunt,
950  UrchinShamanIdle,
951  UrchinShamanRecognize,
952  UrchinShamanHurt,
953  UrchinShamanFlee,
954  UrchinShamanDie,
955  ArcherMove,
956  ArcherTaunt,
957  ArcherIdle,
958  ArcherRetreat,
959  ArcherRecognize,
960  ArcherMissileInit,
961  ArcherShoot,
962  ArcherHurt,
963  ArcherDie,
964  SwordsmanMove,
965  SwordsmanTaunt,
966  SwordsmanIdle,
967  SwordsmanRecognize,
968  SwordsmanHitting,
969  SwordsmanMissing,
970  SwordsmanRetreat,
971  SwordsmanAttackInit,
972  SwordsmanHurt,
973  SwordsmanDie,
974  BeholderMove,
975  BeholderIdle,
976  BeholderRecognize,
977  BeholderAttackInit,
978  BeholderHurt,
979  BeholderDie,
980  DryadMove,
981  DryadTaunt,
982  DryadRecognize,
983  DryadHurt,
984  DryadDie,
985  EvilCherubMove,
986  EvilCherubTaunt,
987  EvilCherubIdle,
988  EvilCherubMissileInit,
989  EvilCherubRecognize,
990  EvilCherubShoot,
991  EvilCherubHurt,
992  EvilCherubDie,
993  FishDie,
994  FrogDie,
995  FrogRecognize,
996  HecubahTaunt,
997  HecubahTalkable,
998  HecubahMove,
999  HecubahRecognize,
1000  HecubahAttackInit,
1001  HecubahHurt,
1002  HecubahDie,
1003  HecubahDieFrame0A,
1004  HecubahDieFrame0B,
1005  HecubahDieFrame98,
1006  HecubahDieFrame194,
1007  HecubahDieFrame283,
1008  HecubahDieFrame439,
1009  NecromancerTaunt,
1010  NecromancerTalkable,
1011  NecromancerMove,
1012  NecromancerRecognize,
1013  NecromancerEngage,
1014  NecromancerRetreat,
1015  NecromancerAttackInit,
1016  NecromancerHurt,
1017  NecromancerDie,
1018  LichMove,
1019  LichRecognize,
1020  LichAttackInit,
1021  LichHurt,
1022  LichDie,
1023  FlyingGolemMove,
1024  FlyingGolemRecognize,
1025  FlyingGolemShoot,
1026  FlyingGolemHurt,
1027  FlyingGolemDie,
1028  NPCIdle,
1029  NPCTalkable,
1030  NPCRecognize,
1031  NPCRetreat,
1032  NPCHurt,
1033  NPCDie,
1034  MaidenIdle,
1035  MaidenTalkable,
1036  MaidenFlee,
1037  MaidenHurt,
1038  MaidenDie,
1039  RatDie,
1040  ShadeMove,
1041  ShadeRecognize,
1042  ShadeAttackInit,
1043  ShadeHurt,
1044  ShadeDie,
1045  WeirdlingMove,
1046  WillOWispMove,
1047  WillOWispIdle,
1048  WillOWispRecognize,
1049  WillOWispEngage,
1050  WillOWispHurt,
1051  WillOWispDie,
1052  TrollMove,
1053  TrollIdle,
1054  TrollRecognize,
1055  TrollHurt,
1056  TrollAttackInit,
1057  TrollFlatus,
1058  TrollDie,
1059  MaleNPC1Idle,
1060  MaleNPC1Talkable,
1061  MaleNPC1Recognize,
1062  MaleNPC1Engage,
1063  MaleNPC1Retreat,
1064  MaleNPC1Hurt,
1065  MaleNPC1AttackInit,
1066  MaleNPC1Die,
1067  MaleNPC2Idle,
1068  MaleNPC2Talkable,
1069  MaleNPC2Recognize,
1070  MaleNPC2Engage,
1071  MaleNPC2Retreat,
1072  MaleNPC2Hurt,
1073  MaleNPC2AttackInit,
1074  MaleNPC2Die,
1075  Maiden1Talkable,
1076  Maiden1Idle,
1077  Maiden1Recognize,
1078  Maiden1Retreat,
1079  Maiden1Hurt,
1080  Maiden1AttackInit,
1081  Maiden1Die,
1082  Maiden2Idle,
1083  Maiden2Talkable,
1084  Maiden2Recognize,
1085  Maiden2Retreat,
1086  Maiden2Hurt,
1087  Maiden2AttackInit,
1088  Maiden2Die,
1089  HorvathTalkable,
1090  HorvathEngage,
1091  HorvathHurt,
1092  HorvathDie,
1093  Wizard1Idle,
1094  Wizard1Talkable,
1095  Wizard1Recognize,
1096  Wizard1Engage,
1097  Wizard1Retreat,
1098  Wizard1Hurt,
1099  Wizard1AttackInit,
1100  Wizard1Die,
1101  Wizard2Idle,
1102  Wizard2Talkable,
1103  Wizard2Recognize,
1104  Wizard2Engage,
1105  Wizard2Retreat,
1106  Wizard2Hurt,
1107  Wizard2AttackInit,
1108  Wizard2Die,
1109  FireKnight1Idle,
1110  FireKnight1Talkable,
1111  FireKnight1Recognize,
1112  FireKnight1Engage,
1113  FireKnight1Retreat,
1114  FireKnight1Hurt,
1115  FireKnight1AttackInit,
1116  FireKnight1Die,
1117  FireKnight2Idle,
1118  FireKnight2Talkable,
1119  FireKnight2Recognize,
1120  FireKnight2Engage,
1121  FireKnight2Retreat,
1122  FireKnight2Hurt,
1123  FireKnight2AttackInit,
1124  FireKnight2Die,
1125  Guard1Idle,
1126  Guard1Talkable,
1127  Guard1Recognize,
1128  Guard1Engage,
1129  Guard1Retreat,
1130  Guard1Hurt,
1131  Guard1AttackInit,
1132  Guard1Die,
1133  Guard2Idle,
1134  Guard2Talkable,
1135  Guard2Recognize,
1136  Guard2Engage,
1137  Guard2Retreat,
1138  Guard2Hurt,
1139  Guard2AttackInit,
1140  Guard2Die,
1141  WoundedNPCIdle,
1142  WoundedNPCTalkable,
1143  WoundedNPCRecognize,
1144  WoundedNPCRetreat,
1145  WoundedNPCHurt,
1146  WoundedNPCAttackInit,
1147  WoundedNPCDie,
1148  HorrendousTalkable,
1149  HorrendousRecognize,
1150  HorrendousRetreat,
1151  HorrendousHurt,
1152  HorrendousAttackInit,
1153  HorrendousDie,
1154  PotionUse,
1155  RestoreHealth,
1156  RestoreMana,
1157  SecretWallOpen,
1158  SecretWallClose,
1159  SecretWallEarthOpen,
1160  SecretWallEarthClose,
1161  SecretWallMetalOpen,
1162  SecretWallMetalClose,
1163  SecretWallStoneOpen,
1164  SecretWallStoneClose,
1165  SecretWallWoodOpen,
1166  SecretWallWoodClose,
1167  TriggerPressed,
1168  TriggerReleased,
1169  PotionBreak,
1170  WallDestroyed,
1171  WallDestroyedStone,
1172  WallDestroyedWood,
1173  WallDestroyedMetal,
1174  ChestOpen,
1175  CryptChestOpen,
1176  SackChestOpen,
1177  EggBreak,
1178  ButtonPress,
1179  ButtonRelease,
1180  LeverToggle,
1181  SwitchToggle,
1182  ChainPull,
1183  ShortBellsUp,
1184  LongBellsUp,
1185  LongBellsDown,
1186  BigBell,
1187  MetallicBong,
1188  Chime,
1189  BigGong,
1190  SmallGong,
1191  MysticChant,
1192  TripleChime,
1193  Clank1,
1194  Clank2,
1195  Clank3,
1196  MapOpen,
1197  MapClose,
1198  BookOpen,
1199  BookClose,
1200  PageTurn,
1201  InventoryOpen,
1202  InventoryClose,
1203  InventoryPickup,
1204  InventoryDrop,
1205  SpellPickup,
1206  SpellDrop,
1207  SpellPopOffBook,
1208  TrapEditorOpen,
1209  TrapEditorClose,
1210  ChangeSpellbar,
1211  ExpandSpellbar,
1212  CollapseSpellbar,
1213  CreatureCageAppears,
1214  CreatureCageHides,
1215  ShopRepairItem,
1216  MetalArmorPickup,
1217  MetalArmorDrop,
1218  MetalArmorBreak,
1219  LeatherArmorPickup,
1220  LeatherArmorDrop,
1221  LeatherArmorBreak,
1222  WoodenArmorPickup,
1223  WoodenArmorDrop,
1224  WoodenArmorBreak,
1225  ClothArmorPickup,
1226  ClothArmorDrop,
1227  ClothArmorBreak,
1228  ShoesPickup,
1229  ShoesDrop,
1230  MetalWeaponBreak,
1231  WoodWeaponBreak,
1232  KeyPickup,
1233  KeyDrop,
1234  AmuletPickup,
1235  AmuletDrop,
1236  TrapPickup,
1237  TrapDrop,
1238  BookPickup,
1239  BookDrop,
1240  ScrollPickup,
1241  ScrollDrop,
1242  WandPickup,
1243  WandDrop,
1244  PotionPickup,
1245  PotionDrop,
1246  MeatPickup,
1247  MeatDrop,
1248  ApplePickup,
1249  AppleDrop,
1250  ShroomPickup,
1251  ShroomDrop,
1252  SpectaclesPickup,
1253  SpectaclesDrop,
1254  MetalWeaponPickup,
1255  WoodenWeaponPickup,
1256  MetalWeaponDrop,
1257  WoodenWeaponDrop,
1258  BearTrapTriggered,
1259  PoisonTrapTriggered,
1260  StoneHitStone,
1261  StoneHitEarth,
1262  StoneHitWood,
1263  StoneHitMetal,
1264  StoneHitFlesh,
1265  WoodHitStone,
1266  WoodHitEarth,
1267  WoodHitWood,
1268  WoodHitMetal,
1269  WoodHitFlesh,
1270  MetalHitStone,
1271  MetalHitEarth,
1272  MetalHitWood,
1273  MetalHitMetal,
1274  MetalHitFlesh,
1275  FleshHitStone,
1276  FleshHitEarth,
1277  FleshHitWood,
1278  FleshHitMetal,
1279  FleshHitFlesh,
1280  DiamondHitStone,
1281  DiamondHitEarth,
1282  DiamondHitWood,
1283  DiamondHitMetal,
1284  DiamondHitFlesh,
1285  HitStoneBreakable,
1286  HitEarthBreakable,
1287  HitWoodBreakable,
1288  HitMetalBreakable,
1289  HitMagicBreakable,
1290  HitMetalShield,
1291  PunchMissing,
1292  LongswordMissing,
1293  SwordMissing,
1294  HammerMissing,
1295  AxeMissing,
1296  MaceMissing,
1297  BowEmpty,
1298  CrossBowEmpty,
1299  BowShoot,
1300  CrossBowShoot,
1301  ArrowTrapShoot,
1302  GreatSwordReflect,
1303  ChakramThrow,
1304  ChakramCatch,
1305  ChakramFallToGround,
1306  StaffBlock,
1307  NextWeapon,
1308  HeartBeat,
1309  GenerateTick,
1310  SummonClick,
1311  SummonComplete,
1312  SummonAbort,
1313  ManaClick,
1314  LevelUp,
1315  JournalEntryAdd,
1316  SecretFound,
1317  EarthRumbleMajor,
1318  EarthRumbleMinor,
1319  ElectricalArc1,
1320  FloorSpikesUp,
1321  FloorSpikesDown,
1322  SpikeBlockMove,
1323  BoulderRoll,
1324  ArcheryContestBegins,
1325  HorrendousIsKilled,
1326  StaffOblivionAchieve1,
1327  StaffOblivionAchieve2,
1328  StaffOblivionAchieve3,
1329  StaffOblivionAchieve4,
1330  FireGrate,
1331  MechGolemPowerUp,
1332  ShellSelect,
1333  ShellClick,
1334  ShellSlideIn,
1335  ShellSlideOut,
1336  ShellMouseBoom,
1337  NoCanDo,
1338  BallThrow,
1339  BallGrab,
1340  BallBounce,
1341  BallHitGoal,
1342  HarpoonBroken,
1343  HarpoonReel,
1344  MonsterGeneratorDie,
1345  MonsterGeneratorHurt,
1346  MonsterGeneratorSpawn,
1347  PlayerExit,
1348  AwardLife,
1349  SoulGateTouch,
1350  QuestRespawn,
1351  QuestFinalDeath,
1352  QuestPlayerJoinGame,
1353  QuestStatScreen,
1354  QuestIntroScreen,
1355  QuestPlayerExitGame,
1356  QuestLockedChest,
1357  StoneDoorOpen,
1358  StoneDoorClose,
1359  DiamondPickup,
1360  DiamondDrop,
1361  EnableSharedKeyMode,
1362 };
void RestoreHealth(int id, int amount)
Restore object's health.
enum Class

Class names.

1368 {
1369  MISSILE,
1370  MONSTER,
1371  PLAYER,
1372  OBSTACLE,
1373  FOOD,
1374  EXIT,
1375  KEY,
1376  DOOR,
1377  INFO_BOOK,
1378  TRIGGER,
1379  TRANSPORTER,
1380  HOLE,
1381  WAND,
1382  FIRE,
1383  ELEVATOR,
1384  ELEVATOR_SHAFT,
1385  DANGEROUS,
1386  MONSTERGENERATOR,
1387  READABLE,
1388  LIGHT,
1389  SIMPLE,
1390  COMPLEX,
1391  IMMOBILE,
1392  VISIBLE_ENABLE,
1393  WEAPON,
1394  ARMOR,
1395  NOT_STACKABLE,
1396  TREASURE,
1397  FLAG,
1398  CLIENT_PERSIST,
1399  CLIENT_PREDICT,
1400  PICKUP
1401 };
enum DamageType

Damange types.

1407 {
1408  DAMAGE_BLADE = 0,
1409  DAMAGE_FLAME = 1,
1410  DAMAGE_CRUSH = 2,
1411  DAMAGE_IMPALE = 3,
1412  DAMAGE_DRAIN = 4,
1413  DAMAGE_POISON = 5,
1414  DAMAGE_DISPEL_UNDEAD = 6,
1415  DAMAGE_EXPLOSION = 7,
1416  DAMAGE_BITE = 8,
1417  DAMAGE_ELECTRIC = 9,
1418  DAMAGE_CLAW = 10,
1419  DAMAGE_IMPACT = 11,
1420  DAMAGE_LAVA = 12,
1421  DAMAGE_DEATH_MAGIC = 13,
1422  DAMAGE_PLASMA = 14,
1423  DAMAGE_MANA_BOMB = 15,
1424  DAMAGE_ZAP_RAY = 16,
1425  DAMAGE_AIRBORNE_ELECTRIC = 17,
1426 };
enum Direction

Facing directions.

1518 {
1519  NW = 0,
1520  N = 1,
1521  NE = 2,
1522  W = 3,
1523  E = 5,
1524  SW = 6,
1525  S = 7,
1526  SE = 8
1527 };
enum Effect

Effects.

1432 {
1433  PARTICLEFX,
1434  PLASMA,
1435  SUMMON,
1436  SUMMON_CANCEL,
1437  SHIELD,
1438  BLUE_SPARKS,
1439  YELLOW_SPARKS,
1440  CYAN_SPARKS,
1441  VIOLET_SPARKS,
1442  EXPLOSION,
1443  LESSER_EXPLOSION,
1444  COUNTERSPELL_EXPLOSION,
1445  THIN_EXPLOSION,
1446  TELEPORT,
1447  SMOKE_BLAST,
1448  DAMAGE_POOF,
1449  LIGHTNING,
1450  ENERGY_BOLT,
1451  CHAIN_LIGHTNING_BOLT,
1452  DRAIN_MANA,
1453  CHARM,
1454  GREATER_HEAL,
1455  MAGIC,
1456  SPARK_EXPLOSION,
1457  DEATH_RAY,
1458  SENTRY_RAY,
1459  RICOCHET,
1460  JIGGLE,
1461  GREEN_BOLT,
1462  GREEN_EXPLOSION,
1463  WHITE_FLASH,
1464  GENERATING_MAP,
1465  ASSEMBLING_MAP,
1466  POPULATING_MAP,
1467  DURATION_SPELL,
1468  DELTAZ_SPELL_START,
1469  TURN_UNDEAD,
1470  ARROW_TRAP,
1471  VAMPIRISM,
1472  MANA_BOMB_CANCEL,
1473 };
enum Enchant

Enchants.

1479 {
1480  ENCHANT_INVISIBLE,
1481  ENCHANT_MOONGLOW,
1482  ENCHANT_BLINDED,
1483  ENCHANT_CONFUSED,
1484  ENCHANT_SLOWED,
1485  ENCHANT_HELD,
1486  ENCHANT_DETECTING,
1487  ENCHANT_ETHEREAL,
1488  ENCHANT_RUN,
1489  ENCHANT_HASTED,
1490  ENCHANT_VILLAIN,
1491  ENCHANT_AFRAID,
1492  ENCHANT_BURNING,
1493  ENCHANT_VAMPIRISM,
1494  ENCHANT_ANCHORED,
1495  ENCHANT_LIGHT,
1496  ENCHANT_DEATH,
1497  ENCHANT_PROTECT_FROM_FIRE,
1498  ENCHANT_PROTECT_FROM_POISON,
1499  ENCHANT_PROTECT_FROM_MAGIC,
1500  ENCHANT_PROTECT_FROM_ELECTRICITY,
1501  ENCHANT_INFRAVISION,
1502  ENCHANT_SHOCK,
1503  ENCHANT_INVULNERABLE,
1504  ENCHANT_TELEKINESIS,
1505  ENCHANT_FREEZE,
1506  ENCHANT_SHIELD,
1507  ENCHANT_REFLECTIVE_SHIELD,
1508  ENCHANT_CHARMING,
1509  ENCHANT_ANTI_MAGIC,
1510  ENCHANT_CROWN,
1511  ENCHANT_SNEAK
1512 };
enum Spell

Spell names.

1533 {
1534  SPELL_INVALID,
1535  SPELL_ANCHOR,
1536  SPELL_ARACHNAPHOBIA,
1537  SPELL_BLIND,
1538  SPELL_BLINK,
1539  SPELL_BURN,
1540  SPELL_CANCEL,
1541  SPELL_CHAIN_LIGHTNING_BOLT,
1542  SPELL_CHANNEL_LIFE,
1543  SPELL_CHARM,
1544  SPELL_CLEANSING_FLAME,
1545  SPELL_CLEANSING_MANA_FLAME,
1546  SPELL_CONFUSE,
1547  SPELL_COUNTERSPELL,
1548  SPELL_CURE_POISON,
1549  SPELL_DEATH,
1550  SPELL_DEATH_RAY,
1551  SPELL_DETECT_MAGIC,
1552  SPELL_DETONATE,
1553  SPELL_DETONATE_GLYPHS,
1554  SPELL_DISENCHANT_ALL,
1555  SPELL_TURN_UNDEAD,
1556  SPELL_DRAIN_MANA,
1557  SPELL_EARTHQUAKE,
1558  SPELL_LIGHTNING,
1559  SPELL_EXPLOSION,
1560  SPELL_FEAR,
1561  SPELL_FIREBALL,
1562  SPELL_FIREWALK,
1563  SPELL_FIST,
1564  SPELL_FORCE_FIELD,
1565  SPELL_FORCE_OF_NATURE,
1566  SPELL_FREEZE,
1567  SPELL_FUMBLE,
1568  SPELL_GLYPH,
1569  SPELL_GREATER_HEAL,
1570  SPELL_HASTE,
1571  SPELL_INFRAVISION,
1572  SPELL_INVERSION,
1573  SPELL_INVISIBILITY,
1574  SPELL_INVULNERABILITY,
1575  SPELL_LESSER_HEAL,
1576  SPELL_LIGHT,
1577  SPELL_CHAIN_LIGHTNING,
1578  SPELL_LOCK,
1579  SPELL_MARK,
1580  SPELL_MARK_1,
1581  SPELL_MARK_2,
1582  SPELL_MARK_3,
1583  SPELL_MARK_4,
1584  SPELL_MAGIC_MISSILE,
1585  SPELL_SHIELD,
1586  SPELL_METEOR,
1587  SPELL_METEOR_SHOWER,
1588  SPELL_MOONGLOW,
1589  SPELL_NULLIFY,
1590  SPELL_MANA_BOMB,
1591  SPELL_PHANTOM,
1592  SPELL_PIXIE_SWARM,
1593  SPELL_PLASMA,
1594  SPELL_POISON,
1595  SPELL_PROTECTION_FROM_ELECTRICITY,
1596  SPELL_PROTECTION_FROM_FIRE,
1597  SPELL_PROTECTION_FROM_MAGIC,
1598  SPELL_PROTECTION_FROM_POISON,
1599  SPELL_PULL,
1600  SPELL_PUSH,
1601  SPELL_OVAL_SHIELD,
1602  SPELL_RESTORE_HEALTH,
1603  SPELL_RESTORE_MANA,
1604  SPELL_RUN,
1605  SPELL_SHOCK,
1606  SPELL_SLOW,
1607  SPELL_SMALL_ZAP,
1608  SPELL_STUN,
1609  SPELL_SUMMON_BAT,
1610  SPELL_SUMMON_BLACK_BEAR,
1611  SPELL_SUMMON_BEAR,
1612  SPELL_SUMMON_BEHOLDER,
1613  SPELL_SUMMON_BOMBER,
1614  SPELL_SUMMON_CARNIVOROUS_PLANT,
1615  SPELL_SUMMON_ALBINO_SPIDER,
1616  SPELL_SUMMON_SMALL_ALBINO_SPIDER,
1617  SPELL_SUMMON_EVIL_CHERUB,
1618  SPELL_SUMMON_EMBER_DEMON,
1619  SPELL_SUMMON_GHOST,
1620  SPELL_SUMMON_GIANT_LEECH,
1621  SPELL_SUMMON_IMP,
1622  SPELL_SUMMON_MECHANICAL_FLYER,
1623  SPELL_SUMMON_MECHANICAL_GOLEM,
1624  SPELL_SUMMON_MIMIC,
1625  SPELL_SUMMON_OGRE,
1626  SPELL_SUMMON_OGRE_BRUTE,
1627  SPELL_SUMMON_OGRE_WARLORD,
1628  SPELL_SUMMON_SCORPION,
1629  SPELL_SUMMON_SHADE,
1630  SPELL_SUMMON_SKELETON,
1631  SPELL_SUMMON_SKELETON_LORD,
1632  SPELL_SUMMON_SPIDER,
1633  SPELL_SUMMON_SMALL_SPIDER,
1634  SPELL_SUMMON_SPITTING_SPIDER,
1635  SPELL_SUMMON_STONE_GOLEM,
1636  SPELL_SUMMON_TROLL,
1637  SPELL_SUMMON_URCHIN,
1638  SPELL_SUMMON_WASP,
1639  SPELL_SUMMON_WILLOWISP,
1640  SPELL_SUMMON_WOLF,
1641  SPELL_SUMMON_BLACK_WOLF,
1642  SPELL_SUMMON_WHITE_WOLF,
1643  SPELL_SUMMON_ZOMBIE,
1644  SPELL_SUMMON_VILE_ZOMBIE,
1645  SPELL_SUMMON_DEMON,
1646  SPELL_SUMMON_LICH,
1647  SPELL_SUMMON_DRYAD,
1648  SPELL_SUMMON_URCHIN_SHAMAN,
1649  SPELL_SWAP,
1650  SPELL_TAG,
1651  SPELL_TELEPORT_OTHER_TO_MARK_1,
1652  SPELL_TELEPORT_OTHER_TO_MARK_2,
1653  SPELL_TELEPORT_OTHER_TO_MARK_3,
1654  SPELL_TELEPORT_OTHER_TO_MARK_4,
1655  SPELL_TELEPORT_POP,
1656  SPELL_TELEPORT_TO_MARK_1,
1657  SPELL_TELEPORT_TO_MARK_2,
1658  SPELL_TELEPORT_TO_MARK_3,
1659  SPELL_TELEPORT_TO_MARK_4,
1660  SPELL_TELEPORT_TO_TARGET,
1661  SPELL_TELEKINESIS,
1662  SPELL_TOXIC_CLOUD,
1663  SPELL_TRIGGER_GLYPH,
1664  SPELL_VAMPIRISM,
1665  SPELL_VILLAIN,
1666  SPELL_WALL,
1667  SPELL_WINK,
1668  SPELL_SUMMON_CREATURE,
1669  SPELL_MARK_LOCATION,
1670  SPELL_TELEPORT_TO_MARKER
1671 };
enum Subclass

Subclass names.

1677 {
1678  HELMET,
1679  SHIELD,
1680  BREASTPLATE,
1681  ARM_ARMOR,
1682  PANTS,
1683  BOOTS,
1684  SHIRT,
1685  LEG_ARMOR,
1686  BACK,
1687  FLAG,
1688  QUIVER,
1689  CROSSBOW,
1690  ARROW,
1691  BOLT,
1692  CHAKRAM,
1693  SHURIKEN,
1694  SWORD,
1695  LONG_SWORD,
1696  GREAT_SWORD,
1697  MACE,
1698  OGRE_AXE,
1699  HAMMER,
1700  STAFF,
1701  STAFF_SULPHOROUS_FLARE,
1702  STAFF_SULPHOROUS_SHOWER,
1703  STAFF_LIGHTNING,
1704  STAFF_FIREBALL,
1705  STAFF_TRIPLE_FIREBALL,
1706  STAFF_FORCE_OF_NATURE,
1707  STAFF_DEATH_RAY,
1708  STAFF_OBLIVION_HALBERD,
1709  STAFF_OBLIVION_HEART,
1710  STAFF_OBLIVION_WIERDLING,
1711  STAFF_OBLIVION_ORB,
1712  SMALL_MONSTER,
1713  MEDIUM_MONSTER,
1714  LARGE_MONSTER,
1715  SHOPKEEPER,
1716  NPC,
1717  FEMALE_NPC,
1718  UNDEAD,
1719  MONITOR,
1720  MIGRATE,
1721  IMMUNE_POISON,
1722  IMMUNE_FIRE,
1723  IMMUNE_ELECTRICITY,
1724  IMMUNE_FEAR,
1725  BOMBER,
1726  NO_TARGET,
1727  NO_SPELL_TARGET,
1728  HAS_SOUL,
1729  WARCRY_STUN,
1730  LOOK_AROUND,
1731  WOUNDED_NPC,
1732  SIMPLE,
1733  APPLE,
1734  POTION,
1735  HEALTH_POTION,
1736  MANA_POTION,
1737  CURE_POISON_POTION,
1738  MUSHROOM,
1739  HASTE_POTION,
1740  INVISIBILITY_POTION,
1741  SHIELD_POTION,
1742  FIRE_PROTECT_POTION,
1743  SHOCK_PROTECT_POTION,
1744  POISON_PROTECT_POTION,
1745  INVULNERABILITY_POTION,
1746  INFRAVISION_POTION,
1747  VAMPIRISM_POTION,
1748  HEAVY,
1749  LAVA,
1750  GATE,
1751  VISIBLE_OBELISK,
1752  INVISIBLE_OBELISK,
1753  TECH,
1754  LOTD,
1755  USEABLE,
1756  CHEST_NW,
1757  CHEST_NE,
1758  CHEST_SE,
1759  CHEST_SW,
1760  STONE_DOOR,
1761  SPELL_BOOK,
1762  FIELD_GUIDE,
1763  ABILITY_BOOK,
1764  MISSILE_COUNTERSPELL,
1765  MAGIC,
1766  GENERATOR_NW,
1767  GENERATOR_NE,
1768  GENERATOR_SE,
1769  GENERATOR_SW,
1770  QUEST_EXIT,
1771  QUEST_WARP_EXIT,
1772  FLESH,
1773  CLOTH,
1774  ANIMAL_HIDE,
1775  WOOD,
1776  METAL,
1777  STONE,
1778  EARTH,
1779  LIQUID,
1780  GLASS,
1781  PAPER,
1782  SNOW,
1783  MUD,
1784  MAGIC,
1785  DIAMOND,
1786  NONE,
1787 };

Function Documentation

void AggressionLevel ( int  id,
float  level 
)

Set creature's aggression level.

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

Parameters
idan object id
levelaggression level
void Attack ( int  id,
int  target 
)

Attack an object.

Parameters
idan object id
targetan object id
void AudioEvent ( string  audio,
object  waypoint 
)

Play an audio event at a location.

Parameters
audioa audio event name AudioEvent
waypointa waypoint object
void AutoSave ( )

Trigger an autosave. Only solo games.

int AwardSpell ( int  id,
string  spell 
)

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.

Parameters
idan object id
spella spell name Spell
Returns
success as TRUE or FALSE
void BecomeEnemy ( int  id)

Unset object as pet of host.

Parameters
idan object id
void BecomePet ( int  id)

Set object as pet of host.

Parameters
idan object id
void Blind ( )

Blind the host.

void CancelDialog ( int  id)

Cancel a conversation with object.

Parameters
idan object id
int CancelTimer ( int  id)

Cancel a timer.

Parameters
ida timer id
Returns
success as TRUE or FALSE
void CastSpellLocationLocation ( string  spell,
float  x1,
float  y1,
float  x2,
float  y2 
)

Casts a spell from source to target.

Parameters
spella spell name Spell
x1source x coordinate
y1source y coordinate
x2target x coordinate
y2target y coordinate
void CastSpellLocationObject ( string  spell,
float  x,
float  y,
int  target 
)

Casts a spell from source to target.

Parameters
spella spell name Spell
xsource x coordinate
ysource y coordinate
targetan object id
void CastSpellObjectLocation ( string  spell,
int  source,
float  x,
float  y 
)

Casts a spell from source to target.

Parameters
spella spell name Spell
sourcean object id
xtarget x coordinate
ytarget y coordinate
void CastSpellObjectObject ( string  spell,
int  source,
int  target 
)

Casts a spell from source to target.

Example usage: CastSpellOn("SPELL_DEATH_RAY", Object("CruelDude"), GetHost())

Parameters
spella spell name Spell
sourcean object id
targetan object id
void ChangeGold ( int  id,
int  delta 
)

Change amount of gold for player object.

Parameters
idan object id
deltaamount to add (can be negative)
void ChangeScore ( int  id,
int  score 
)

Change player object's score.

Parameters
idan object id
scorescore delta
void Chat ( int  id,
string  message 
)

Cause an object to say a localized string.

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

Parameters
idan object id
messagea string
void ChatTimer ( int  id,
string  message,
int  duration 
)

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

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

Parameters
idan object id
messagea string
durationin frames
void ChatTimerSeconds ( int  id,
string  message,
int  duration 
)

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

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

Parameters
idan object id
messagea string
durationin seconds
void ClearMessages ( int  id)

Clear messages on player's screen.

Parameters
idan object id
void ClearOwner ( int  id)

Clear the owner of an object.

Parameters
idan object id
int CreateMover ( int  id,
object  waypoint,
float  speed 
)

Creates a Mover for an object.

Parameters
idan object id
waypointdestination waypoint
speedmove speed
Returns
object id of new Mover
int CreateObject ( string  type,
object  waypoint 
)

Create an object at a location.

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

Example usage: int spider = CreateObject("SmallAlbinoSpider", Waypoint("SpiderHole"))

Parameters
typean object type string
waypointa waypoint object
Returns
an object id
void CreatureFollow ( int  id,
int  target 
)

Cause creature to follow an object.

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

Parameters
idan object id
targetan object id
void CreatureGroupFollow ( object  objectGroup,
int  target 
)

Cause 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.

Parameters
objectGroupan object group object
targetan object id
void CreatureGroupGuard ( object  objectGroup,
float  x1,
float  y1,
float  x2,
float  y2,
float  distance 
)

Cause creatures in a group to guard a location.

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

Parameters
objectGroupan object group object
x1x coordinate to guard from
y1y coordinate to guard from
x2x coordinate to watch
y2y coordinate to watch
distancedistance from (x2,y2) to attack
void CreatureGroupHunt ( object  objectGroup)

Cause creatures in a group to hunt.

Parameters
objectGroupan object group object
void CreatureGroupIdle ( object  objectGroup)

Cause creatures in a group to idle.

Parameters
objectGroupan object group object
void CreatureGuard ( int  id,
float  x1,
float  y1,
float  x2,
float  y2,
float  distance 
)

Cause 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.

Parameters
idan object id
x1x coordinate to guard from
y1y coordinate to guard from
x2x coordinate to watch
y2y coordinate to watch
distancedistance from (x2,y2) to attack
void CreatureHunt ( int  id)

Cause creature to hunt.

Parameters
idan object id
void CreatureIdle ( int  id)

Cause creature to idle.

Parameters
idan object id
int CurrentHealth ( int  id)

Get object's health.

Parameters
idan object id
Returns
health
void Damage ( int  target,
int  source,
int  amount,
int  type 
)

Damages an object.

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

Parameters
targetan object id that receives damage
sourcean object id as source of damange
amountamount of damage
typetype of damange DamageType
void DeathScreen ( int  which)

Show death screen.

Parameters
whichthe screen to show (1 - 11)
void Delete ( int  id)

Delete an object.

Parameters
idan object id
void DeleteObjectTimer ( int  id,
int  delay 
)

Delete object after a delay.

Parameters
idan object id
delaynumber of frames
void DestroyChat ( int  id)

Destroys object's speech bubble.

Parameters
idan object id
void DestroyEveryChat ( )

Destroys all speech bubbles.

float Distance ( float  x1,
float  y1,
float  x2,
float  y2 
)

Calculate distance between two locations.

Parameters
x1
y1
x2
y2
Returns
distance
int Drop ( int  id,
int  item 
)

Cause object to drop an item.

Parameters
idan object id
iteman object id to drop
Returns
success as TRUE or FALSE
void Effect ( string  effect,
float  x1,
float  y1,
float  x2,
float  y2 
)

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.

Parameters
effectan effect name Effect
x1
y1
x2
y2
void Enchant ( int  id,
string  enchant,
float  duration 
)

Grant object an enchantment.

This will grant an object an enchantment of a specified duration. If the enchantment name is incorrect, the game may crash.

Parameters
idan object id
enchantan enchantment name Enchant
durationin seconds
void EnchantOff ( int  id,
string  enchant 
)

Remove enchant from an object.

Parameters
idan object id
enchantan enchant name Enchant
void EndGame ( int  type)

End of game.

Parameters
typeone of 0=Warrior, 1=Wizard, 2=Conjurer
string FloatToString ( float  number)

Convert a float to a string.

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

Parameters
numbera float number
Returns
a string
int FrameTimer ( int  frames,
function  callback 
)

Create a timer with delay in frames.

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

Parameters
framesdelay
callbacka script function
Returns
timer id
int FrameTimerWithArg ( int  frames,
any  argument,
function  callback 
)

Create 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.

Parameters
framesdelay
argumentfunction argument
callbacka script function
Returns
timer id
void Frozen ( int  id,
int  frozen 
)

Set frozen status of an object.

Parameters
idan object id
frozeneither TRUE (1) or FALSE (0)
int GetAnswer ( int  id)

Get answer from conversation.

Parameters
idan object id
Returns
result (0=Goodbye, 1=Yes, 2=No)
int GetCaller ( )

Get OTHER if valid.

Returns
an object id, or 0
int GetCharacterData ( int  idx)

Get character data.

FIXME

Get information about the loaded character.

Parameters
idxwhat to return (0-5)
Returns
value
int GetDirection ( int  id)

Get object direction.

See the description of LookWithAngle.

Parameters
ida object id
Returns
int GetElevatorStatus ( int  id)

Get elevator status.

Parameters
idan object id
Returns
status, or -1 if invalid object
int GetGold ( int  id)

Get amount of gold for player object.

Parameters
idan object id
Returns
amount of gold
int GetHolder ( int  item)

Get the holder of an item.

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

Parameters
iteman object id
Returns
an object id of the holder
int GetHost ( )

Get host's player object.

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

Returns
an object id
int GetLastItem ( int  id)

Get 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.

Parameters
idan object id
Returns
an object id, or 0
float GetObjectX ( int  id)

Get object X coordinate.

Parameters
idan object id
Returns
x coordinate
float GetObjectY ( int  id)

Get object Y coordinate.

Parameters
idan object id
Returns
y coordinate
float GetObjectZ ( int  id)

Get object Z coordinate.

Parameters
ida object id
Returns
z coordinate
int GetPreviousItem ( int  id)

Get 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.

Parameters
idan object id
Returns
an object id, or 0
int GetQuestStatus ( string  name)

Get quest status (int).

Parameters
namequest name
Returns
quest status
float GetQuestStatusFloat ( string  name)

Get quest status (int).

Parameters
namequest name
Returns
quest status
int GetScore ( int  id)

Get player object's score.

Parameters
idan object id
Returns
score
int GetTrigger ( )

Get SELF if valid.

Returns
an object id, or 0
float GetWaypointX ( object  waypoint)

Get waypoint X coordinate.

Parameters
waypointa waypoint object
Returns
x coordinate
float GetWaypointY ( object  waypoint)

Get waypoint Y coordinate.

Parameters
waypointa waypoint object
Returns
y coordinate
void GiveXp ( int  id,
float  xp 
)

Grant experience to a player.

Parameters
idan object id
xpexperience to gain
void GoBackHome ( int  id)

Cause object to move to its starting location.

Parameters
idan object id
void GroupAggressionLevel ( object  objectGroup,
float  level 
)

Set group of creature's aggression level.

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

Parameters
objectGroupan object group object
levelaggression level
void GroupAttack ( object  objectGroup,
int  target 
)

Attack an object.

Parameters
objectGroupan object group object
targetan object id
void GroupAwardSpell ( object  objectGroup,
string  spell 
)

Award 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.

Parameters
objectGroupan object group object
spella spell name Spell
void GroupCreateMover ( object  objectGroup,
object  waypoint,
float  speed 
)

Creates a Mover for every object in a group.

Parameters
objectGroupan object group object
waypointdestination waypoint
speedmove speed
void GroupDamage ( object  targetGroup,
int  source,
int  amount,
int  type 
)

Damages objects in a group.

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

Parameters
targetGroupan object group object that receives damage
sourcean object id as source of damange
amountamount of damage
typetype of damange DamageType
void GroupDelete ( object  objectGroup)

Delete objects in a group.

Parameters
objectGroupan object group object
void GroupEnchant ( int  id,
string  enchant,
float  duration 
)

Grant objects in a group an enchantment.

This will grant the objects in a group an enchantment of a specified duration. If the enchantment name is incorrect, the game may crash.

Parameters
idan object id
enchantan enchantment name Enchant
durationin seconds
void GroupHitFarLocation ( object  objectGroup,
float  x,
float  y 
)

Ranged attack a location.

Parameters
objectGroupan object group object
xx coordinate
yy coordinate
void GroupHitLocation ( object  objectGroup,
float  x,
float  y 
)

Melee attack a location.

Parameters
objectGroupan object group object
xx coordinate
yy coordinate
int GroupIsOwnedBy ( int  id,
object  target 
)

Get whether any object in target group is owned by object.

Parameters
idan object id
targetan object group object
Returns
TRUE or FALSE
int GroupIsOwnedByAny ( object  objectGroup,
object  target 
)

Get whether any object in target is owned by any object in the group.

Parameters
objectGroupan object group object
targetan object group object
Returns
TRUE or FALSE
void GroupLookAtDirection ( object  objectGroup,
int  direction 
)

Cause objects in a group to look in a direction.

Parameters
objectGroupan object group object
directionsee Direction
void GroupMove ( object  objectGroup,
object  waypoint 
)

Move 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.

Parameters
objectGroupan object group object
waypointa waypoint object
void GroupPauseObject ( object  objectGroup,
int  duration 
)

Pause objects of a group temporarily.

Parameters
objectGroupan object group object
durationnumber of frames
void GroupResumeLevel ( object  objectGroup,
float  percent 
)

Set when creature resumes due to health.

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

Parameters
objectGroupan object group object
percenthealth ratio (0.0 - 1.0)
void GroupRetreatLevel ( object  objectGroup,
float  percent 
)

Set when creature retreats due to low health.

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

Parameters
objectGroupan object group object
percentlow health ratio (0.0 - 1.0)
void GroupRunAway ( object  objectGroup,
int  target,
int  duration 
)

Cause creatures to run away from target.

Parameters
objectGroupan object group object
targetan object id to run away from
durationnumber of frames
void GroupSetOwner ( int  owner,
object  targets 
)

Set the owner of objects in a group.

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

Parameters
owneran object id
targetsan object group object
void GroupSetOwners ( object  owners,
object  targets 
)

Set the objects in a group as owners of target.

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

Parameters
ownersan object group object
targetsan object group object
void GroupSetRoamFlag ( object  objectGroup,
int  flags 
)

Set roaming flags.

Parameters
objectGroupan object group object
flagsa 8-bit value (default is 0x80)
void GroupWalk ( object  objectGroup,
float  x,
float  y 
)

Causes objects in a group to walk to a location.

Parameters
objectGroupan object group object
xx coordinate
yy coordinate
void GroupWander ( object  objectGroup)

Cause objects in a group to wander.

Parameters
objectGroupan object group object
int HasClass ( int  id,
string  className 
)

Get whether object has a class.

Parameters
idan object id
classNamea class name Class
Returns
TRUE or FALSE
int HasEnchant ( int  id,
string  enchant 
)

Get whether object has an enchant.

Parameters
idan object id
enchantan enchant name Enchant
Returns
TRUE or FALSE
int HasItem ( int  holder,
int  item 
)

Get whether the item is in the object's inventory.

Parameters
holderan object id with inventory to check
iteman object id of item to check for
Returns
TRUE or FALSE
int HasSubclass ( int  id,
string  subclass 
)

Get 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).

Parameters
idan object id
subclassa subclass name
Returns
TRUE or FALSE
void HitFarLocation ( int  id,
float  x,
float  y 
)

Ranged attack a location.

Parameters
idan object id
xx coordinate
yy coordinate
void HitLocation ( int  id,
float  x,
float  y 
)

Melee attack a location.

Parameters
idan object id
xx coordinate
yy coordinate
void ImmediateBlind ( )

Immediately blind the host.

See also
Blind
string IntToString ( int  number)

Convert an integer to a string.

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

Parameters
numbera integer number
Returns
a string
int IsAttackedBy ( int  id1,
int  id2 
)

Get whether object1 is being attacked by object2.

Parameters
id1an object id
id2an object id
int IsCaller ( int  id)

Get whether object is OTHER.

Parameters
idan object id
Returns
TRUE or FALSE
int IsCrown ( int  id)

Get whether object is a Crown.

Parameters
idan object id
Returns
TRUE or FALSE
int IsGameBall ( int  id)

Get whether object is a GameBall.

Parameters
idan object id
Returns
TRUE or FALSE
int IsLocked ( int  id)

Get whether object is locked.

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

Parameters
idan object id
Returns
locked state as TRUE or FALSE
int IsObjectOn ( int  id)

Get whether object is enabled.

Parameters
idan object id
Returns
enabled state as TRUE or FALSE
int IsOwnedBy ( int  id,
int  target 
)

Get whether target is owned by object.

Parameters
idan object id
targetan object id
Returns
TRUE or FALSE
int IsOwnedByAny ( object  objectGroup,
int  target 
)

Get whether target is owned by any object in the group.

Parameters
objectGroupan object group object
targetan object id
Returns
TRUE or FALSE
int IsSummoned ( int  id)

Gets whether object is a summoned creature.

Parameters
idan object id
Returns
TRUE or FALSE
int IsTalking ( )

Get whether host is talking.

Returns
TRUE or FALSE
int IsTrading ( )

Get whether the host is currently trading.

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

Returns
TRUE or FALSE
int IsTrigger ( int  id)

Get whether object is SELF.

Parameters
idan object id
Returns
TRUE or FALSE
int IsVisibleTo ( int  object1,
int  object2 
)

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.

Parameters
object1an object id
object2an object id
Returns
TRUE or FALSE
int IsWaypointOn ( object  waypoint)

Get whether waypoint is enabled.

Parameters
waypointa waypoint object
Returns
enabled state as TRUE or FALSE
void JournalDelete ( int  id,
string  message 
)

Delete 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.

Parameters
idan object id of player, or 0 for all players
messageentry to delete
void JournalEdit ( int  id,
string  message,
int  type 
)

Edit 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.

Parameters
idan object id of player, or 0 for all players
messageentry to edit
typesee description of JournalEntry
void JournalEntry ( int  id,
string  message,
int  type 
)

Add entry to player's journal.

This will add an entry to a player object's journal. The string can be any string, but should be less than 64 characters. The string is 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.

Parameters
idan object id of player, or 0 for all players
messagestring less than 64 characters
typesee description
void LockDoor ( int  id)

Lock a door.

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

Parameters
idan object id
void LookAtDirection ( int  id,
int  direction 
)

Cause object to look in a direction.

Parameters
idan object id
directionsee Direction
void LookAtObject ( int  id,
int  target 
)

Set direction of object so it is looking at another object.

Parameters
idan object id
targetan object id to look at
void LookWithAngle ( int  id,
int  angle 
)

Set 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.

Parameters
idan object id
anglea number between 0 and 255
void MakeEnemy ( int  id)

Unset object as friendly.

Parameters
idan object id
void MakeFriendly ( int  id)

Set object friendly with host.

Parameters
idan object id
int MaxHealth ( int  id)

Get object's maximum health.

Parameters
idan object id
Returns
max mealth
void Move ( int  id,
object  waypoint 
)

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.

Parameters
idan object id
waypointa waypoint object
void MoveObject ( int  id,
float  x,
float  y 
)

Set an object's location.

Parameters
idan object id
xx coordinate
yy coordinate
void MoveWaypoint ( object  waypoint,
float  x,
float  y 
)

Set a waypoint's location.

Parameters
waypointa waypoint object
xx coordinate
yy coordinate
void Music ( int  music,
int  volume 
)

Plays music.

Parameters
musicmusic id
volumenumber from 0 - 100
void MusicEvent ( )

TODO

void MusicPopEvent ( )

TODO

void MusicPushEvent ( )

TODO

void NoWallSound ( int  noWallSound)

Set no wall sound flag.

Parameters
noWallSoundeither TRUE (1) or FALSE (0)
int Object ( string  name)

Lookup an object by name.

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

Parameters
nameobject name
Returns
an object id
object ObjectGroup ( string  name)

Lookup object group by name.

Parameters
namea object group name
Returns
a object group object
void ObjectGroupOff ( object  objectGroup)

Disable objects in a group.

Parameters
objectGroupan object group object
void ObjectGroupOn ( object  objectGroup)

Enable objects in a group.

Parameters
objectGroupan object group object
void ObjectGroupToggle ( object  objectGroup)

Toggle whether objects in group are disabled.

Parameters
objectGroupan object group object
void ObjectOff ( int  id)

Disable an object.

Parameters
idan object id
void ObjectOn ( int  id)

Enable an object.

Parameters
idan object id
void ObjectToggle ( int  id)

Toggle whether object is disabled.

Parameters
idan object id
void PauseObject ( int  id,
int  duration 
)

Pause an object temporarily.

Parameters
idan object id
durationnumber of frames
int Pickup ( int  id,
int  item 
)

Cause object to pickup an item.

Parameters
idan object id
iteman object id to pickup
Returns
success as TRUE or FALSE
void Print ( string  message)

Display a localized string.

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

Parameters
messagea string
void PrintToAll ( string  message)

Display a localized string to everyone.

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

Parameters
messagea string
void PushObject ( int  id,
float  magnitude,
float  x,
float  y 
)

Push 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.

Parameters
idan object id
magnitudeforce magnitude
xforce x coordinate
yforce y coordinate
void PushObjectTo ( int  id,
float  x,
float  y 
)

Push an object to a location.

Parameters
idan object id
xx coordinate
yy coordinate
void Raise ( int  id,
float  z 
)

Set an object's Z coordinate.

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

Parameters
idan object id
zz coordinate
void RaiseZombie ( int  id)

Raise a zombie. Also clears stay down state.

Parameters
idan object id
void RaiseZombieGroup ( object  objectGroup)

Raise a zombie. Also clears stay down state.

Parameters
objectGroupan object group object
int Random ( int  min,
int  max 
)

Random number (int).

Parameters
minminimum value
maxmaximum value
Returns
random value between min and max
float RandomFloat ( float  min,
float  max 
)

Random number (float).

Parameters
minminimum value
maxmaximum value
Returns
random value between min and max
void ResetQuestStatus ( string  name)

Delete 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?

Parameters
namequest name
void RestoreHealth ( int  id,
int  amount 
)

Restore object's health.

Parameters
idan object id
amountamount of health to restore
void ResumeLevel ( int  id,
float  percent 
)

Set when creature resumes due to health.

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

Parameters
idan object id
percenthealth ratio (0.0 - 1.0)
void RetreatLevel ( int  id,
float  percent 
)

Set when creature retreats due to low health.

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

Parameters
idan object id
percentlow health ratio (0.0 - 1.0)
void RunAway ( int  id,
int  target,
int  duration 
)

Cause creature to run away from target.

Parameters
idcreature's object id
targetan object id to run away from
durationnumber of frames
int SecondTimer ( int  seconds,
function  callback 
)

Create a timer with delay in seconds.

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

Parameters
secondsdelay
callbacka script function
Returns
timer id
int SecondTimerWithArg ( int  seconds,
any  argument,
function  callback 
)

Create 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.

Parameters
secondsdelay
argumentfunction argument
callbacka script function
Returns
timer id
void SetCallback ( int  id,
int  idx,
function  callback 
)

Set 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 = Deatch 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.

Parameters
idan object id
idxcallback index
callbacka script function
void SetDialog ( int  id,
string  type,
function  start,
function  end 
)

Setup 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.

Parameters
idan object id
typea conversation type string (NORMAL, NEXT, YESNO, YESNONEXT)
starta script function
enda script function
void SetHalberd ( int  upgrade)

Upgrade host's oblivion staff.

This will upgrade the oblivion staff. The upgrades are:

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

Parameters
upgradesee description
void SetOwner ( int  owner,
int  target 
)

Set 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.

Parameters
owneran object id
targetan object id
void SetOwners ( object  owners,
int  target 
)

Set the objects in a group as owners of target.

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

Parameters
ownersan object group object
targetan object id
void SetQuestStatus ( int  status,
string  name 
)

Set quest status (int).

Parameters
statusvalue to save
namequest name
void SetQuestStatusFloat ( float  status,
string  name 
)

Set quest status (float).

Parameters
statusvalue to save
namequest name
void SetRoamFlag ( int  id,
int  flags 
)

Set roaming flags.

Parameters
idan object id
flagsa 8-bit value (default is 0x80)
void SetShopkeeperText ( int  id,
string  text 
)

Set shopkeeper text.

Parameters
idan object id
texta string less than 32 characters
void StartDialog ( int  npc,
int  other 
)

Starts a conversation between two objects.

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

Parameters
npcan object id
otheran object id
void StartupScreen ( int  arg1)

Show startup screen to host.

Parameters
arg1
void StopScript ( any  value)

Exit current script function.

Parameters
valuethe function return value, if it is non-void
void StoryPic ( int  id,
string  name 
)

Assigns a picture to a conversation.

Parameters
idan object id
namea picture name
void TellStory ( string  audio,
string  story 
)

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: TellStory("SwordsmanHurt", "Con05:OgreTalk07")

Parameters
audioan audio event name that is usually "SwordsmanHurt"
storya story name
void TrapSpells ( int  id,
string  spell1,
string  spell2,
string  spell3 
)

Set spells on a bomber.

Parameters
idan object id
spell1a spell name, or NULL Spell
spell2a spell name, or NULL Spell
spell3a spell name, or NULL Spell
void UnBlind ( )

Unblind the host.

int Unknownb8 ( int  id)

TODO

Parameters
idan object id
Returns
TRUE or FALSE
int Unknownb9 ( int  id)

TODO

Parameters
idan object id
Returns
TRUE or FALSE
void Unknownc4 ( )

TODO

void UnlockDoor ( int  id)

Unlock a door.

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

Parameters
idan object id
void Walk ( int  id,
float  x,
float  y 
)

Causes an object to walk to a location.

Parameters
idan object id
xx coordinate
yy coordinate
object Wall ( int  x,
int  y 
)

Get a pointer to a wall by its wall coordinates.

Parameters
xwall coordinate X
ywall coordinate Y
Returns
wall object
void WallBreak ( object  wall)

Breaks a wall.

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

Parameters
walla wall object
void WallClose ( object  wall)

Close a wall.

Parameters
walla wall object
object WallGroup ( string  name)

Lookup wall group by name.

Parameters
namea wall group name
Returns
a wall group object
void WallGroupBreak ( object  wallGroup)

Breaks walls in a group.

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

Parameters
wallGroupa wall group object
void WallGroupClose ( object  wallGroup)

Close walls in a group.

Parameters
wallGroupa wall group object
void WallGroupOpen ( object  wallGroup)

Open walls in a group.

Parameters
wallGroupa wall group object
void WallGroupToggle ( object  wallGroup)

Toggle walls in a group.

This will toggle a wall group between opened and closed.

Parameters
wallGroupa wall group object
void WallOpen ( object  wall)

Open a wall.

Parameters
walla wall object
void WallToggle ( object  wall)

Toggle a wall.

This will toggle wall between opened and closed.

Parameters
walla wall object
void Wander ( int  id)

Cause an object to wander.

This will cause a NPC or monster to wander.

Parameters
idan object id
object Waypoint ( string  name)

Lookup waypoint by name.

Parameters
namea waypoint name
Returns
a waypoint object
object WaypointGroup ( string  name)

Lookup waypoint group by name.

Parameters
namea waypoint group name
Returns
a waypoint group object
void WayPointGroupOff ( object  waypointGroup)

Disable waypoints in a group.

Parameters
waypointGroupa waypoint group object
void WayPointGroupOn ( object  waypointGroup)

Enable waypoints in a group.

Parameters
waypointGroupa waypoint group object
void WayPointGroupToggle ( object  waypointGroup)

Toggle whether objects in group are disabled.

Parameters
waypointGroupa waypoint group object
void WayPointOff ( object  waypoint)

Disable a waypoint.

Parameters
waypointa waypoint object
void WayPointOn ( object  waypoint)

Enable a waypoint.

Parameters
waypointa waypoint object
void WayPointToggle ( object  waypoint)

Toggle whether waypoint is disabled.

Parameters
waypointa waypoint object
void WideScreen ( int  value)
Parameters
valueTRUE or FALSE
void ZombieGroupStayDown ( object  objectGroup)

Set group of zombies to stay down.

Parameters
objectGroupan object group object
void ZombieStayDown ( int  id)

Set zombie to stay down.

Parameters
idan object id

Variable Documentation

const int FALSE = 0

FALSE value.

const int OTHER = -1

OTHER object id.

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

const int SELF = -2

SELF object id.

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

const int TRUE = 1

TRUE value.