Page 1 of 1

Text Command: "createroof"

Posted: Tue Apr 25, 2006 7:47 pm
by Danielle
Introduction:

A powerful command that allows you to create roofs for houses in about 3 clicks. A gump is provided allowing the user to select both type, direction, and the base z-height of the roof. The base z-height is the height of the lowest portion of the roof, the first row of tiles. Then you select opposing corners of the structure you wish to build the roof on. Currently you can only create rectangular roofs in either direction.

Syntax:

".createroof"

Description:
  • You can target any two corners of the "box" to select items.
  • Uses a "nudge tool" which is a gump interface that after roof creation allows manipulating the items in any direction as many times as needed.
  • Has a detailed help section built into the gump to assist users.
  • Can create a roof of the following types:
    • Log Roof
    • Palm Frond
    • Blue Slate
    • Blue Tent
    • Grey Tent
    • Thatch
    • Red Tile
    • Wood Shingle
Tip: If the file looks "jumbled" or "messy" in your text-editor of choice, scroll down for an alternative version saved in PC-format. Download and try this one first though!

Posted: Sat Jul 15, 2006 1:27 pm
by DeiviD
quickie, if you change those SendDialogGump calls (just remove the 2 zeroes (0)) it works 100% on pol095

Posted: Sun Jul 16, 2006 6:17 pm
by Danielle
Good to know.

I didn't have the resources, or really the time to make sure if it would work on 95, so I just thought it safest to say 96 only.

Posted: Sun Aug 20, 2006 9:48 am
by Poi
I was thinking about using this after what DeiviD but holy shit its a mess, id rather not look thru the file... I wish it wassnt so messy though thats an awesome command!

Posted: Sun Aug 20, 2006 2:45 pm
by Danielle
What exactly do you mean by a "mess"?

Posted: Sun Aug 20, 2006 4:29 pm
by Tritan
All I can say is WOW. This is very nice, the one thing I hated about building made alot easier, now that is nice.

The script does everything one would need and the changes to make it work with 95 is nothing. It took me roughly 3 minutes. ;)

Posted: Mon Aug 21, 2006 12:02 am
by Firedancer
Danielle wrote:What exactly do you mean by a "mess"?
maybe he opened it on notepad hehe ;)
Seems to be stored in unix format I guess.

Posted: Tue Aug 22, 2006 4:16 pm
by Danielle
Yes, it is stored in UNIX format.

I suppose if someone wants it, and all they have is Notepad (should seriously get a better text editor!), then here is a copy stored in PC format.

Posted: Thu Aug 30, 2007 7:38 am
by Naglfar
Created roofs are very simple, I rarely use this command. But you made great function and gump for moving roof, I used this part of code in many other commands (eg. makeset). Thanks!