| Milestone | Feature | |-----------|---------| | | Audio verbs ( hum , chirp ) + integration with FMOD/Wwise. | | v0.3 | Procedural texture generation ( skin pattern stripes 0.2 ). | | v0.4 | Network‑aware scripts – synchronize school behaviour across multiplayer sessions. | | v1.0 | Visual Script Editor – drag‑and‑drop node view that emits LSF text behind the scenes. | | v1.2 | AI‑plug – expose a tiny neural net for “learning” fish that can be trained via script. |
– Expose custom verbs from C# / Blueprint / GDScript:
| Step | Code Snippet | Explanation | |------|--------------|-------------| | | LunorScriptFisch.unitypackage (adds LunorScriptEngine.cs ) | Drag‑and‑drop into your project. | | 2. Add Component | csharp [RequireComponent(typeof(FishBehaviour))] public class LunorScriptComponent : MonoBehaviour public TextAsset scriptFile; | Attach to any fish prefab. | | 3. Load & Run | csharp void Start() engine = new LunorEngine(); engine.Load(scriptFile.text); engine.Bind(this.gameObject); | Binds the script to that fish. | | 4. Live Reload (Editor) | csharp void Update() if (Application.isEditor && scriptFile != null && scriptFile != lastLoaded) engine.Reload(scriptFile.text); lastLoaded = scriptFile; | Press Ctrl+R to refresh. | | 5. Custom Verb | See “spout” example above. | Extend for your own gameplay mechanics. | lunor script fisch
Then in script:
| Feature | Syntax Highlight | What It Does | |---------|------------------|--------------| | | fish all … | Apply the same script to every member of the school. | | Scoped overrides | school MoonSwarm … inside a zone block | Temporarily change the whole school when a condition is true. | | Probability | speak "…" 0.8 | 80 % chance each loop. | | Vector arguments | turn towards player | “Towards” is a built‑in vector target; you can also supply vec(0,1,0) . | | Time‑based actions | glow pulse 1.2 0.4 | Periodic bioluminescent pulse. | | Conditional blocks | if … … else … | Full control flow, but still single‑line friendly. | | Live reload | Edit the .lfs file → press F5 in‑engine → fish instantly adopt changes. | No restarts. | | Milestone | Feature | |-----------|---------| | |
While specific instructions may vary depending on the version and implementation of the LUNAR script, here are general steps to get started:
# 2️⃣ Individual fish behaviour (applies to all fish in the school) fish all swim forward 2.5 # speed = 2.5 m/s turn random 15 # jitter up to ±15° glow pulse 1.2 0.4 # pulse period 1.2 s, intensity 0.4 speak "…glimmer…" 0.8 # 80 % chance to bubble a thought wait 0.3 # tiny pause before next loop | | v1
: Execute the LUNAR script, usually by typing commands into a terminal or command prompt. You may need to specify options or flags to customize the analysis.