This is an old revision of the document!
Table of Contents
Events Reference
Here is a list of all the events currently supported by the world server
Player Status Events
NewPlayer
| Triggered by | A new player logging in to the world for the first time |
|---|---|
| Event Parameter | None |
| CancelTransaction | N/A |
Example
Event( "NewPlayer", "" )
{
*say Welcome %PLAYER% to our world!
}
PlayerLogin
| Triggered by | A player logging in to the world |
|---|---|
| Event Parameter | None |
| CancelTransaction | N/A |
| Notes |
Example
Event( "PlayerLogin", "" )
{
*say %PLAYER% has entered our world!
}
PlayerLoginComplete
PlayerLogout
PlayerBirthday
PlayerChangeVehicle
PlayerDeath
PlayerKilled
RobocrowKilled
RobocrowKill
StartFishing
OnFish
PlayerRespawn
PlayerResurrect
Menus & UI Events
OSDSelect
MenuOption
| Triggered by | A player selecting a customisable menu or button in the main game UI |
|---|---|
| Event Parameter | Menu number : |
| 1 = Custom main menu item linked to F9 (Set with … ?? ) | |
| 2 = Player list popup button 1 | |
| 3 = Player list popup button 2 | |
| 4 = Player list popup button 3 | |
| 5 = Player list popup button 4 | |
| 6 = Info screen custom button 1 | |
| 7 = Info screen custom button 2 | |
| 8 = Pub custom button 1 | |
| 9 = Pub custom button 2 | |
| 10 = Pub custom button 3 | |
| 11 = Pub custom button 4 | |
| 12 = Pub custom button 5 | |
| CancelTransaction | N/A |
| Notes | Most of these events won't appear until you've first set up the particular custom menu option or other settings. |
Example
Event( "MenuOption", "1" )
{
*notify %PLAYER% You selected a custom menu option
}
ItemDetails
Inventory & Skill Events
UseItem
ItemAdded
ItemRemoved
TaskComplete
TaskStart
UseSkill
SkillAdded
SkillRemoved
BarterRequest
Building Events
NewBuilding
PreAccessBuilding
AccessBuilding
AccessConstruction
BuildingPurchase
BuildingDestroyed
BuildingTriggered
BuildingTriggerSequenceComplete
BuildingProductionRun
BuildingDemolished
BuildingOwnerDied
PlaceBuilding
PlaceAnyBuilding
BuildingCapture
BuildingIDProxEnter
BuildingIDProxLeave
BuildingProxEnter
BuildingProxLeave
Town Events
TownButton
TownDeclareWar
TownEndWar
Battle Events
InitChallenge
AcceptChallenge
BattleStart
BattleUpdate
BattleEnd
BattleSurrender
BattleLeave
BattleJoin
BattleAcceptSurrender
BattleComplete
Special Server Events
Custom
EndSequence
&command
Timer
ScriptReload
RangeLeave
SeaDepth
