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
20
points ]
 (2 votes)
Created 2016-07-28 12:06
3 years 35 weeks ago
afroninja
26
points ]
 (3 votes)
Created 2020-01-15 07:47
10 weeks 6 days ago
7YearBitch
20
points ]
 (2 votes)
Created 2020-03-16 20:09
2 weeks 1 day ago
70
points ]
 (7 votes)
Created 2020-01-24 22:26
9 weeks 3 days ago
40
points ]
 (4 votes)
Created 2020-01-23 12:57
9 weeks 5 days ago
30
points ]
 (4 votes)
Created 2020-01-26 14:10
9 weeks 2 days ago
170
points ]
 (17 votes)
Created 2011-09-05 14:13
8 years 30 weeks ago
Sauce
71
points ]
 (8 votes)
Created 2018-08-22 19:15
1 year 31 weeks ago
Lord Kv
160
points ]
 (16 votes)
Created 2015-03-12 14:45
5 years 3 weeks ago
45
points ]
 (6 votes)
Created 2009-08-15 13:37
10 years 33 weeks ago
MisanthropX
74
points ]
 (8 votes)
Created 2019-12-05 20:57
16 weeks 5 days ago
Redon
105
points ]
 (11 votes)
Created 2019-10-24 21:41
22 weeks 5 days ago
10
points ]
 (1 vote)
Created 2019-10-26 11:09
22 weeks 3 days ago
25
points ]
 (3 votes)
Created 2019-10-11 23:29
24 weeks 3 days ago
10
points ]
 (1 vote)
Created 2019-10-16 01:26
23 weeks 6 days ago
Gangler
37
points ]
 (4 votes)
Created 2019-10-10 16:26
24 weeks 5 days ago
34
points ]
 (4 votes)
Created 2019-10-08 02:25
25 weeks 19 hours ago
5
points ]
 (1 vote)
Created 2019-10-08 13:32
25 weeks 8 hours ago
Gangler
42
points ]
 (5 votes)
Created 2019-09-23 23:48
27 weeks 22 hours ago
Fatality
39
points ]
 (4 votes)
Created 2019-09-28 02:57
26 weeks 3 days ago
Who's new
  • Antknee55
  • gmiz
  • impala97
  • Fixxxer
  • Gangler