System Artificial's Recipe System

Artificial

Without Intelligence
Reaction score
326
That's a result of this:
JASS:
//          - When used on an recipe added via the charged recipe thingy
//            the ingredient items won't recieve the amount of items they
//            had when the result was made, but the default amount of charges.
 

Artificial

Without Intelligence
Reaction score
326
DotA's recipe system isn't that weird from what I know. The finest thing in it is that it allows an item type to be used multiple times in a recipe, which is something this system (and many others) allows as well. :p
 

Nexor

...
Reaction score
74
but dota is using items that are used when picked up(like runes, so you can pick them up when your inventory is full)
 

Romek

Super Moderator
Reaction score
963
but dota is using items that are used when picked up(like runes, so you can pick them up when your inventory is full)
That's nothing to do with recipes.
Wc3 has runes in the actual game itself.
Play through the campaign. The very first mission has about 20 of them.

DotA didn't make Wc3.
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
but dota is using items that are used when picked up(like runes, so you can pick them up when your inventory is full)

there still a "smart" order when you ordered a hero to pick up item, even his inventory is full.
And it's nothing VERY special, it just checks recipes with the item in the ground and the items in inventory (so there are 7 items to check)

I have made a demo map, check it out.
I modify the Game Interface so there is no "Inventory is full" error message, you should display it by yourself.

And there is one problem, I don't know how to queue a unit's order by trigger :(, anyone know this ?

@Artificial, sorry for modifying your system.

EDIT: removes unnecessary debugs
Fixed a bug that allows 1 item to "self combine" when a recipe has several items of the same type as ingredients. :(
 

Attachments

  • [System] Modified RecipeSYS.w3x
    24.9 KB · Views: 537

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
One of the most fluent and elaborate recipe systems out there.

Resource approved.


P.S I took the liberty to clean the thread of bumps and double posts.

Andrewgosu
 

DruiD-Mk

New Member
Reaction score
0
Hey guys I am quite new here.. Mm. I am making maps for some time but i never used triggers so i need a little help so that I can add my recipes...
I tried to use this system and I can't enable the trigger..
It says:
Line 217: Expected a function name
What should I do ? Please help me out.

Btw on my map i just made a custom script like this:
call AddRecipe('evtl', 'lhst', 0, 0, 0, 0, 'ward')
 

brc

New Member
Reaction score
1
I was just wondering how do i make it so that only heroes can combine items because in my map units and buildings all have an inventory. Also if i take out the disassembling and disabling a recipe part of the trigger, will it get messed up? Thanks and +rep Artificial!
 

Artificial

Without Intelligence
Reaction score
326
> how do i make it so that only heroes can combine items
Set AUTO_COMBINE to false and then create this trigger:
Trigger:
  • Combine
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Triggering unit) is A hero) Equal to True
    • Actions
      • Custom script: call RecipeSYS_Combine(GetManipulatedItem(), GetTriggerUnit())


> if i take out the disassembling and disabling a recipe part of the trigger
If you don't want to use those, then you can just not use them anywhere. They aren't called unless you call them somewhere in your code yourself, so there isn't any need to remove them. Eg. if you only have the example trigger shown in the first post (the GUI one), the players won't be able to disassemble/disable recipes.

But anyway, removing the disassembling functions shouldn't do any harm, but removing the 'enabled' member from the struct will cause some syntax errors, so you'd need to edit the system's code in several other places, too (IIRC).
 

RaiJin

New Member
Reaction score
40
what if u just want to combine 2 items?

JASS:
call AddRecipe('B000', 'B001', 0, 0, 0, RESULT)


what do i set the other values too...
 

Artificial

Without Intelligence
Reaction score
326
JASS:

//      If you want the recipe to require less than 6 items, just give
//      zeros as ingredient arguments.

So you'd use
JASS:
call AddRecipe('B000', 'B001', 0, 0, 0, 0, RESULT)

(just had to add one zero there).
 

pdhc

New Member
Reaction score
0
can someone explain how to convert the code from vJASS to JASS using NewGen? thanks
 

Expelliarmus

Where to change the sig?
Reaction score
48
can someone explain how to convert the code from vJASS to JASS using NewGen? thanks
I don't think there is a button for that...
You will need to do it manually, however some features of vJass (eg Structs) are harder to 'convert'.
 

A.Dominion

New Member
Reaction score
0
how to make it compatible with Bag system?

for example you carry bag in you inventory that stock item, so in the end you have more than 6 items carried by yourself...:)

is it possible to check all item carried (even in the bags) to create recipe, and if so is it possible to create recipe with more than 6 items?
i guess that would also pose problem with compatibility between the jass code in the bag system and in you code...

but well just asking and maybe giving new ideas on things to implement (like a system combining: recip, bag, and stacking charge) :eek:

well your system look pretty cool so if i manage to use newgen i might use your system, unless i can make an easier one myself that isn't as customizable as yours but would be matching just the need of my map..:shades:
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
I think I made a big mistake.

I'm attempting to import your Recipe System, but cut all of my custom items from the same mould; thus, the rawcode for nearly all of my items is the exact same. Is there a way I can input the Ingredient variable to apply my items?

Danke!
 

Artificial

Without Intelligence
Reaction score
326
@A.Dominion
I guess it would be possible to also check from the bags, but that really depends on the bag system. The reason I didn't make this compatible with bag systems was that I didn't come up with any way that'd work with any given bag system, as I believe they work rather differently. ;p

@Chao
Multiple items cannot have the same rawcode, even if they were based on the same item. When you take the rawcode, you take the four first chars. The custom items' rawcodes in the object editor are like this:base where 'this' is the rawcode of the item itself and 'base' is the rawcode of the base item.

For example when I created a custom item based on Runed Bracers (brac), the rawcode shown in the object editor was I000:brac. The I000 part was the item's rawcode.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top