• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Item Stacking

Status
Not open for further replies.
Level 7
Joined
Jun 19, 2017
Messages
144
I have a trigger that uses tomes that are "used when acquired" to make certain items stack. Eveything seems ok beside one thing. You can't purchase tomes with regular units (Non Hero), which makes couriers in my map unable to fire the trigger. Does anyone know a work around?
 
Level 7
Joined
Jun 19, 2017
Messages
144
Unit with inventory buying a tome
I just tried the test map in that thread and the trigger seems to not work as intended. The non hero unit in that trigger can buy tomes but cannot carry them, they are simply created on the ground next to the unit, it also can't pick them up from the ground afterwards, again stoping it's function as a courier for the main hero.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Unit with inventory buying a tome
I just tried the test map in that thread and the trigger seems to not work as intended. The non hero unit in that trigger can buy tomes but cannot carry them, they are simply created on the ground next to the unit, it also can't pick them up from the ground afterwards, again stoping it's function as a courier for the main hero.
The trigger works as intended for the OP of that thread, but it's not what you want it to do. I misunderstood and thought they wanted to resolve the problem the same way you did, but they were content simply to let the tome fall onto the ground if the unit couldn't hold it. I think you should look into the system ned linked, as that allows configurable stacking without using tomes (afaik). Your other option would be to instead sell dummy items from the shop; if it's a hero buying them remove the bought item and give them the right tome, but if it's a unit that buys them you'll have to replace and stack the items manually yourself.

Also tomes leak. You can fix them with this: [System] Item Cleanup
 
Status
Not open for further replies.
Top