Furnishing Script

KelloniusKellonius Cape Girardeau, Missouri
So I got really tired of having to go back and forth between the AB files and the other assorted help files trying to figure out what to do while making furniture. It got to be really tedious especially considering there are hidden costs associated with changing the dimensions of an item and also when adding linings and coverings. So I did the most obviously more tedious thing and I figured out the multipliers for the hidden costs and how the information is calculated. Then I built a script that asks me what I want in furniture and then does all of the hard work for me. If you want the script, feel free to download it here:

https://www.dropbox.com/s/ujhhucrab4r9z8f/Furnisher.zip?dl=0

A few things to get started:

-'fhelp' will show you a help file that I created for the script. Its a pretty big wall of text but it really explains everything in detail that you need to know.
-You will need to set up two options 'fconfig pack' and 'fconfig lid'. 'fconfig pack pack12345' will set you gold container to 'pack12345.' It will accept any form of bag, kitbag, pouch, sack, etc. 'fconfig lid true/false' only accepts true or false parameters, and basically just tells the system if your pack has a lid or not.
-You can start the furnishing walkthrough by doing 'furnish,' but if you don't want to do the walk through you can change any of the variables at any time by using the aliases list in 'fhelp.' Note that if you start the walk through and then redo a different variable you will continue on from the point in the walk through that you changed manually.

I tried to make the script as fool proof as possible, disallowing erroneous entries and so on, but I think my code its probably pretty rudimentary and sloppy(I am my own worst critic) so its probably possible to break the script in ways that I have not thought of. Please feel free to break this and let me know what happened and how so that I can update the script and fix things. Also if you have any other questions or suggestions, please feel free to ask.

Cheers.
image

Comments

  • Was the link removed?
    Whoever appeals to the law against his fellow man is either a fool Or a coward
    Whoever cannot take care of himself without that law is both
    For a wounded man will shall say to his assailant
    "If I live, I will kill you. If I die, you are forgiven"
    Such is the rule of honor
  • KelloniusKellonius Cape Girardeau, Missouri
    New update, New link.
    https://www.dropbox.com/s/i59cqy4fxbnqyqq/Furnisher.zip?dl=0

    Updates are:

    -added "bone" to the list of materials. 
    -added a gmcp check for both gold and inventory. The system will no longer attempt to build without having the proper materials in your rift or pack. This does not yet consider commodities in your hands so you must have them rifted, for now.
    -made furnishing walkthrough options more clear and noticeable(a nice purple color).
    -fixed trigger for soft throw frames being completed.
    -cleaned up the code quite a bit, added some comments so the casual observer can understand what is happening, and moved the echoes into their own script.

    Enjoy!
    image
  • Just drop it in a folder and link the folder instead.  Way less headache. 
  • KelloniusKellonius Cape Girardeau, Missouri
    Oh. Cool. Didn't know you could do that. I'll do it with the next update.
    image
  • AhmetAhmet Wherever I wanna be
    Or just change the 'dl' to a 1. Like so.

    https://www.dropbox.com/s/i59cqy4fxbnqyqq/Furnisher.zip?dl=1
    Huh. Neat.
  • I just gave this a quick glance (didn't fiddle too much with furnishing yet), but you may want to look into organising your script into an own namespace. You can potentially break other people's stuff pretty easily with this.

    A short explanation can be see here: http://forums.mudlet.org/viewtopic.php?f=8&t=1211
  • KelloniusKellonius Cape Girardeau, Missouri
    Keneanung said:
    I just gave this a quick glance (didn't fiddle too much with furnishing yet), but you may want to look into organising your script into an own namespace. You can potentially break other people's stuff pretty easily with this.

    A short explanation can be see here: http://forums.mudlet.org/viewtopic.php?f=8&t=1211
    I thought about that, which is why I tried to give all of the variables and function names very unique identifiers, but I'll look into namespace for sure.
    image
  • KelloniusKellonius Cape Girardeau, Missouri
    New update!

    The system now has its own namespace. All functions, variables, tables and arrays now start with prefix "furnisher." For instance, the config() function is now called as furnisher.config() instead of just config()

    I cleaned up some of the code, added more notes here and there as well. Hopefully the next update will include a method for handling samples and will check your sample count before it lets you change materials.

    Finally, heeding Austere's advice: I put the furnisher into its own dropbox folder and will link that folder below, so this will be the last link you ever need for updates.

    https://www.dropbox.com/sh/ki5vh3kgc2t7rno/AADfulZl_FYK-9J-QTRvSa3ua?dl=0
    image
  • KyrraKyrra Australia
    Will this ever be updated to include beds, hammocks, bunks, and cots?
    (D.M.A.): Cooper says, "Kyrra is either the most innocent person in the world, or the girl who uses the most innuendo seemingly unintentionally but really on purpose."

Sign In or Register to comment.