jass or gui item combine system
Moderator: Cheaters
-
- Junior Member
- Posts: 34
- Joined: August 12th, 2008, 9:35 pm
jass or gui item combine system
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
-
- Junior Member
- Posts: 34
- Joined: August 12th, 2008, 9:35 pm
-
- Junior Member
- Posts: 44
- Joined: April 12th, 2007, 2:43 am
- Location: STALKER!!!
Re: jass or gui item combine system
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).
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!!
-
- Junior Member
- Posts: 34
- Joined: August 12th, 2008, 9:35 pm
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm
Re: jass or gui item combine system
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.
Its a GUI Item Combine that Extreamly Easy to use.