jass or gui item combine system

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

jass or gui item combine system

Post by Dark_coolness »

I want to have a trigger so that when you use a ability you have it will combine the items like (claws of attack +6 + claws of attack +6 = claws of attack +12) and also use able with 3 items like (Ring of Protection +2 + Ring of Protection +2 +Ring of Protection +2 = Ring of Protection +6), and if it could be done in gui it would be better. Please Help
Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

Re: jass or gui item combine system

Post by Dark_coolness »

someone please help.
Sevion
Junior Member
Posts: 44
Joined: April 12th, 2007, 2:43 am
Location: STALKER!!!

Re: jass or gui item combine system

Post by Sevion »

I only see a few solutions, none of them very simple.

You could save recipes into a hashtable or array and go by that.

Or you could do a huge if/then/else, but this is not recommended as it's very inefficient.

Going by the hasthable, which is the more efficient of the two (hashtable and array), you'd have to input the recipes manually as there's no way of getting object data from the items (Claws of Attack +X, you can't retrieve the X easily).
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!
Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

Re: jass or gui item combine system

Post by Dark_coolness »

could you give me a example of how i could do this?
Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Re: jass or gui item combine system

Post by Black-Hole »

I perfected my Trigger i had here before, download it here http://forum.wc3edit.net/triggering-edi ... 14108.html

Its a GUI Item Combine that Extreamly Easy to use.