• 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.

Inventory Stack Help Please

Status
Not open for further replies.
Level 1
Joined
Sep 10, 2006
Messages
4
Okay... I'm pretty proficent in triggering, and scripting, yada, yada, But I'm trying to make a trigger for an item that increases your hero/ship Inventory by 6 more slots...

I worked out a trigger that worked for all my hull/ sail upgrades that only lets you purchase one of each, but for some damn reason this method does not work for my Ship Inventory Upgrade, it just keeps stacking, and stacking...

I was wondering if anyone had any advice on how to get it so that you can only purchase one Inventory Upgrade...

A TUTORIAL WOULD BE MUCH APPRECIATED :D :D PLEASE, PLEASE?
 
Level 1
Joined
Sep 10, 2006
Messages
4
Yeah, I'm need a trigger that will make my ship have 12 inventory slots total. No more no less... But it just keeps stacking.
 
Level 1
Joined
Sep 10, 2006
Messages
4
M'kay here goes... You start off with 6 inventory slots by default... I have an item that gives you six additional slots... I need a trigger that allows you to only purchase the item once. (IT keeps stacking however as it stacks it creates a new inventory every time and the trigger does not recognize that the unit already has the Hull Expansion Item... Therefore it just keeps stacking...

This might help... If you have ever played Tank Wars or Battle Tanks there is an Item called "Assimilate" on the map that allows you to have six more spaces, but you can only purchase one of the items... I tried opening the map but of course it was protected.

Thanks for both your help... Sorry if this wasn't clear.
 
Level 16
Joined
Oct 30, 2004
Messages
1,277
Hmm if I understood you correctly, your problem is that you want the item to be bought only once? Well the solution is simple, just make a boolean variable 'hasitem', default false.
Then when the item is bought for the first time you set 'hasitem' to true. And have a condition check what status the boolean is.
 
Status
Not open for further replies.
Top