• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

System - Recipe Combine 1.4 (GUI & vJass)

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Items connection system 1.4 Final.
Setup is done in GUI and system core is in vJass, meaning that you will use it as GUI with performances of vJass.

System is compatible with any Warcraft III Patch!



Requires: JNGP v5d or JNGPS for those who have it



Version 1.1 - Sound_Point cleared whit custom script.

Version 1.2 - Now sound custom created, 2x triggers destroyed (dont need them laiter)

Version 1.3 - Totally updated this system to very simple a good item combine system.
Decreased from a big number of global variables to only 4 variables.
Speed of system totally improved, preloaded model file, generated one trigger
less + make it much more friendly and easier to install.

Version 1.3b - Reduced a loop (lot of it) which makes this system much faster now.

Version 1.4 - Made system in vjass, making it very easy to install!




1) Go to trigger editor and copy Category: 'Trigger Recipe', then paste it in your map.

2) Edit trigger: 'Load Items' to your own needs and enjoy!

NOTE: Make sure that "File\Preferences\Create unknown variables while pasting trigger data" (is enabled)



Have any other question, ask here!

HAVE FUN!!!


Keywords:
Items System, System, Systems, Items, Item Combine, Combine, Connection, Item Connection, Recipe, Recipe System, Recipe Combine, Recipes
Contents

System - Recipe/Disassemble (Map)

Reviews
12.12 IcemanBo: For long time as NeedsFix. Rejected. 09:35, 3ndth Sep 2015 This resource has been set to Need Fix by BPower. Reason: Recipe Combine is basically identical to Recipe System without the functionality to disassemble item...

Moderator

M

Moderator

12.12
IcemanBo: For long time as NeedsFix. Rejected.

09:35, 3ndth Sep 2015

This resource has been set to Need Fix by BPower.

Reason:
Recipe Combine is basically identical to Recipe System without the functionality to disassemble item recipes.
The mirror image sound overlaps with the sf sound, hence is not so important difference to the system of dk-diablo.
However the main reason for my decision is a unit handle leak in your Actions function. The player unit item pickup event occurs frequently and so does the leak.

From moderator to user:
If you are already using Recipe Cobine 1.4 successfully in your map, please make sure to fix the leak in the TriggerAction function ( function Actions ).
For this add set u = null to the end of the function. The remove the return after the following line:
call DestroyEffect(AddSpecialEffectTarget(ITEM_COMBINE_EFFECT, u, ATTACH_POINT)).


Diablo-dk: We do already have a recipe system, but since many people here prefer GUI over jass, this will be approved.
The dis-advantage of this system is the huge loop.
 
Level 6
Joined
May 13, 2007
Messages
231
I tested it, it works nicely and in a simple GUI system, good job! Though not sure why many people would use the disassemble part of the ability but that was nice too. (Liked how in 2 part combos it only split up the 2nd stage and not every single one in the 2-part combo)
This should be approved no problem, if theres a reason why it isn't then someone needs to be smacked. >.>
 
Yes I cleard the sound location now. Ok I maded this in GUI because some people say that in GUI cant be done this system so I maded it to show people that it can be done. By the way what do you mean that disassemble part of ability is maded in big loop. It cant be done whitout loop ok, or I cant cut it in less loop. If you think loop can be reduced then tell me how plz.
 
Level 3
Joined
Jun 18, 2007
Messages
20
Very useful to most people.

But, you really need to fix that loop, it doesn't matter if you tested it. Testing it on LAN, on your campian custom games, are a lot different that testing it oin battle.net.

That loop will become 3x/5x worst than it is when played on battle.net, and as well, with more people, it will increase even more.

Just fix the loop, and it will be perfect.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Hmm... why doesn't it work for me?:
I used 2 of the same items to create 1 better item, and that item can also upgrade when you have 2 of those.
But when I buy 1 weapon, it instantly upgrades 'till the last level...

I used it like this:
Set Item_need[17] = End
Set Item_need[18] = Diamond Sword
Set Item_need[19] = Diamond Sword
Set Item_need[20] = End
Set Item_create[6] = Diamond Sword

If I use different items it doesn't do anything.
 
ok guys i will try to think of something to try reduce the loop. ap0calypse your problem is very easy to fix i test in my map that stuff you say and it works great. The problem in your map must be something like all this (your) items have same name and i think you miss clicked somewhere and then all system goes down. You must only check did you missclicked some item and/or maybe something other is wrong, maybe whit trigger you imported, if you create your own variable in map whit same name make shure that is has enough big array or maybe some variable in code is set wrong when you whos copying code, try this and it will work for you for sure ^^ because i test this and it works ok gess you will find out where it the bug good luck.
 
Yes that sound is played when item is fused. You need to go to sound editor, then go to spells\abilities\orc\mirror image\mirror image.wav and right click on her and click use as sound. The sound will appire in your sound list. Double clicl on her change name to Recipe_Snd and set pitch to 1.20, then click ok, goto trigger editor click this gg_snd_Recipe_Snd and click ok do that at every place where it gives you that function is off(where is red trigger icon). Good luck!
 

Tan

Tan

Level 3
Joined
Sep 25, 2007
Messages
34
USE THIS EASY RECIPE SYSTEM INSTEAD: http://www.hiveworkshop.com/forums/showthread.php?t=35788S
 
Level 3
Joined
May 31, 2007
Messages
23
ZXander_Stealth:
Thank You...For a nice skill to make recipes...But I cant use your trigger cause i copy to my map but your trigger didnt works... Dont know
I got the same problem even i use normal WE
 
Ok! I really don't understand what you want to say, this comment should not be here, as you did not say anything about this system other that its approved. It has been approved a long time ago, now its applied mass update on system. That's all! This comment you posted should be in hanky's vast plain spell, or you can contact moderator about that, not here!
 
Level 5
Joined
Nov 13, 2008
Messages
41
HERE IS WHAT I DID:
JASS:
function Trig_Load_Items_Actions takes nothing returns nothing
    // | |
    // Staff of Wizandry
    set udg_CItemType[1] = 'ratf'
    set udg_CItemType[2] = 'ckng'
    set udg_CItemType[0] = 'desc'
    call NewItemGroup()
    // END
    call DestroyTrigger( GetTriggeringTrigger() )
endfunction

//===========================================================================
function InitTrig_Load_Items takes nothing returns nothing
    set gg_trg_Load_Items = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_Load_Items, 0.10 )
    call TriggerAddAction( gg_trg_Load_Items, function Trig_Load_Items_Actions )
endfunction

BUT THE PROBLEM IS IT SHOWS AN ERROR IN LINE 37, THAT IS WHEN I CALL COSTUM SCRIPT:call NewItemGroup() !!! CAN U TELL ME HOW TO FIX IT?

I DID MAKE THIS IN JASS I JUST CONVERTED GUI TRIGGER TO TEXT SO U CAN SEE.
 
Level 3
Joined
Oct 18, 2008
Messages
19
Okay, i've got a problem

i just downloaded it, copied the mapheader and the triggers and put it in my mapheader and added the triggers. as soon as i save i get 1747 error lines :<.

Can you help me? I copied the map header into mine, and then copied the triggers.

-EDIT-

Is it because i copied the map header into mine? I think it screwed up all of my other triggers :<. But i tried to NOT copy the map header and there were about 3 error lines :< PLEASE HELP URGNETTTTT!!
 
junk... guy and jass
i want just guy

what exactly do you mean? there is no jass since i said you just need to copy that and edit GUI so you don't need to know jass, so please read Installation and its not "guy" you know what guy means its called "GUI" not guy and as i said you have only GUI you don't have jass since i said that that code must be in your map so that engine works like blizzard.j script for example.
 
Level 1
Joined
May 16, 2009
Messages
1
// Item Group 1
set udg_CItemType[1] = 'rat6'
set udg_CItemType[2] = 'rat9'
set udg_CItemType[0] = 'ratf'
call NewItemGroup()

the call NewItemGroup() is giving me the error even when i copy it strait from ur map
nvm i fixed it
 
Last edited:
Level 5
Joined
Jun 5, 2009
Messages
121
awww :(

i get all the time that error

Scritp Error
Load Items
compile error
set udg_CType[udg_ItemN-1] = udg_CItemType[0]

my english isnt really good so i cant find the problem in that trigger or script, and iam not good in scripting so thats 2 problems why i need help :/


EDIT: My fail, i forget 1 variable :mwahaha:
 
Last edited:
Level 3
Joined
Sep 6, 2007
Messages
42
This package works great, but for some reason my map no longer loads in Warcraft 3 and when i hit test the map doesnt load either. I got no errors from saving. When i click on the map within the game the description and picture pops up but no player slots. The only thing i added to the map was the item system you created and was done that way to go and test it.

If you want i can pm you the map, but it may releate to the issues i pmed u about earlier about possible missing files.
 
This package works great, but for some reason my map no longer loads in Warcraft 3 and when i hit test the map doesnt load either. I got no errors from saving. When i click on the map within the game the description and picture pops up but no player slots. The only thing i added to the map was the item system you created and was done that way to go and test it.

If you want i can pm you the map, but it may releate to the issues i pmed u about earlier about possible missing files.

hmm yeah i would like if u can send me the map it would save me from thinking what can it be again!

maybe patch...
 
Level 3
Joined
Sep 6, 2007
Messages
42
Its the jass i believe because i have had no issues until this was put in and jasscraft gives statement of function syntax errors along with finding several undeclared variables which may be the fact that i dont have them as i searched in the variable listings and couldnt find the variable ItemN which was a part of the errors.

I am seeing now if the missings variables will fix it.
 
Its the jass i believe because i have had no issues until this was put in and jasscraft gives statement of function syntax errors along with finding several undeclared variables which may be the fact that i dont have them as i searched in the variable listings and couldnt find the variable ItemN which was a part of the errors.

I am seeing now if the missings variables will fix it.

in older version this was a problem coz you had to declare variables yourself... in this new version you only need to declare your main variable and thats all.

overall i suggest you to dl JNGPS and enable EGUI! EGUI has Item Config type which allows you to make recipes by few clicks, its more readable and by one click you can have fast Item Stacking...

try out EGUI and you will see what i mean, i dont suggest you to use this... overall this systems are as well fast and well coded but ones from my ultimate library are ofc better, as well its more easy no need for jass scripts and such...

Greets!
~Dark Dragon
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
Cant seem to get it to work after copied it over to my map. The error i get is: "The trigger "item combine core" must have an initialization function called "inittrig_item_combine_core". Also gets error on each of the "Call NewItemGroup()" trigger, Says "Expected a function name". Anyon e know what i've done wrong or how to fix this? Thanks!
 
Level 7
Joined
May 6, 2008
Messages
284
Cant seem to get it to work after copied it over to my map. The error i get is: "The trigger "item combine core" must have an initialization function called "inittrig_item_combine_core". Also gets error on each of the "Call NewItemGroup()" trigger, Says "Expected a function name". Anyon e know what i've done wrong or how to fix this? Thanks!

I happen to have same problem cant find a way to fix it can you tell :(

here is the whole trigger

  • Load Items
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- --- --------
      • -------- Item Group 1 --------
      • Set CItemType[1] = Gauntlets of Ogre Strength +3
      • Set CItemType[2] = Raw Material
      • Set CItemType[0] = War Gauntlets
      • Custom script: call NewItemGroup()
      • -------- ======= --------
      • Custom script: call DestroyTrigger( GetTriggeringTrigger() )

EDIT+

Well i made my own recipe trigger.

But you can still fix this problem for that other guy
 
Last edited:
Level 5
Joined
Aug 6, 2009
Messages
136
Cant seem to get it to work after copied it over to my map. The error i get is: "The trigger "item combine core" must have an initialization function called "inittrig_item_combine_core". Also gets error on each of the "Call NewItemGroup()" trigger, Says "Expected a function name". Anyon e know what i've done wrong or how to fix this? Thanks!

yep it worked fine just a while ago untill now.

You should really fix this...
 
Top