Tiamat13
Sorceror
Random Land Tile Decorator Deed (RunUO 2.0)
GD13,
Random Land Tile Decorator Deed
by : Tiamat13 aka GoldDraco13
I wrote this deed to make decorating all the same land tiles on the map easier, this is a tool designed for map makers!
Note : This first release is to see if there's any interest in such a tool before I script the interface for ease of use. If I see a good turn out for this tool, I'll continue the project to include a interface(Gump) to make the system user friendly. As of this post, the tool is one script that will need editing in order to be used.
How it works
In the script, near the top you'll find the following example, this example shows the menu to follow filled in as per test(picture's below), this is for guidance only.
The menu that follows is where you edit in your situation, as per the example, adding realistic decor to the grass tiles in the world.
Where to find information for the edits is easy, log into your shard, and props the land tile you want to mass decorate, for me I found grass to plain in UO so I did it first by adding grass blade statics to the ground, look at the picture's below to see the change from plain to decorated. When you props the tile, use the name listed in the land tile as the terrain in the menu below.
Then use inside UO or Pandora's box and find the ItemID's of the statics you wish to use to decorate the land tile you picked. You can list up to ten statics but you have to select at least one, always fill from LD1 downwards.
Once you have edited the menu to your liking, save and place the script into your script folder and restart the shard, in game [add landdecordeed, double tap deed to activate. Its heavy on the CPU so some may get frozen while it does its thing, just wait it out, it will not last long. Once done it'll give you a count of statics added. Its a wise idea to freeze these into your map after you have done an inspection to see if you like the out come. Remember this is for world builders, I would not use this on a live shard, due to bad out comes by bad choices, its good to have a clean map to just use [clearfacet to clean up a mistake.
As mentioned above, if there's interest, I'll script an interface to this tool which would add features to better control the tool.
This tool has a few built in features to make the out come very impressive, The tool looks for existing statics on the land tile picked and makes sure nothing is added to them. The system has a 75% cover rate, meaning that it randomly selects tiles not to decor. The random feature works better with more then one static selected in the decor menu.
Let me know what you all think, post any bugs as well!
I wrote this deed to make decorating all the same land tiles on the map easier, this is a tool designed for map makers!
Note : This first release is to see if there's any interest in such a tool before I script the interface for ease of use. If I see a good turn out for this tool, I'll continue the project to include a interface(Gump) to make the system user friendly. As of this post, the tool is one script that will need editing in order to be used.
How it works
In the script, near the top you'll find the following example, this example shows the menu to follow filled in as per test(picture's below), this is for guidance only.
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//Custom Menu Start EXAMPLE/////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//This sets the land tile type that will be covered with random decor///////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//public string terrain = "grass"; //Uses : grass,dirt,snow,forest,cave,water,rocks etc etc..//
////////////////////////////////////////////////////////////////////////////////////////////////////
//These are the random tile ID's for the items that will be added to the land tile//////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//public int LD1 = 3378; //Use ItemID////////////////////////////////////////////////
//public int LD2 = 3379; //Use ItemID////////////////////////////////////////////////
//public int LD3 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD4 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD5 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD6 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD7 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD8 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD9 = 0; //Use ItemID////////////////////////////////////////////////
//public int LD10 = 0; //Use ItemID////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//Custom Menu End EXAMPLE///////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Where to find information for the edits is easy, log into your shard, and props the land tile you want to mass decorate, for me I found grass to plain in UO so I did it first by adding grass blade statics to the ground, look at the picture's below to see the change from plain to decorated. When you props the tile, use the name listed in the land tile as the terrain in the menu below.
Then use inside UO or Pandora's box and find the ItemID's of the statics you wish to use to decorate the land tile you picked. You can list up to ten statics but you have to select at least one, always fill from LD1 downwards.
Code:
//Custom Menu Start
public string terrain = "";
public int LD1 = 0;
public int LD2 = 0;
public int LD3 = 0;
public int LD4 = 0;
public int LD5 = 0;
public int LD6 = 0;
public int LD7 = 0;
public int LD8 = 0;
public int LD9 = 0;
public int LD10 = 0;
//Custom Menu End
///////////////////////////////////////////////////////////
//MAKE SURE YOU HAVE YOUR MENU FILLED IN WITH YOUR VALUES//
///////////////////////////////////////////////////////////
As mentioned above, if there's interest, I'll script an interface to this tool which would add features to better control the tool.
This tool has a few built in features to make the out come very impressive, The tool looks for existing statics on the land tile picked and makes sure nothing is added to them. The system has a 75% cover rate, meaning that it randomly selects tiles not to decor. The random feature works better with more then one static selected in the decor menu.
Let me know what you all think, post any bugs as well!
GD13,