ACS: Difference between revisions
No edit summary |
(Added missing Skulltag functions) |
||
Line 49: | Line 49: | ||
* <code>[[KickFromGame]]</code> | * <code>[[KickFromGame]]</code> | ||
* <code>[[RequestScriptPuke|NamedRequestScriptPuke]]</code> | * <code>[[RequestScriptPuke|NamedRequestScriptPuke]]</code> | ||
* <code>[[Player_GiveItem]]</code> | |||
* <code>[[Player_RemoveItem]]</code> | |||
* <code>[[Player_SetTeam]]</code> | |||
* <code>[[PlayerArmorpoints]]</code> | * <code>[[PlayerArmorpoints]]</code> | ||
* <code>[[PlayerHealth]]</code> | * <code>[[PlayerHealth]]</code> | ||
Line 64: | Line 67: | ||
* <code>[[Strftime]]</code> | * <code>[[Strftime]]</code> | ||
* <code>[[SystemTime]]</code> | * <code>[[SystemTime]]</code> | ||
* <code>[[Team_GivePoints]]</code> | |||
* <code>[[Team_Score]]</code> | |||
* <code>[[Teleport_NoStop]]</code> | |||
==Deprecated== | ==Deprecated== |
Revision as of 10:38, 7 May 2021
This is an incomplete list of Zandronum-only ACS functions and extensions. 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
IncrementDBEntry
IsNetworkGame
IsOneFlagCTF
KickFromGame
NamedRequestScriptPuke
Player_GiveItem
Player_RemoveItem
Player_SetTeam
PlayerArmorpoints
PlayerHealth
PlayerIsLoggedIn
PlayerIsSpectator
PlayerTeam
RequestScriptPuke
ResetMap
SetActivatorToPlayer
SetDBEntry
SetDBEntryString
SetDeadSpectator
SetPlayerLivesLeft
SortDBEntries
Strftime
SystemTime
Team_GivePoints
Team_Score
Teleport_NoStop
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, seeGetTeamProperty
)BlueScore
(deprecated, seeGetTeamProperty
)GetTeamScore
(deprecated, seeGetTeamProperty
)Music_Change
(deprecated, seeSetMusic
)RedCount
(deprecated, seeGetTeamProperty
)RedScore
(deprecated, seeGetTeamProperty
)SinglePlayer
(deprecated, seeGameType
)BlueTeamCount
(deprecated, seeGetTeamProperty
)BlueTeamScore
(deprecated, seeGetTeamProperty
)RedTeamCount
(deprecated, seeGetTeamProperty
)RedTeamScore
(deprecated, seeGetTeamProperty
)