Better Beginnings (HELP!)

Post Reply
User avatar
GamingAssociation39
Member
Posts: 858
Joined: Mon Apr 25, 2016 16:09
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55
Location: Maryland, USA

Better Beginnings (HELP!)

by GamingAssociation39 » Post

I need help to work on an advanced crafting table. I've got it partially done but the advanced part I'm having trouble with...
Jesus Is Lord and Savior!!!

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: Better Beginnings (HELP!)

by Inocudom » Post

I guess people need to see what you've done first before they can help you. You should show them what you've got so far.

User avatar
GamingAssociation39
Member
Posts: 858
Joined: Mon Apr 25, 2016 16:09
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55
Location: Maryland, USA

Re: Better Beginnings (HELP!)

by GamingAssociation39 » Post

Image
Attachments
better_beginnings.png
better_beginnings.png (28.08 KiB) Viewed 333 times
Jesus Is Lord and Savior!!!

Brian Gaucher
Member
Posts: 77
Joined: Wed Jan 10, 2018 01:56
GitHub: BrianGaucher
In-game: Camasia

Re: Better Beginnings (HELP!)

by Brian Gaucher » Post

What do you mean by advanced crafting table. To be able to help you I must know what you need help with
Current projects: Making a CTF map, Learning C++, Learning Programmer's Dvorak

User avatar
GamingAssociation39
Member
Posts: 858
Joined: Mon Apr 25, 2016 16:09
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55
Location: Maryland, USA

Re: Better Beginnings (HELP!)

by GamingAssociation39 » Post

Jesus Is Lord and Savior!!!

User avatar
StarNinjas
Member
Posts: 411
Joined: Wed Mar 14, 2018 00:32
GitHub: starninjas
IRC: StarNinjas
In-game: J1
Location: Terrarca
Contact:

Re: Better Beginnings (HELP!)

by StarNinjas » Post

Her I explain how it works: viewtopic.php?f=47&t=20529

-J1
Don't go to bed tonight, without knowing what would happen if you died. https://thegospelfilm.org/

User avatar
Skamiz Kazzarch
Member
Posts: 618
Joined: Fri Mar 09, 2018 20:34
GitHub: Skamiz
In-game: Skamiz
Location: la lojbaugag.

Re: Better Beginnings (HELP!)

by Skamiz Kazzarch » Post

It seems to me like a rather heavy handed aproach to to enriching gameplay. And while the restrictions feel too artificial for my own enjoyment, here are a few ways you might try to go about it:
1) Make your own custom crafting system from scratch. To the best of my knowledge there isn't a way to tie these aditional recipe requirements into the builtin crafting directly. This aproach will give you the most controll over what you are doing, but it might might clash with with the crafting of unaffected recipes depending on how you implement it.
2) Use the allow/on_metadata_inventory_take functions to determine what is beeing crafted, find out if the aditional slots contain the neccesary knicknacks and acoridingly allow/disallow to take the item out of the prewiev slot, decreasing the aditional items as necesarry.
This aproach definitively needs to display the aditional reqirements, othervise the player will be confused why he can't take the crafting output when it looks like he put in a valid recipe.
3)The same as 2, but instead allowing/disallowing the taking of the output, you use all of the 'on_metadata_inventory_*' functions to switch the craftpreview slot in and out with an empty dummy slot so the crafting result shows only when all of the neccesary ingedients are in place.

Hope this gives you a few ideas how to aproach it.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests