1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

[Clockwork] Free Crafting

Discussion in 'Plugins' started by duck, Jun 28, 2014.

  1. duck

    duck Phant0m Legend

    [member=5522]Atebite[/member] [member=1476]Gr4Ss[/member]

    I've got most of the code finished. It still needs derma messages like "Are you sure you want to clear this recipe?" and "What do you want to name this recipe?" and stuff like that.

    The little textbox is for the filename. It should use Clockwork.file:Write to the schema's recipes folder. Message me on Steam if/when you guys are able to help with that sorta stuff.
     
  2. NightAngel

    NightAngel Fuck off Lev

    I sense that I maybe inspired this wif da item creator plugin, and just looking at that image gave me a bunch of ideas for it. xP

    Looks awesome as always, duck. <3
     
  3. Sophia

    Sophia Guest

    Yeah it really does, Duck goes that extra mile.
     
  4. duck

    duck Phant0m Legend

    Yeah. I got the idea when I saw yours and Tommy's. I looked at Tommy's and saw it was exactly like RJ's old way, using functions and brackets and whatnot. I thought about how mines was a lot easier.

    I was reminded about how my plugin still required SOME knowledge of Lua. I wanted a way to permanently solve the problem of inexperienced people wanting to make recipes, and came up with this!
     
  5. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    you're welcome 4 the inspiration

    rip my plugin i just wanted great contributor
     
  6. NightAngel

    NightAngel Fuck off Lev

    Yesssss, now release it so I can steal your derma layout. >:3

    edit:

    Just make one of the plugins that people want in the request section den.
     
  7. NightAngel

    NightAngel Fuck off Lev

    -snip omg i doubleposted im tired im sowwy ;-;-
     
  8. duck

    duck Phant0m Legend

    I got impatient and almost finished the whole thing by myself [​IMG]

    There's only 1 or two things left that need to be done.

    sooon
     
  9. You betrayed me.
     
  10. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    I think your items are fine, he's just making an update which allows you to easily create recipes in game so people who don't know how to create a working recipe file can easily do it from there.
     
  11. Hey, I was thinking of something like custom error messages.
    As an example:
    Recipe: Mash stone into gravel with a feather
    Requirements: 1xStone 1xFeather
    Attribute requirements: 30xStrength
    Custom message 1: If doesn't have stone/feather -> You need the items to do it.
    Custom message 2: You keep mashing the stone, but you're not strong enough.

    It could be useful if you wanted to explain people why they failed, if it's not obvious at first (a better example, a hacking program and a radio. You could make a message that you failed due to bugs in program, you need more Programming attribute).
     
  12. duck

    duck Phant0m Legend

    The timezones we live in are OP.
    I can't imagine why it would need to say why it failed when they can see it themselves by simply hovering over the recipe's icon. If it's all green, you're good to go. If it's not all green, you are missing something.

    You can customize the message a little, but not in the way you are looking for. Look in sv_hooks of the plugin.

    EDIT: Still looking for more ideas.
     
  13. duck

    duck Phant0m Legend

    Update: the recipe creator is 100% done and should be available soon after I debug it and look for potential problems.
     
  14. I just realised, how about adding the possibilty for crafting to increase attributes? So as an example you could make a recipe which raises the dexterity attribute, or a custom crafting attribute.
     
  15. duck

    duck Phant0m Legend

    That's already in the plugin. Recipes can have a success and failure function.
     
  16. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    what about a break possibility
    the higher your (insert skill) the less chance you have to break the item

    ifyou break it you lose all the materials

    edit: but make it toggleable in the settings menu
     
  17. Yeah, just realised I got the "move files but actually don't" windows bug, so I am still using a stone age version. Mind making a free windows OS? :p

    Edit: How to use the success/failure function? I can't seem to find it in the files.

    But then it would be annoying if it was as hard to craft a bandage as to craft a pistol.
     
  18. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    [me=Tommy]breaks bandage[/me]
    shit!

    ITEM.break = 0.8

    set the break value for each item
     
  19. duck

    duck Phant0m Legend

    I actually may have forgotten to add them. I'm not home so I can't say for sure. Perhaps right now the only way is to use a plugin. I'll add the success and failure functions when I get home in a few hours.

    I will release the update today.

    As for the breaking thing, it's something I may do. I don't think it will be like ITEM.chance, more like, RECIPE.chance

    [member=3511]Masked Death[/member]

    It is indeed already in the plugin.

    Code:
    RECIPE:OnSuccess(player)
    RECIPE:OnFailure(player)
    Return a string in this functions and it will display whatever string you returned when it succeeds or fails.
     
  20. duck

    duck Phant0m Legend

    The new update with the recipe creator is now available.

    https://dl.dropboxusercontent.com/u/32687773/recipes.zip
     

Previous Readers (Total: 0)