ACS: Difference between revisions
DrinkyBird (talk | contribs) m (Sean moved page ACS Functions to ACS: This page is about more than the functions) |
DrinkyBird (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
This is an '''incomplete''' list of Zandronum-'''only''' ACS functions. See {{zdw2|Built-in_ACS_functions|here}} for a list of ZDoom-supported ACS functions. Note that not all of them are supported by Zandronum. | This is an '''incomplete''' list of Zandronum-'''only''' ACS functions. See {{zdw2|Built-in_ACS_functions|here}} for a list of ZDoom-supported ACS functions. Note that not all of them are supported by Zandronum. | ||
==Features== | |||
Zandronum supports [[Databases|databases]], powered by [http://sqlite.org/ SQLite]. | |||
==Script Types== | ==Script Types== |
Revision as of 15:00, 21 August 2016
This is an incomplete list of Zandronum-only ACS functions. See here for a list of ZDoom-supported ACS functions. Note that not all of them are supported by Zandronum.
Features
Zandronum supports databases, powered by SQLite.
Script Types
EVENT
scripts are executed when specific game events occur.
There are additional script types that can be appended to regular script types:
NET
scripts are server-side and can be executed by clients using the puke command.CLIENTSIDE
scripts client-side and can not be executed by the puke command.NET CLIENTSIDE
scripts are client-side and can be executed by the puke command.
In this example, when someone picks up the enemy item it will start this script on the Client side:
Script 1 PICKUP CLIENTSIDE { Print(s:"Someone got the flag!"); }
It is worth reading Clientside Scripting if you intend on using CLIENTSIDE scripts.
ACS Functions
AnnouncerSound
BeginDBTransaction
ConsoleCommand
ConsolePlayerNumber
CountDBResults
EndDBTransaction
FreeDBResults
GameType
GetDBEntries
GetDBEntry
GetDBEntryRank
GetDBEntryString
GetDBResultKeyString
GetDBResultValue
GetDBResultValueString
GetGameModeState
GetInvasionState
GetInvasionWave
GetPlayerAccountName
GetPlayerLivesLeft
GetTeamProperty
GetTimeProperty
(development version 3.0-150831-1814 and above only)IncrementDBEntry
IsMultiplayer
IsOneFlagCTF
KickFromGame
NamedRequestScriptPuke
PlayerArmorpoints
PlayerHealth
PlayerIsLoggedIn
PlayerIsSpectator
PlayerTeam
RequestScriptPuke
ResetMap
SetDBEntry
SetDBEntryString
SetPlayerLivesLeft
SortDBEntries
Strftime
(development version 3.0-150831-1814 and above only)SystemTime
(development version 3.0-150831-1814 and above only)
Deprecated
These functions are deprecated. They still work, but will be removed eventually. It is recommended you use more up to date functions.
- BlueCount (deprecated, see
GetTeamProperty
) - BlueScore (deprecated, see
GetTeamProperty
) - GetTeamScore (deprecated, see
GetTeamProperty
) - Music_Change (deprecated, see
SetMusic
) - RedCount (deprecated, see
GetTeamProperty
) - RedScore (deprecated, see
GetTeamProperty
) - SinglePlayer (deprecated, see
GameType
) - BlueTeamCount (deprecated, see
GetTeamProperty
) - BlueTeamScore (deprecated, see
GetTeamProperty
) - RedTeamCount (deprecated, see
GetTeamProperty
) - RedTeamScore (deprecated, see
GetTeamProperty
)
Old Functions
These are old, defunct functions. They do not compile, and even if they did, they do nothing.
- PlayerBlueSkull
- PlayerYellowSkull
- PlayerRedSkull
- PlayerBlueCard
- PlayerYellowCard
- PlayerRedCard