HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item Amounts

07-12-2004, 12:04 AM#1
FrostCyrus
I want to make a system with triggers that allows me to combine items
Example: You have one potion of healing and you pick up another. You end up with a potion of healing that has 2 charges.
Example: You have a potion of healing with 2 charges and you pick up one with 3 charges and now have a potion of healing with 5 charges.
Example: You don't have a potion of healing and you pick up one potion of healing to end up with one potion of healing with one charge (same thing with buying from shops).
Example: You have one potion of healing with 347 charges and you buy one from a shop and get only one potion of healing with 348 charges.

Got me? Please respond and tell me the best way to do this system. I've attempted already but I can never figure out how to distinguish between simply aquireing an item and purchasing one from a shop (I'll buy a quantity of one from a shop and the next quantity I buy will be 1000.) Help please!
07-26-2004, 04:46 AM#2
Jarin
I can help you with this. This is a very simple task. Contact me on MSN Messenger or by e-mail at [email protected] and I will show you the solution.
07-26-2004, 08:05 PM#3
randyM4A1
set charge remaining in triggers i have this triggers in my map,,but lazy to post it on here,,sorry
07-26-2004, 11:52 PM#4
dragnstitch
I did samething on my map.. works like a charm.. 1 problem is on full inventory you cant pick up the item..

here you go i found it

http://www.wc3campaigns.com/showthread.php?t=59676
08-06-2004, 05:31 PM#5
FrostCyrus
Wow, thanks. That clears a lot of things up.