no tomes for unit

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

CHA_Owner(NAMM)
Newcomer
Posts: 9
Joined: November 26th, 2008, 2:50 am

no tomes for unit

Post by CHA_Owner(NAMM) »

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 :(
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: no tomes for unit

Post by Arabidnun »

Can you please link your map for me?
User avatar
Bl00D R3av3r
Senior Member
Posts: 165
Joined: January 25th, 2008, 5:20 pm
Title: Lazy

Re: no tomes for unit

Post by Bl00D R3av3r »

maybe edit the select ability of the shop to only select heroes, than only heroes can don't click me tomes.
Image
Sig by TheWand
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: no tomes for unit

Post by Aero »

Bl00D R3av3r wrote:maybe edit the select ability of the shop to only select heroes, than only heroes can don't click me tomes.
That wont work. It will still select the unit.

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.
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: no tomes for unit

Post by Rich Kane »

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.
Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Re: no tomes for unit

Post by Black-Hole »

Couldent he just make the Mule clasified as an item? With Invintory? Or make it a classified as a building