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
vampirefrog
Created 2024-04-11 22:25
1 week 5 days ago
vampirefrog
29
points ]
 (4 votes)
Created 2010-05-30 10:00
13 years 47 weeks ago
Gangler
36
points ]
 (4 votes)
Created 2020-10-22 00:50
3 years 26 weeks ago
Zoocata
10
points ]
 (1 vote)
Created 2024-02-11 21:20
10 weeks 2 days ago
vampirefrog
10
points ]
 (1 vote)
Created 2023-07-23 20:02
39 weeks 2 days ago
36
points ]
 (4 votes)
Created 2020-12-10 12:49
3 years 19 weeks ago
Created 2023-12-12 23:34
19 weeks 20 hours ago
Zoocata
Created 2023-11-27 23:00
21 weeks 1 day ago
20
points ]
 (2 votes)
Created 2023-10-01 15:21
29 weeks 3 days ago
20
points ]
 (2 votes)
Created 2021-05-24 00:01
2 years 48 weeks ago
9
points ]
 (1 vote)
Created 2023-06-13 17:54
45 weeks 1 day ago
Zoocata
27
points ]
 (3 votes)
Created 2023-05-05 20:58
50 weeks 4 days ago
Zoocata
18
points ]
 (2 votes)
Created 2023-03-02 01:40
1 year 7 weeks ago
Getridou
Created 2023-01-29 23:27
1 year 12 weeks ago
Created 2023-01-19 19:36
1 year 13 weeks ago
Getridou
Created 2023-01-10 17:10
1 year 15 weeks ago
Getridou
Created 2023-01-01 14:30
1 year 16 weeks ago
Getridou
10
points ]
 (1 vote)
Created 2023-01-01 10:58
1 year 16 weeks ago
Getridou
Created 2023-01-01 10:49
1 year 16 weeks ago
afroninja
17
points ]
 (2 votes)
Created 2023-01-01 06:32
1 year 16 weeks ago
Who's new
  • ColdIV
  • Aidan
  • Hunk
  • letic86
  • BATMAN