- Joined
- May 20, 2006
- Messages
- 43
Alright, I need help on a system.
I've tried but failed, on my own, and I'm not good at JASS nor GUI, so comments would be appreciated.
The plan is to create a system which does the following:
Unit uses ability 'Combine':
Checks if Unit has item 'A001'
Checks if Unit has item 'A002'
[and needs to be able to have more than 1 combo set]
If true:
Remove item 'A001' from unit
Remove item 'A002' from unit
Create item 'A003' on unit
Display text "Item Created"
If false:
Do nothing.
For purposes of things, I'd appreciate it if you put comments into the coding.
For the sake of simplicity, the unit which creates the item would be 'hbla' but it should just be able to check depending on the triggering unit who casts the ability, if i'm not mistaken.
Thanks in advance.
P.S. I don't need to combine items with charges for now, and the simpler the coding the better.
I've tried but failed, on my own, and I'm not good at JASS nor GUI, so comments would be appreciated.
The plan is to create a system which does the following:
Unit uses ability 'Combine':
Checks if Unit has item 'A001'
Checks if Unit has item 'A002'
[and needs to be able to have more than 1 combo set]
If true:
Remove item 'A001' from unit
Remove item 'A002' from unit
Create item 'A003' on unit
Display text "Item Created"
If false:
Do nothing.
For purposes of things, I'd appreciate it if you put comments into the coding.
For the sake of simplicity, the unit which creates the item would be 'hbla' but it should just be able to check depending on the triggering unit who casts the ability, if i'm not mistaken.
Thanks in advance.
P.S. I don't need to combine items with charges for now, and the simpler the coding the better.