modulepackage
4.19.1
Repository: https://github.com/noxworld-dev/noxscript.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AsObj looks up an Obj for a given handle.
AsObjGroup looks up a ObjGroup for a given handle.
AsTimer looks up a Timer for a given handle.
AsWall looks up a WallObj for a given handle.
AsWallGroup looks up a WallGroupObj for a given handle.
AsWaypoint looks up a WaypointObj for a given handle.
AsWaypointGroup looks up a WaypointGroupObj for a given handle.
AudioEvent play an audio event at a location.
AutoSave triggers an autosave.
BecomeEnemy unsets object as pet of host.
BecomePet sets object as pet of host.
Blind the host.
CancelDialog cancels a conversation with object.
CastSpell casts a spell from source to target.
CastSpellLvl casts a spell from source to target with a given level.
ClearMessages clears messages on player's screen.
CreateObject creates an object given a type and a starting location.
DeathScreen shows death screen to host.
DestroyEveryChat destroys all speech bubbles.
Effect triggers an effect from point p1 to p2.
EndGame end of game for a specific class.
FindAllObjects is similar to FindObjects, but returns all objects as an array/slice.
FindAllObjectsIn iterates over objects, and returns all matched objects as an array/slice.
FindAllWalls is similar to FindWalls, but returns all walls as an array/slice.
FindAllWallsIn iterates over walls, and returns all matched walls as an array/slice.
FindClosestObject searches the map for closest object that matches all conditions.
FindClosestObjectIn searches the set for closest object that matches all conditions.
FindClosestWall searches the map for closest wall that matches all conditions.
FindClosestWallIn searches the set for closest wall that matches all conditions.
FindObject searches the map for any object that matches all conditions.
FindObjectIn searches the set for any object that matches all conditions.
FindObjects calls fnc for all map objects matching all the conditions.
FindWall searches the map for any wall that matches all conditions.
FindWallIn searches the set for any walls that matches all conditions.
FindWalls calls fnc for all map walls matching all the conditions.
Frame returns current server frame number.
FrameRate returns current server update rate (aka server frame rate).
Frames returns duration in game frames.
GetAnswer gets answer from conversation.
GetCaller returns object that was the target of an event, if valid.
GetCharacterData gets information about the loaded character.
GetHost gets host's player object.
GetQuestStatus gets quest status (int).
GetQuestStatusFloat gets quest status (float).
GetRuntime loads Implementation from the context.
GetTrigger returns object which triggered an event, if valid.
HostPlayer gets host player.
ImmediateBlind immediately blinds the host.
Infinite returns an infinite duration.
IsCaller checks whether object is a target of an event.
IsCrown gets whether object is a Crown.
IsGameBall gets whether object is a GameBall.
IsSummoned gets whether object is a summoned creature.
IsTalking gets whether host is talking.
IsTrading returns whether the host is currently talking to shopkeeper.
IsTrigger checks whether object triggered an event.
JournalDelete deletes entry from player's journal.
JournalDeleteStr deletes entry from player's journal.
JournalEdit edits entry in player's journal.
JournalEditStr edits entry in player's journal.
JournalEntry adds entry to player's journal.
JournalEntryStr adds entry to player's journal.
MakeEnemy unsets object as friendly.
MakeFriendly sets object friendly with host.
Music plays music.
No description provided by the author
No description provided by the author
No description provided by the author
NewTimer creates a timer that calls the given script function after a given delay.
NewTrap creates a trap at a given point.
NewTrapAdv creates a trap at a given point.
NewWaypoint creates a new waypoint with a given name and position.
Now returns relative time from the server/map start.
NoWallSound enables or disables wall sounds.
NowWithSource returns current timestamp of the time source.
Object looks up an object by name.
ObjectGroup looks up object group by name.
ObjectType looks up an object type by name.
ObjectTypeByInd looks up an object type by index.
OnChat registers a callback function that will be called when each chat message is received.
OnEachFrame registers a callback function that will be called each N-th server frame.
OnFrame registers a callback function that will be called each server frame.
OnMapEvent registers a callback function that will be called each server map event.
OnPlayerDeath registers a callback function that will be called when player dies.
OnPlayerJoin registers a callback function that will be called when player joins the server.
OnPlayerLeave registers a callback function that will be called when player leaves the server.
Players returns a list of active players.
Print displays a localized string on the screen of Other.
PrintStr displays a string on the screen of Other.
PrintStrToAll displays a string to everyone.
PrintToAll displays a localized string to everyone.
No description provided by the author
No description provided by the author
Random generates random int.
RandomFloat generates random float.
ResetQuestStatus deletes a quest status.
RGB creates an RGB color.
RGBA creates an RGBA color.
Runtime returns implementation of all the accessible functions as an interface.
Seconds returns duration in seconds.
SetDialog sets up a conversation with object.
SetHalberd upgrades host's oblivion staff.
SetQuestStatus sets quest status (int).
SetQuestStatusFloat sets quest status (float).
SetRuntime is used by the script host to bind runtime for the script package.
SetShopkeeperText sets localized shopkeeper text.
SetShopkeeperTextStr sets shopkeeper text.
StartDialog starts a conversation between two objects.
StartupScreen shows startup screen to host.
StopScript exits current script function.
Store returns a global storage with a given type.
StoryPic assigns a picture to a conversation.
Teams return current teams.
TellStory causes the telling of a story.
TellStoryStr causes the telling of a story.
Time returns duration given time.Duration.
UnBlind the host.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Wall gets a wall by its grid coordinates.
WallGroup lookups wall group by name.
Waypoint looks up waypoint by name.
WaypointGroup looks up waypoint group by name.
Waypoints returns a list of all waypoints.
WideScreen enables or disables cinematic wide-screen effect.
WithRuntime stores Implementation in the context.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
green text, no sound.
green text.
grey text with completed label.
red text with quest label.
white text.
yellow text with hint label.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Duration for script events.
InCirclef filters objects that are inside a circle on the map.
InRectf filters objects that are inside a given map rectangle.
NOT matches an object if any other condition returns false.
Persistent returns a persistent storage with a given name.
Session is a game session storage with a given name.
No description provided by the author
# Interfaces
Game is an optional interface for the engine that exposes NoxScript runtime.
No description provided by the author
Implementation of the script runtime.
No description provided by the author
ObjCond checks if object matches a certain condition.
No description provided by the author
No description provided by the author
No description provided by the author
ObjSearcher is an interface for iterating and filtering over objects.
No description provided by the author
No description provided by the author
Positioner is an interface for objects that have position on the map.
No description provided by the author
No description provided by the author
Team is an interface for game teams.
No description provided by the author
No description provided by the author
TimeSource is an interface for getting relative time.
WallCond checks if wall matches a certain condition.
No description provided by the author
WallGroupObj is a group of walls.
No description provided by the author
WallObj is a pointer to a wall.
WallSearcher is an interface for iterating and filtering over walls.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
AND matches an object if all conditions match an object.
ChatFunc is a callback type for OnChat.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EqualClass checks that class of object exactly matches this value.
FrameFunc is a callback type for OnFrame.
No description provided by the author
No description provided by the author
HasAllClasses checks that class of object matches all of provided classes.
HasAllObjFlags checks that object's flags match all of provided flags.
HasClass checks that class of object matches any of provided classes.
HasObjFlags checks that object's flags match any of provided flags.
HasTeam checks that object matches any of provided teams.
HasType checks that object matches any of provided types.
HasTypeName checks that object matches any of provided type names.
HasWallFlags checks that wall's flags match any of provided flags.
MapEvent is an event type for OnMapEvent function.
MapEventFunc is a callback type for OnMapEvent.
ObjCondFunc is a function that implements ObjCond.
No description provided by the author
Objects is a list of objects.
OR matches an object if any of the conditions matches an object.
PlayerDeathFunc is a callback type for OnPlayerDeath.
PlayerJoinFunc is a callback type for OnPlayerJoin.
PlayerLeaveFunc is a callback type for OnPlayerLeave.
No description provided by the author
No description provided by the author
StringID is an ID of a localized string in the string database.