| 07-16-2004, 06:42 AM | #1 |
I had trouble combining items as you can see from my other post, it was a huge disaster and I have no idea what I was thinking. Here's my next attempt: Code:
Last Dball
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to Seven Star Dragonball
((Triggering unit) has an item of type One Star Dragonball) Equal to True
((Triggering unit) has an item of type Two Star Dragonball) Equal to True
((Triggering unit) has an item of type Three Star Dragonball) Equal to True
((Triggering unit) has an item of type Four Star Dragonball) Equal to True
((Triggering unit) has an item of type Five Star Dragonball) Equal to True
((Triggering unit) has an item of type Six Star Dragonball) Equal to True
Then - Actions
For each (Integer A) from 1 to 6, do (Item - Remove (Item carried by (Triggering unit) in slot (Integer A)))
Hero - Create All 7 Dragonballs and give it to (Triggering unit)
Hero - Give (Last created item) to (Triggering unit)
Else - Actions
Do nothingAs you can see, much less of a code than this: http://www.wc3campaigns.com/showthre...795#post571795 But the problem is.. I cannot pick up the last item because my inventory is full. Can anyone think of a way around this to make my trigger work? |
| 07-16-2004, 07:01 AM | #2 |
I modified the trigger to look like this: Code:
Last Dball
Events
Unit - A unit Is issued an order targeting an object
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Target item of issued order)) Equal to Seven Star Dragonball
((Triggering unit) has an item of type One Star Dragonball) Equal to True
((Triggering unit) has an item of type Two Star Dragonball) Equal to True
((Triggering unit) has an item of type Three Star Dragonball) Equal to True
((Triggering unit) has an item of type Four Star Dragonball) Equal to True
((Triggering unit) has an item of type Five Star Dragonball) Equal to True
((Triggering unit) has an item of type Six Star Dragonball) Equal to True
Then - Actions
For each (Integer A) from 1 to 6, do (Item - Remove (Item carried by (Triggering unit) in slot (Integer A)))
Hero - Create All 7 Dragonballs and give it to (Triggering unit)
Hero - Give (Last created item) to (Triggering unit)
Else - Actions
Do nothingNow the only problem is, after removing all of the items and creating the All 7 dragonballs, it also picks up the item I clicked on.. I know I'm a little slow sometimes, and I'll probably have this fixed by the time i get a reply, but incase I don't, I'll take all the advice I can get. |
| 07-16-2004, 07:06 AM | #3 |
Ugh.. nevermind. I frustrate myself the way I do these things sometimes. I'll sit and look at it all day and can't figure it out. I'll post a question here and figure it out as soon as I do. My mind works in very mysterious ways. Sorry for the room I took up. |
| 07-16-2004, 01:20 PM | #4 |
Don't worry I've done worse. While figuring out how to make missiles in Tank Commanders (don't know if you'ev played it) I slept on a problem and woke up yelling "it's the kaboom" because it I figured out that I'd set a field in that ability wrong. |
