Event API¶
Every single name a .event script can use, all in one place. This is the part of the wiki you look things up
in - you don't have to read it front to back. The search up top is your friend here.
The sidebar has it in three parts: the basics (the most used names, the language, the fixed words), the calls (what the game calls, and what your script can call), and one page per property group.
| How many | What they are |
|---|---|
| 18 callbacks | the functions the game calls: onBeat, onHit, onFrame, ... |
| 20 actions | statements that do something: tween, after, every, playSound, reset, ... |
| 43 shortcuts | one call for a common effect: flash, zoom, flipScroll, setPose, ease, ... |
| 46 functions | give a value back: sin, lerp, hsv, beats, sub, mod, ... |
| 5 built-in values | time, beat, step, bpm, pi |
| 246 properties on 20 pages | the values the game reads every frame: camera.zoom, strum[2].x, player.pose, ... |
| 78 modifiers | Numbers planned on the beats that bend the playfield: sway, downscroll, turnZ, cam.z, ... |
| 9 choice lists | the fixed words some of them take: easings, layers, blend modes, poses, ... |
New here? This page will make more sense after Your first event - it's ten minutes,
promise. After that, the names you'll use most are on Frequently used, and the language itself
(variables, if, for, operators) is on Files and code.
How to read an entry¶
Every entry looks the same, so once you can read one, you can read them all:
number camera.zoom = 1
- the name as you write it, as the entry's heading,
- the signature: its kind (
number,colour,switch= true / false,choice= one of a few words,text), every way to write it, and its default. For a call: its arguments, the[optional]ones in brackets, - tags: its range, its unit, read only, fights only, Windows only, kept at the song's end,
- then what it does, notes, an example, and the matching name in Psych Engine / Kade Engine.
(The tags above are only a sample.)
Properties¶
One page per group. Each starts with how to use it and an example, then lists every property with its kind, default and range. The kinds and how properties combine: Properties.
| Page | What | Count |
|---|---|---|
| camera | zoom, beat bump, shake; the fight camera | 13 |
| hud | score line, title, hearts, bars, the playfield's angle and offset | 19 |
| judgments | the rating popups | 4 |
| screen, flash, vignette | colours over the picture, the playfield's size | 8 |
| strums | the whole strumline, scroll, input | 10 |
| strum[lane] | one lane | 17 |
| underlay | the strum background | 4 |
| note[i] | every note on its way, one by one | 15 |
| text[n] | eight texts | 13 |
| image[n] | 64 pictures, sprite sheets, Psych sprites, videos | 23 |
| Fighters | player, opponent, boyfriend, dad, fighter[i], puppet[i] |
32 |
| Body parts | player.head, .leftArm, ... |
8 |
| fx | built-in effects | 17 |
| shader[n] | the song's own shaders | 8 |
| volume | the song's audio tracks | 3 |
| window | the game window, desktop mode | 19 |
| popout[n] | pop-out windows | 15 |
| monitor | the monitor's place and size | 4 |
| song | the kind of run, progress, who sings | 9 |
| player (your run) | score, combo, misses, accuracy, health | 6 |