| 02-12-2005, 08:48 AM | #1 |
I did a search forum for this and got a lot of results, many people have posted their triggers for item combination. The problem is there are a lot of people claiming that they have the best trigger for item combination and that other people's triggers cause problems. I can't understand trigger language so I can't decide for myself which one is the best. So, can anyone tell me which is probably the best item combination trigger for a small map that might have about 40 different item combinations, taking between 2-4 items per combination? And can you give me a link to whatever trigger it is? Thanks |
| 02-12-2005, 01:21 PM | #2 |
Well, you are asking the same people that have posted those triggers, so you might get equally confusing answers here. :) Before I can reccomend anything, I need to know one more thing: does any of the item combinations you are going to have require multiple of the same items (like, for example, three circlets of nobility merging into a crown of kings)? |
| 02-12-2005, 01:30 PM | #3 |
well persoannly i think vexorian's is the best you can find it in wc3sear |
| 02-12-2005, 09:34 PM | #4 |
Thanks guys :) Anitarf : Nah, in the combinations, there will be no duplicate items, no items used twice or three times. |
| 02-13-2005, 04:02 PM | #5 | |
Quote:
In that case, you can use a system that uses the boolean comparison "unit has item of type" rather than having to check every inventorly slot individualy. A simple individual trigger would look like this then: Code:
Events:
Unit acquires an item
Conditions:
((hero manipulating item) has item of type (required item 1)) equal to true
((hero manipulating item) has item of type (required item 2)) equal to true
((hero manipulating item) has item of type (required item 3)) equal to true
Actions:
remove (item carried by (hero manipulating item) of type (required item 1)) from (hero manipulating item)
remove (item carried by (hero manipulating item) of type (required item 2)) from (hero manipulating item)
remove (item carried by (hero manipulating item) of type (required item 3)) from (hero manipulating item)
add (result item) to (hero manipulating item)This is a very simple trigger that only checks if the hero has any items of the required type on him, but it isn't able to check how many of those items has he, if he has any. That's why this trigger can only be used for item combinations that don't require more of the same item. In your case, copy-pasting this trigger for every combination you have is the simplest thing to do. It's not a very clean solution, but nothing bad enough to cause poor map performance. |
| 02-14-2005, 02:30 AM | #6 |
Wow, thanks a lot Anitarf, it works beautifully!! |
| 02-18-2005, 02:31 AM | #7 |
Nice, very nice, but what if you DO need more than 1 of the same item to create another item, THEN what is the trigger coding?? |
