Hello i'm new here just to make this request, i hope i'm not makin any mistakes..
The plugin that i need is basicly a crafting system with craft duration, e.g to craft a brick it would need 4 clays for 20 seconds realtime (but only when the game is on, not based on computer clock). If possible there will be a toggle (maybe via variables) to decide whether the player cannot move while crafting or it would be an auto crafting (player can leave map).I've tried to make one inspired by galv's simple farming plugin for the timer and szyu's crafting system plugin for the basic crafting but its too complicated for me and i'm still quite new in JS.
My thought on how it works technically;
- put an event lets say its a crafting table 1 (there's multiple tables with different available recipes)
- player interact with it
- it runs a common event to check whether the [eventID] is already manufacturing or not
- if no then open crafting menu, if yes then it checks again whether the manufacture is completed or not (if the manufacture doesn't need the player to be around, the player can come back to check the progress)
- if the manufacture have been completed then give the item
- if no then show the manufacture time remaining.
For the crafting menu it would be nice if the layout looks like Szyu's. And also Szyu's crafting system only allows 1 item per manufacture and i need it to be dynamic (maybe adjustable with parameter and/or plugin command) e.g max 20 items per manufacture but when i upgrade the table it can make more items per manufacture.
I actually really need this for my school project so its quite important.
1. The crafting is always 1 type of item per manufacture, the quantity of an item to craft is decided by the plater from the menu before starting the crafting process, but the maximum number(quantity) of items that can be crafted at a time is limited by a number and that number is decided from the script call that will be called by an event to open the crafting menu. also the ingredients and time needed to craft the item will be multiplied by the quantity.
2. I want it to be both, toggleable via the script call and global switch for the default (decide the switch id via plugin parameter).
3. No the player doesnt need to have some sort of recipe book in their inventory, instead make the "recipe book" into category, so the crafting category that will be opened is decided from the event that calls the crafting menu with script call.
4. no the countdown only counting when the game is running
5. i will be using EST's Build and Decor plugin, so i will have the event template of the table and its each upgrades in a map for storing template events, so the player can place it in their house. every event in the template map is a single type of crafting table or platform, each have its own script call (category, speed modifier, max item to craft) and i can decide it freely and make them as much as i want, to upgrade a table basicly i just using a regular eventing stuffs maybe with variables and common events so the player can place a new type of table. so the actual "upgrade", which is a faster crafting (in a value of percentage), and maximum number of a single type of item to craft at a time, all of it is decided through the script call.
example of the script call: Game.Crafting.openMenu(this._eventId, 50, 120, 2, 4, 5);
explanation:
50 = maximum number of an item type to craft at a time
120 = total of the time needed to craft will be reduced by 120%
2, 4, 5 = crafting recipes thats included in category id 2, 4, and 5 will be showed in the menu.
recipe 1: need 3 of item id 1, 2 of item id 2, it would take 50 seconds to craft, and this recipe will appear on a crafting menu with category 1.
recipe 2: need 1 of armor id 1, 1 of weapon id 1, it would take 20 seconds to craft, and this recipe will appear on a crafting menu with category 1 or 2.
EDIT: i forgot about the category, so 'c' is the category, for example if i call the crafting menu with category 1, recipe 1 and 2 will show up. if i open category 2, only recipe 2 will show up.
thank you for reading
The plugin that i need is basicly a crafting system with craft duration, e.g to craft a brick it would need 4 clays for 20 seconds realtime (but only when the game is on, not based on computer clock). If possible there will be a toggle (maybe via variables) to decide whether the player cannot move while crafting or it would be an auto crafting (player can leave map).I've tried to make one inspired by galv's simple farming plugin for the timer and szyu's crafting system plugin for the basic crafting but its too complicated for me and i'm still quite new in JS.
My thought on how it works technically;
- put an event lets say its a crafting table 1 (there's multiple tables with different available recipes)
- player interact with it
- it runs a common event to check whether the [eventID] is already manufacturing or not
- if no then open crafting menu, if yes then it checks again whether the manufacture is completed or not (if the manufacture doesn't need the player to be around, the player can come back to check the progress)
- if the manufacture have been completed then give the item
- if no then show the manufacture time remaining.
For the crafting menu it would be nice if the layout looks like Szyu's. And also Szyu's crafting system only allows 1 item per manufacture and i need it to be dynamic (maybe adjustable with parameter and/or plugin command) e.g max 20 items per manufacture but when i upgrade the table it can make more items per manufacture.
I actually really need this for my school project so its quite important.
Thank you for replying to my thread.
1. The crafting is always 1 type of item per manufacture, the quantity of an item to craft is decided by the plater from the menu before starting the crafting process, but the maximum number(quantity) of items that can be crafted at a time is limited by a number and that number is decided from the script call that will be called by an event to open the crafting menu. also the ingredients and time needed to craft the item will be multiplied by the quantity.
2. I want it to be both, toggleable via the script call and global switch for the default (decide the switch id via plugin parameter).
3. No the player doesnt need to have some sort of recipe book in their inventory, instead make the "recipe book" into category, so the crafting category that will be opened is decided from the event that calls the crafting menu with script call.
4. no the countdown only counting when the game is running
5. i will be using EST's Build and Decor plugin, so i will have the event template of the table and its each upgrades in a map for storing template events, so the player can place it in their house. every event in the template map is a single type of crafting table or platform, each have its own script call (category, speed modifier, max item to craft) and i can decide it freely and make them as much as i want, to upgrade a table basicly i just using a regular eventing stuffs maybe with variables and common events so the player can place a new type of table. so the actual "upgrade", which is a faster crafting (in a value of percentage), and maximum number of a single type of item to craft at a time, all of it is decided through the script call.
example of the script call: Game.Crafting.openMenu(this._eventId, 50, 120, 2, 4, 5);
explanation:
50 = maximum number of an item type to craft at a time
120 = total of the time needed to craft will be reduced by 120%
2, 4, 5 = crafting recipes thats included in category id 2, 4, and 5 will be showed in the menu.
The recipes are written in the notetag of each item that can be crafted, Szyu's crafting system is also using notetags but i'd like it to have multiple recipes per item, example notetag of an item :
recipe 1: need 3 of item id 1, 2 of item id 2, it would take 50 seconds to craft, and this recipe will appear on a crafting menu with category 1.
recipe 2: need 1 of armor id 1, 1 of weapon id 1, it would take 20 seconds to craft, and this recipe will appear on a crafting menu with category 1 or 2.
EDIT: i forgot about the category, so 'c' is the category, for example if i call the crafting menu with category 1, recipe 1 and 2 will show up. if i open category 2, only recipe 2 will show up.
Code:
<recipes>
<recipe1>
i: 1, 3
i: 2, 2
t: 50
c: 1
</recipe1>
<recipe2>
a: 1, 1
w: 1, 1
t: 20
c: 1, 2
</recipe2>
</recipes>
thank you for reading