CrazyTB | 2005-08-29 01:14
Stairs-o-matic
This content is compatible with older edition(s) of the game it was made for, and is not guaranteed to work with the current or development versions.
A simple script to aid you when you are making stairs.

Stairs are a simple and very useful structure. Many maps have stairs. Some maps have a lot of stairs. Some maps have small stairs, others have big stairs.

However, there is nothing as boring as making stairs manually, step by step...

I wrote this little script to solve this problem. With this script, creating stairs is (almost) as simple as running one command on console.

How to use:

  1. Select the area on map where you want your stairs.
  2. Probably you will want to make it flat. Use . (dot) and/or , (comma).
  3. Type: /stairsx step inc, where step is the width of each step, and inc is the height of each step.
  4. Done.

Detailed description:

  • Type /stairshelp to show a little in-game help about this script.
  • Use /stairsx to make stairs on "x" axis, or use /stairsy to make stairs on "y" axis
  • This script is able to make stairs both on floor and on ceiling. It will make it on floor if you are look at floor, or on ceiling, if you are looking at ceiling.
  • The step parameter must be greater or equal to 1. The inc parameter, however, can be positive or negative. If you try to use this script to make a left-right stairs, but get a right-left one, try to invert the inc signal.
  • After running this script, your old selection will be lost.
  • You can't easily undo the modifications of script. undo command will undo one step per time. This can be boring if there are a lot of steps. A faster way will be re-select then entire stairs area and flatten it.
  • When you use negative inc on floor or positive inc on ceiling, the stairs will be "sunken" on floor/ceiling. This is intentional. You must re-select the entire stairs and raise/lower it as you want.
  • This script just executes some commands which will generate stairs if executed on a flat ground. If the ground is not flat, the results may not look like stairs, but may be still interesting. For example, if you superimpose "stairsx" and "stairsy", it will look like a Q-Bert level.

I accept feedback, but I don't plan to add more features to it. I want to keep it simple.

I would like to know if there is any way to make "local variables" in Cube scripting, or some way of "removing" an alias.

Just one final note: do not abuse of this script, and do not use only this script to make your stairs. Add little details by yourself to make your map look better.

// Config script
stairs.txt (715 bytes)
0
points
 (0 votes)
User login
Users on Quadropolis
1 guest & no users online
30
points ]
 (3 votes)
Created 2019-05-17 21:51
5 years 27 weeks ago
30
points ]
 (3 votes)
Created 2020-06-13 21:05
4 years 23 weeks ago
20
points ]
 (2 votes)
Created 2021-05-24 00:01
3 years 26 weeks ago
8
points ]
 (1 vote)
Created 2024-06-02 14:26
24 weeks 5 days ago
8
points ]
 (1 vote)
Created 2024-06-02 22:13
24 weeks 4 days ago
vampirefrog
Created 2024-04-11 22:25
32 weeks 18 hours ago
vampirefrog
29
points ]
 (4 votes)
Created 2010-05-30 10:00
14 years 25 weeks ago
Gangler
36
points ]
 (4 votes)
Created 2020-10-22 00:50
4 years 4 weeks ago
Zoocata
10
points ]
 (1 vote)
Created 2024-02-11 21:20
40 weeks 4 days ago
vampirefrog
10
points ]
 (1 vote)
Created 2023-07-23 20:02
1 year 17 weeks ago
36
points ]
 (4 votes)
Created 2020-12-10 12:49
3 years 49 weeks ago
Created 2023-12-12 23:34
49 weeks 2 days ago
Zoocata
Created 2023-11-27 23:00
51 weeks 3 days ago
20
points ]
 (2 votes)
Created 2023-10-01 15:21
1 year 7 weeks ago
9
points ]
 (1 vote)
Created 2023-06-13 17:54
1 year 23 weeks ago
Zoocata
27
points ]
 (3 votes)
Created 2023-05-05 20:58
1 year 28 weeks ago
Zoocata
18
points ]
 (2 votes)
Created 2023-03-02 01:40
1 year 38 weeks ago
Getridou
Created 2023-01-29 23:27
1 year 42 weeks ago
Created 2023-01-19 19:36
1 year 43 weeks ago
Getridou
Created 2023-01-10 17:10
1 year 45 weeks ago
Who's new
  • ColdIV
  • Aidan
  • Hunk
  • letic86
  • BATMAN