no tomes for unit
Moderator: Cheaters
-
- Newcomer
- Posts: 9
- Joined: November 26th, 2008, 2:50 am
no tomes for unit
i have a item i made in one of my shops that creates a summoned pack mule that lasts for a limited amount of time what trigger could i use to prevent it from buying tomes since each time you don't click me a tome with it the game crashes
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
-
- Senior Member
- Posts: 165
- Joined: January 25th, 2008, 5:20 pm
- Title: Lazy
Re: no tomes for unit
maybe edit the select ability of the shop to only select heroes, than only heroes can don't click me tomes.
Sig by TheWand
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: no tomes for unit
That wont work. It will still select the unit.Bl00D R3av3r wrote:maybe edit the select ability of the shop to only select heroes, than only heroes can don't click me tomes.
My suggestion:
Make sure the item "Tome of XXX" has the field "Automatically use item on acquisition" set to FALSE.
Then make a trigger that if the pack mule picks up an item...and item is a tome...drop item.
That's what comes to mind. Although, I think if you make a custom inventory ability, there's a field you can edit that prevents the unit from using any items. You could experiment with this too.
-
- Member
- Posts: 77
- Joined: May 27th, 2008, 9:08 pm
Re: no tomes for unit
im pritty sure the basic unit inventory (not hero) cant use items that are given to them so as long as the auto use item is set to false and the inventory is a normal unit then it should be fine.
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm
Re: no tomes for unit
Couldent he just make the Mule clasified as an item? With Invintory? Or make it a classified as a building