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 & 1 user online
10
points ]
 (1 vote)
Created 2019-05-17 21:51
4 days 23 hours ago
Kretrens
35
points ]
 (4 votes)
Created 2019-05-08 05:38
2 weeks 15 hours ago
Sauce
45
points ]
 (5 votes)
Created 2018-08-22 19:15
39 weeks 2 hours ago
65
points ]
 (8 votes)
Created 2018-07-12 17:59
44 weeks 6 days ago
7YearBitch
47
points ]
 (6 votes)
Created 2019-03-07 23:20
10 weeks 5 days ago
Ao1 Pointblank
57
points ]
 (6 votes)
Created 2019-04-28 17:57
3 weeks 3 days ago
17
points ]
 (2 votes)
Created 2018-12-04 15:42
24 weeks 1 day ago
Created 2019-04-24 04:01
4 weeks 17 hours ago
80
points ]
 (8 votes)
Created 2010-07-14 21:46
8 years 44 weeks ago
Fatality
60
points ]
 (7 votes)
Created 2019-04-01 02:30
7 weeks 2 days ago
Ao1 Pointblank
Created 2019-03-04 15:01
11 weeks 2 days ago
84
points ]
 (9 votes)
Created 2010-07-21 06:51
8 years 43 weeks ago
Ao1 Pointblank
81
points ]
 (9 votes)
Created 2018-03-22 02:14
1 year 8 weeks ago
Ao1 Pointblank
25
points ]
 (3 votes)
Created 2019-02-20 05:31
13 weeks 15 hours ago
Ao1 Pointblank
36
points ]
 (4 votes)
Created 2018-12-10 05:31
23 weeks 2 days ago
26
points ]
 (3 votes)
Created 2018-12-04 15:24
24 weeks 1 day ago
Ao1 Pointblank
35
points ]
 (4 votes)
Created 2018-12-04 15:12
24 weeks 1 day ago
5
points ]
 (1 vote)
Created 2019-02-11 05:26
14 weeks 2 days ago
Fatality
20
points ]
 (2 votes)
Created 2019-02-14 21:25
13 weeks 5 days ago
Fatality
30
points ]
 (3 votes)
Created 2019-02-12 03:56
14 weeks 1 day ago
Who's new
  • impala97
  • Fixxxer
  • Gangler
  • DON
  • sevnnseven