ACS: Difference between revisions
DrinkyBird (talk | contribs) m (Sean moved page ACS Functions to ACS: This page is about more than the functions) |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
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 and extensions. 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== | ||
Line 40: | Line 43: | ||
* <code>[[GetPlayerLivesLeft]]</code> | * <code>[[GetPlayerLivesLeft]]</code> | ||
* <code>[[GetTeamProperty]]</code> | * <code>[[GetTeamProperty]]</code> | ||
* <code>[[GetTimeProperty]]</code> | * <code>[[GetTimeProperty]]</code> | ||
* <code>[[IncrementDBEntry]]</code> | * <code>[[IncrementDBEntry]]</code> | ||
* <code>[[ | * <code>[[IsNetworkGame]]</code> | ||
* <code>[[IsOneFlagCTF]]</code> | * <code>[[IsOneFlagCTF]]</code> | ||
* <code>[[KickFromGame]]</code> | * <code>[[KickFromGame]]</code> | ||
Line 53: | Line 56: | ||
* <code>[[RequestScriptPuke]]</code> | * <code>[[RequestScriptPuke]]</code> | ||
* <code>[[ResetMap]]</code> | * <code>[[ResetMap]]</code> | ||
* <code>[[SetActivatorToPlayer]]</code> | |||
* <code>[[SetDBEntry]]</code> | * <code>[[SetDBEntry]]</code> | ||
* <code>[[SetDBEntryString]]</code> | * <code>[[SetDBEntryString]]</code> | ||
* <code>[[SetDeadSpectator]]</code> | |||
* <code>[[SetPlayerLivesLeft]]</code> | * <code>[[SetPlayerLivesLeft]]</code> | ||
* <code>[[SortDBEntries]]</code> | * <code>[[SortDBEntries]]</code> | ||
* <code>[[Strftime]]</code> | * <code>[[Strftime]]</code> | ||
* <code>[[SystemTime]]</code> | * <code>[[SystemTime]]</code> | ||
==Deprecated== | ==Deprecated== | ||
These functions are '''deprecated'''. They still work, but will be removed eventually. It is recommended you use more up to date functions. | These functions are '''deprecated'''. They still work, but will be removed eventually. It is recommended you use more up to date functions. | ||
* | * <code>BlueCount</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>BlueScore</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>GetTeamScore</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>Music_Change</code> {{Template:DeprecatedLink|<code>{{zdoomwiki|SetMusic}}</code>}} | ||
* | * <code>RedCount</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>RedScore</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>SinglePlayer</code> {{Template:DeprecatedLink|<code>[[GameType]]</code>}} | ||
* | * <code>BlueTeamCount</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>BlueTeamScore</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>RedTeamCount</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
* | * <code>RedTeamScore</code> {{Template:DeprecatedLink|<code>[[GetTeamProperty]]</code>}} | ||
== Related Articles == | == Related Articles == |
Revision as of 02:50, 16 January 2019
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
PlayerArmorpoints
PlayerHealth
PlayerIsLoggedIn
PlayerIsSpectator
PlayerTeam
RequestScriptPuke
ResetMap
SetActivatorToPlayer
SetDBEntry
SetDBEntryString
SetDeadSpectator
SetPlayerLivesLeft
SortDBEntries
Strftime
SystemTime
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
)