Area/Room Help Creation - Extreme - 08-24-201203:00 AM
Hey sphere lovers!
I made this script to create the areas/rooms for new maps...
But sometimes my sphere crashed, don't know why but sometimes after click in buttons in the gump that I created.
Could you test it in your local server if is the script that is crashing?
Install:
- Create one folder called 'maps' in your sphere folder (not in scripts folder)
- Put the code below in your scripts folder.
- Usage, .createmap
How to use:
- The button in front of P is to get your current position P in the map
- The button in end of P line, is to set the posion P with that is wrote in the P line
- The button in end of Defname, Name and Group, will set defname, name and group tag with is wrote in each dtextentry, pressing one of those will update all the 3 ones
- The RECTS end button, is to set how many RECTANGLES you will need use, updating it to make more 'RECT 1..19' to use.
- The RECT 'n' first button will set the x1,y1 for the rectangle, the last button will set the x2,y2 of the rectangle.
- Finishing it, select if its areadef or roomdef and press okay, a new file named what you set in defname will be created in maps/ folder.
- The red button clean all rect 'n' tags.
- The remote control is to quickly move in the rooms to get the RECT positions.
PS: If you don't understand I can make a movie =D
PS2: I really need you to test if, try flood the same button or whatever, I need know if is the script or the spheresvr problem.
RE: Area/Room Help Creation - Skul - 08-24-201204:30 AM
Excellent script! Just 1 suggestion - maybe have EVENTS=xx written as an <ARGTXT[x]> too? Considering that dungeons and cities and forest areas can differ by events. (Different region types, region resources, certain region events for cities, camps and dungeons) Have it plugged in right under where you listed Name for the area/room def.
RE: Area/Room Help Creation - Extreme - 08-24-201204:38 AM
(08-24-2012 04:30 AM)Skul Wrote: Excellent script! Just 1 suggestion - maybe have EVENTS=xx written as an <ARGTXT[x]> too? Considering that dungeons and cities and forest areas can differ by events. (Different region types, region resources, certain region events for cities, camps and dungeons) Have it plugged in right under where you listed Name for the area/room def.
Of course Skul, but setting events in the gump is too boring.
This is setting the default events in the AREADEFS only.
I think is better set the events in hand because if you need remove or change something, in gump you will need erase all string to get where you want to change.
Another thing, it create separated files, so is very easy to change something.
I really love it, I did the map areas/rooms of the map that I'm talking in about 2 hours... its like 160 areas/rooms so I did it very quickly with this script.
RE: Area/Room Help Creation - WRWR - 08-24-201205:09 AM
ahh, man
you made my night with sphere
thanks
RE: Area/Room Help Creation - Skul - 08-24-201205:19 AM
Extreme, what if the default value for Events were r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass and you can change it as well.
Then always apply <id> for that textentry as EVENTS=<argtxt[<id>]>.
Just a suggestion, great script though! I will definitely use it.
RE: Area/Room Help Creation - Extreme - 08-24-201205:27 AM
(08-24-2012 05:19 AM)Skul Wrote: Extreme, what if the default value for Events were r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass and you can change it as well.
Then always apply <id> for that textentry as EVENTS=<argtxt[<id>]>.
Just a suggestion, great script though! I will definitely use it.
Okay, I will do it better, give me some minutes hahahaha
RE: Area/Room Help Creation - Extreme - 08-24-201206:44 AM
Updated, just copy it and test.
PS: its not writing the events and flags yet, I will do it later, after class.
Edit: picture updated!
RE: Area/Room Help Creation - Extreme - 08-24-201211:33 AM
Updated! Now it will write in the file the events and flags that you want.
RE: Area/Room Help Creation - Valios - 08-25-201203:42 AM
My respects Extreme, you definitely got my attention here. I will be testing your scripts as soon as I can. Keep up the good work and enthusiasm, I have an eye on you now as a possible committer for the scp2
RE: Area/Room Help Creation - Extreme - 08-25-201204:00 AM
Thank Valios, thats good listen your compliments!
I've always scripting for fun, thats why now, after stop playing UO, I'm sharing my new scripts.