Hey lovely beings, I am stuck trying to code my crafting system, as I am not sure how to correctly get MV to calculate item to item ratios to come up with a possible outcome response. What I mean as a direct example of this is say, making matches takes
Var 1: ItemCount String : Set to number of string
Var 2: CraftPoss Rope = ItemCountString
Var 2: CraftPoss Rope /3
Now I can use this data to call in text via message or choices:
Choices :001 : Rope \v[2], 002: Matches \v[x], etc.
- and even from there of course add my icons or more/less text etc.
BUT -
I am struggling with exhibit A - which is not such an easy equation. I have tested many ways I could even compromise with it yet, I m unhappy with such compromise compared to such exact data being available like exhibit B.
I have been trying to dabble with MOD , Dividing, and adding, setting. Its all driven me to madness at this point. I want it to also make 3 Matches at once, and still deciding if I will be adding that next to text, or to the variable itself. ex Matches x3 \i[x] \v[x], or else multiply the final variable again by 3.
I hope I am getting this out correctly, I hve been looking everywhere for any insight or clues to a solution, been brainstorming plenty math, experimenting in draft events in a prototype file where i do all my testing, and still have not figured out a way to properly calculate how to set my CraftPoss Match variable to the correct number using item counting.
The result i am looking to get:
Id like it to calculate effectively the ratio of sticks to coal (ill repeat process for charcoal with some variations if I can just get this part fixed lol), and then ensure that for each stick, there is a piece of coal (or charcoal ), and present accurate variables for how many times matches can be crafted based on inventory count. Is this possible, is there way to do this ? I couldnt quite find a plugin I liked so im trying to build my own crafting system from scratch and this detail has me stumped. I would love any help or insight anyone has to offer!
I feel the code is pretty stripped down to as simple as it can be however I am openly willing to work with complex operations that require attention to detail, I am just trying to work out core functions of the game Ive been working on. Thank you so very much! I appreciate you and all your help and advice you have come to openly share, much love!
-Skelle xox
- 1 Stick
- 1 Coal (or Charcoal)
Var 1: ItemCount String : Set to number of string
Var 2: CraftPoss Rope = ItemCountString
Var 2: CraftPoss Rope /3
Now I can use this data to call in text via message or choices:
Choices :001 : Rope \v[2], 002: Matches \v[x], etc.
- and even from there of course add my icons or more/less text etc.
BUT -
I am struggling with exhibit A - which is not such an easy equation. I have tested many ways I could even compromise with it yet, I m unhappy with such compromise compared to such exact data being available like exhibit B.
I have been trying to dabble with MOD , Dividing, and adding, setting. Its all driven me to madness at this point. I want it to also make 3 Matches at once, and still deciding if I will be adding that next to text, or to the variable itself. ex Matches x3 \i[x] \v[x], or else multiply the final variable again by 3.
I hope I am getting this out correctly, I hve been looking everywhere for any insight or clues to a solution, been brainstorming plenty math, experimenting in draft events in a prototype file where i do all my testing, and still have not figured out a way to properly calculate how to set my CraftPoss Match variable to the correct number using item counting.
The result i am looking to get:
Id like it to calculate effectively the ratio of sticks to coal (ill repeat process for charcoal with some variations if I can just get this part fixed lol), and then ensure that for each stick, there is a piece of coal (or charcoal ), and present accurate variables for how many times matches can be crafted based on inventory count. Is this possible, is there way to do this ? I couldnt quite find a plugin I liked so im trying to build my own crafting system from scratch and this detail has me stumped. I would love any help or insight anyone has to offer!
I feel the code is pretty stripped down to as simple as it can be however I am openly willing to work with complex operations that require attention to detail, I am just trying to work out core functions of the game Ive been working on. Thank you so very much! I appreciate you and all your help and advice you have come to openly share, much love!
-Skelle xox