Editing
June 30 2024 build
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{legit}}{{db}} This build has a new script interpreter feature, For loops. This is something that will be very useful to building creators, since it'll allow you to automate tasks more easily, such as creating hundreds of doors. I'll explain how it works from the script guide too. This is the new content in the [[Help:Design Guide#For Loops|script guide]] (designguide.html): ---- '''9. For loops''' For loops can be created by specifying an iterator variable, and the range to use, with the following syntax:<br> <code><For iterator start To end><br> ''(code)''<br> <EndFor></code> The For loop will loop until it completes the "end" value, and can iterate up or down. The value of the iteration is stored in the iterator variable and the variable name must be unique. In the following example, the iterator variable will be printed out on each iteration: <code><For i 1 to 3><br> Print %i%<br> <EndFor></code> When the code is run, this is the result: <code>1<br> 2<br> 3</code> For loops can be nested, like this: <code><For i 1 to 3><br> <For j 1 to 4><bR> Print %i% : %j%<br> <EndFor><br> <EndFor></code> When the code is run, this is the result: <code>1 : 1<bR> 1 : 2<bR> 1 : 3<bR> 1 : 4<bR> 2 : 1<bR> 2 : 2<bR> 2 : 3<bR> 2 : 4<bR> 3 : 1<bR> 3 : 2<bR> 3 : 3<bR> 3 : 4</code> ---- '''Changelog:''' #added support for For loops #added documentation for the new For loops '''Some more complex For loop examples:''' <code><Floors 0 to 3><br> <For i 1 to 10><br> <For j 1 to 10><br> Print %floor% : %i% : %j%<br> <EndFor><br> <EndFor><br> <EndFloors> <For i 1 to 10><br> <Floors 0 to 3><br> Print %i% : %floor%<br> <EndFloors><br> <EndFor></code> == See also == * [[June 23 2024 build|Previous build]] * [[July 6 2024 build|Next build]] * [[Development Builds]] == External links == * [https://skyscrapersimulatorforum.createaforum.com/download-skyscraper-simulator/new-build-63024-build/ Build: 6/30/24 build on the Skyscraper Simulator Forum] [[Category:Development Builds]] [[Category:2024 Builds]] [[Category:Alpha 12 builds]]
Summary:
Please note that all contributions to Skyscraper Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Skyscraper Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Db
(
edit
)
Template:Legit
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information