Editing
In-Code Basic Stairwell Creator
(section)
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!
== Steps == <!--- All of the below steps were created by EG881 ---> <nowiki>#</nowiki>Step 1: Lets start by determining our stairwell coordinates. These two values will determine the stairwell's position in your building. To change these values, change the number after the equal sign to your desired value. <nowiki>#</nowiki>Horizontal (x) Coordinate<br> <code>Set 50 = 0</code> <nowiki>#</nowiki>Vertical (z) Coordinate<br> <code>Set 51 = 0</code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Step 2: Now we will determine our stairwell's size. The longest side will be the length, and the corresponding axis will be in parenthesis. <nowiki>#</nowiki>Length (x)<br> <code>Set 48 = 18</code> <nowiki>#</nowiki>Width (z)<br> <code>Set 49 = 9</code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Step 3: Now we must determine our start floor and end floor (or terminal floors). The terminal floors are inclusive. Before you set your terminal floors, make sure you have already created all of the floors that the stairwell will serve in the above code. Otherwise you will have an error. <nowiki>#</nowiki>Lowest Floor<br> <code>Set 54 = -21</code> <nowiki>#</nowiki>Highest Floor<br> <code>Set 55 = 1</code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Step 4: Now we must determine the number of total steps we will have. Please notethat the resulting stairwell will have two sets of stairs for each floor. This means the number of steps each stair will have is half of this value you set. <nowiki>#</nowiki>Number of Steps<br> <nowiki>#</nowiki>This hasn't been tested yet, so changing this may cause errors.<br> <code>Set 56 = 20</code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Do not change this code. <code>Set 52 = %48% / 2<br> Set 53 = %49% / 2<br> Set 58 = %56% / 2 <nowiki>#</nowiki>stairs 1<br> CreateStairwell 1, %50%, %51%, %54%, %55%<br> CutStairwell 1, -%52%, -%53%, %52%, %53%, 0, 5</code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Step 5: Because these values cannot be set automatically from above, the terminal floors need to also be typed here. These must be the same as you set above. <nowiki>#</nowiki>Terminal Floors<br> <code><Floors -21 to 1></code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Step 6: Now its time to set our textures. Before changing the texture, make sure it has already been loaded in the texture section. The settings below are defaults. <nowiki>#</nowiki>Landing/Floor Texture<br> <code>Set 43 = Brick</code> <nowiki>#</nowiki>Wall Texture<br> <code>Set 44 = StairsWall</code> <nowiki>#</nowiki>Ceiling (very top of stairwell) Texture<br> <code>Set 45 = Ceiling1</code> <nowiki>#</nowiki>Stairs Texture<br> <code>Set 46 = Stairs</code> <nowiki>#</nowiki>Door Texture<br> <code>Set 47 = StairsDoor</code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Step 7: Now copy everything above and below and paste it into your building file. I recommend you place this at the end of your building code. <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Do not change this code. <code>Set 57 = (%height% + Floor(%floor% + 1).InterfloorHeight) / %56% if[%floor% < %55%] AddStairs 1, StairsLower, %46%, left, 0, -%53% / 2, %53%, %57%, %58% / (%58% - 1), %58%, 0, 0, 0<br> if[%floor% < %55%] AddStairs 1, StairsUpper, %46%, right, 0, %53% / 2, %53%, %57%, %58% / (%58% - 1), %58%, %57% * %58%, 0, 0<br> FloorOrientation = top if[%floor% > %54%] AddStairsFloor 1, LandingLower, %43%, 0.5, -%52%, -%53%, -%56% / 4, %53%, 0, 0, 1, 1<br> if[%floor% = %54%] AddStairsFloor 1, LandingLower, %43%, 0.5, -%52%, -%53%, %52%, %53%, 0, 0, 1, 1<br> if[%floor% < %55%] AddStairsFloor 1, LandingUpper, %43%, 0.5, %56% / 4, -%53%, %52%, %53%, %57% * %58%, %57% * %58%, 1, 1 <nowiki>#</nowiki>Ceiling<br> FloorOrientation = bottom<br> DrawWalls = true, false, false, false, false, false<br> if[%floor% = %55%] AddStairsFloor 1, StairsCeiling, %45%, 0.5, -%52%, -%53%, %52%, %53%, %height% - 0.4, %height% - 0.4, 1, 1 DrawWalls = false, true, false, false, false, false<br> WallOrientation = right<br> AddStairsWall 1, LandingLowerCover, %43%, 0.1, -%56% / 4, -%53%, -%56% / 4, 0, 0.5, 0.5, -0.5, -0.5, 0, 1<br> DrawWalls = true, false, false, false, false, false<br> WallOrientation = left<br> if[%floor% < %55%] AddStairsWall 1, LandingUpperCover, %43%, 0.1, %56% / 4, 0, %56% / 4, %53%, 0.5, 0.5, (%57% * %58%) - 0.5, (%57% * %58%) - 0.5, 0, 1<br> DrawWalls = true, true, false, false, false, false SetAutoSize = true, false<br> WallOrientation = right<br> AddStairsWall 1, LeftWall, %44%, 0.3, -%52%, -%53%, -%52%, %53%, %fullheight%, %fullheight%, -%interfloorheight%, -%interfloorheight%, 0, 3<br> AddStairsWall 1, FrontWall, %44%, 0.3, -%52%, -%53%, %52%, -%53%, %fullheight%, %fullheight%, -%interfloorheight%, -%interfloorheight%, 0, 3<br> WallOrientation = left<br> AddStairsWall 1, BackWall, %44%, 0.3, -%52%, %53%, %52%, %53%, %fullheight%, %fullheight%, -%interfloorheight%, -%interfloorheight%, 0, 3<br> AddStairsWall 1, RightWall, %44%, 0.3, %52%, -%53%, %52%, %53%, %fullheight%, %fullheight%, -%interfloorheight%, -%interfloorheight%, 0, 3<br> SetAutoSize = true, true AddStairsDoor 1, %47%, 0.2, 1, -%52%, 0, 3.5, 8, 0, 1, 1 </br> <EndFloors></code> <nowiki>#</nowiki>=========================================================================================== <nowiki>#</nowiki>Congratulations. You have finished making your basic stairwell. Open your building and see the results. If the results are not what you desired you can change any of the values you set in the building code and test it until you get your desired results.
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)
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