Scripting: Difference between revisions

Jump to navigation Jump to search
Line 290: Line 290:
{{HeaderNoTOC|Wait for a certain amount of time}}
{{HeaderNoTOC|Wait for a certain amount of time}}


<code>. 5</code> waits for 5 seconds before running more of the code. Mind the space! (".5" without space doesn't mean anything)
<code>wait 5</code> waits for 5 seconds before running more of the code. Mind the space! (".5" without space doesn't mean anything)


{{HeaderNoTOC|Wait until action is finished}}
{{HeaderNoTOC|Wait until action is finished}}


<code>.</code> simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure you finish moving to a location.
<code>wait</code> simply waits until an action like walking, fading, or other things are completed. This is a great way to ensure finishing moving to a location.
 
<code>wait:Target</code> can be used to target an action wait for a specific character.


==Repeat/For Loop==
==Repeat/For Loop==

Navigation menu