You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><a href="https://gamebanana.com/tools/10716">It's highly recommended for you to install it</a>, as it auto-completes function names.
51
51
</br>This is an unofficial tool though.</p>
52
-
<hr>
52
+
<hr>-->
53
53
<h2>Running a script</h2>
54
-
<h3>There are 6 types of LUA Scripts you can run:</h3>
54
+
<h3>There are 7 types of LUA Scripts you can run:</h3>
55
55
56
56
<ulclass="methoddiv">
57
57
<liclass="exampleitem"><b>Stage Script:</b> It will only run if the song's stage is loaded in the current chart, it should have the same name as your stage's .JSON file and should be inside <spanclass="methodexample">mods/My-Mod/stages/</span>.</li>
58
+
<liclass="exampleitem"><b>State / Substate Script:</b> It will only run while a specific State or Substate is active. State scripts should be placed inside <spanclass="methodexample">mods/My-Mod/stateScripts/</span> and Substate scripts inside <spanclass="methodexample">mods/My-Mod/substateScripts/</span>.</li>
58
59
<liclass="exampleitem"><b>Note Type Script:</b> It will only run if the named Note Type is being used in the current chart, it should be inside <spanclass="methodexample">mods/My-Mod/custom_notetypes/</span>.</li>
59
60
<liclass="exampleitem"><b>Event Script:</b> It will only run if the said Event is being used on the chart, it should be located inside <spanclass="methodexample">mods/My-Mod/custom_events/</span>.</li>
60
61
<liclass="exampleitem"><b>Song Script(s):</b> They should be saved inside the song's chart folder, it will only run in this specific song, no matter the Difficulty, Stage or anything else.</li>
@@ -63,12 +64,12 @@ <h3>There are 6 types of LUA Scripts you can run:</h3>
63
64
</ul>
64
65
<hr>
65
66
<h2>Functions</h2>
66
-
<h3>There are 22 pages available with 212 functions:</h3>
67
-
<ul>
67
+
<h3>There are ? pages available with ? functions:</h3>
<p>Set the Game Camera's follow point position.</p>
55
-
<h4>Examples:</h4>
56
-
<ulclass="methoddiv">
57
-
<liclass="exampleitem"><spanclass="methodexample">setCameraFollowPoint(-150.0, 150.0)</span> - Camera Follow point is set to 150 units to the left and 150 units down.</li>
<p>Adds X/Y to the Game Camera's current scroll position.
64
-
<br>All values are optional and defaults to zero.</p>
65
-
<h4>Examples:</h4>
66
-
<ulclass="methoddiv">
67
-
<liclass="exampleitem"><spanclass="methodexample">addCameraScroll(200.0, -100.0)</span> - Camera Scroll moves 200 units to the right and 100 units up.</li>
<p>Adds X/Y to the Game Camera's follow point position.
74
-
<br>All values are optional and defaults to zero.</p>
75
-
<h4>Examples:</h4>
76
-
<ulclass="methoddiv">
77
-
<liclass="exampleitem"><spanclass="methodexample">addCameraFollowPoint(-600.0, -200.0)</span> - Camera Follow point moves 600 units to the left and 200 units up.</li>
0 commit comments