Crafting system

How, what and why to code in BYOND.

Moderators: MisterPerson, Code Maintainers

PatapoIIIka
 
Joined: Sun Aug 25, 2019 1:32 pm
Byond Username: PatapoIIIka

Crafting system

Postby PatapoIIIka » Sun Aug 25, 2019 1:39 pm #510004

Hi all!
In general, I was engaged in the alteration of crafting for our build
Made a chance craft for an example
/datum/crafting_recipe/something
result = list(/obj/item/crafting/weapon_parts/energy = 80,/obj/item/crafting/weapon_parts/plasma = 60)

Now I need a mechanism that allows me to make a dynamic chance of crafting and control the number of items as a result of crafting.
do you have any ideas :(



User avatar
PKPenguin321
In-Game Game Master
 
Joined: Tue Jul 01, 2014 7:02 pm
Location: U S A, U S A, U S A
Byond Username: PKPenguin321
Github Username: PKPenguin321

Re: Crafting system

Postby PKPenguin321 » Wed Aug 28, 2019 7:05 pm #511149

To clarify, you want to make a crafting recipe that returns a weighted-randomized item?
i play Lauser McMauligan. clown name is Cold-Ass Honkey
i have three other top secret characters as well
tell the best admin how good he is
Spoiler:
Image


Return to Coding

Who is online

Users browsing this forum: No registered users