scripting:reference:events_reference
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:reference:events_reference [2020/02/04 07:04] – mit | scripting:reference:events_reference [2023/08/23 16:45] (current) – [MenuOption] mit | ||
---|---|---|---|
Line 70: | Line 70: | ||
^ | **12** = Pub custom button 5| | ^ | **12** = Pub custom button 5| | ||
^ CancelTransaction | N/A | | ^ 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. | | + | ^ Notes | Most of these events won't appear until you've first set up the particular custom menu option or other settings. |
//Example// | //Example// | ||
< | < | ||
Line 86: | Line 86: | ||
{ | { | ||
osdcreate(OSDLOWER," | osdcreate(OSDLOWER," | ||
- | | + | |
osdactivate() | osdactivate() | ||
} | } | ||
Line 92: | Line 92: | ||
==== MapClick ==== | ==== MapClick ==== | ||
+ | ^ Triggered by | The player clicking on a tile on the landscape when they' | ||
+ | ^ Event Parameter | None | | ||
+ | ^ CancelTransaction | N/A | | ||
+ | //Example// | ||
+ | < | ||
+ | { | ||
+ | $mapX = $gClickX | ||
+ | $mapY = $gClickY | ||
+ | *msg %PLAYER% You clicked on tile $mapX, $mapY | ||
+ | } | ||
+ | </ | ||
+ | ==== ViewTournament ==== | ||
+ | ==== ActivateGuide ==== | ||
===== Inventory & Skill Events ===== | ===== Inventory & Skill Events ===== | ||
Line 191: | Line 204: | ||
==== PickupBuilding ==== | ==== PickupBuilding ==== | ||
==== BuildingDamaged ==== | ==== BuildingDamaged ==== | ||
+ | |||
+ | ===== Minigame Events ===== | ||
+ | ==== ActivateRC ==== | ||
+ | ==== CrowFlagTouch ==== | ||
+ | ==== CrowFlagTouchAny ==== | ||
+ | ==== CrowExit ==== | ||
+ | ==== Subgame ==== | ||
+ | ==== SubgameDuelStart ==== | ||
+ | ==== SubgameDuelCountdownStart ==== | ||
+ | ==== RaceStart ==== | ||
+ | ==== RaceEnd ==== | ||
+ | ==== RaceWinner ==== | ||
+ | ==== FlagPickup ==== | ||
+ | ==== FlagCapture ==== | ||
+ | ==== HornballGoal ==== | ||
+ | ==== EnterGameZone ==== | ||
+ | ==== ExitGameZone ==== | ||
+ | |||
+ | ===== Timed Events ===== | ||
+ | ==== DayOfYear ==== | ||
+ | ==== OnTheHour ==== | ||
+ | ^ Triggered by | Realtime clock reaching the hour | | ||
+ | ^ Event Parameter | None | | ||
+ | ^ CancelTransaction | N/A | | ||
+ | //Example// | ||
+ | < | ||
+ | { | ||
+ | $numBongs = sysRealTime(" | ||
+ | if ( $numBongs > 12 ) | ||
+ | { | ||
+ | $numBongs -= 12 | ||
+ | } | ||
+ | $loop = 0 | ||
+ | while ( $loop < $numBongs ) | ||
+ | { | ||
+ | | ||
+ | | ||
+ | $loop += 1 | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | ==== TenToTheHour ==== | ||
+ | ==== FiveToTheHour ==== | ||
+ | ==== WorldUpdate ==== | ||
+ | ^ Triggered by | Regular time interval specified in seconds in ***settings** -> **World** -> **Script Empty WorldUpdate Timer** or **Script WorldUpdate Timer** ; The ' | ||
+ | ^ Event Parameter | None | | ||
+ | ^ CancelTransaction | N/A | | ||
===== Special Server Events ===== | ===== Special Server Events ===== | ||
Line 199: | Line 259: | ||
==== & | ==== & | ||
==== Timer ==== | ==== Timer ==== | ||
- | ==== OnTheHour ==== | ||
- | ==== TenToTheHour ==== | ||
- | ==== FiveToTheHour ==== | ||
==== ScriptReload ==== | ==== ScriptReload ==== | ||
==== RangeLeave ==== | ==== RangeLeave ==== | ||
Line 216: | Line 273: | ||
} | } | ||
</ | </ | ||
- | ==== WorldUpdate | + | ==== BongoChant |
===== Entity Events ===== | ===== Entity Events ===== |
scripting/reference/events_reference.1580821466.txt.gz · Last modified: 2020/02/04 07:04 by mit