| 08-15-2005, 07:02 PM | #1 |
Okay since WC3Campaigns got the new site some of the threads are messed up and I can't find information, so if anyone can please post replys with the trigger paths, I would be grateful. Thank you. 1) What's the correct trigger path to make it so that you can only have 1 weapon class/1 armour class/ etc... In the standard 6 space inventory. 2) What is the correct trigger path for stackable potions in the standard 6 space inventoy. Thanks to all that reply. |
| 08-15-2005, 08:06 PM | #2 |
Trigger path? There is none. You have to make triggers for those effects, there isnt a simple True/False value for those. Anyway the first one is easy, look in General, I recently posted a trigger for it. Basically it checks the inventory, if you dont have the item type, it lets you keep it, if you do, it drops it. |
| 08-15-2005, 09:20 PM | #3 |
You could also search for some of the great weaaddar's item systems in the submissions forum. |
| 08-15-2005, 09:35 PM | #4 |
1) You need 2 triggers and some sort of table that determines which item is a sword which is a shield, and that stuff First trigger would detect when a unit is issued the order "smart" over an item, in that case check if that unit doesn't have an item of that kind already, in that case show an error message to the unit and block the order Second trigger would run when any unit picks up an item, just do the same but consider that at the moment the trigger is executed the item will already be at the unit's inventory. 2) The easiest charge stacking method is detecting when a unit is issued an order over an item and the order has an id between 852002 and 852007 , that means that the player used drag and drop to move the item to another slot. Substract 852002 from the order id and you got the target slot position, now check if there isn't an item of the same type of the target item in that slot, in that case, save the charges the item in that slot had, remove that item, and increase the charges of the Target item depedning on the charges saved in that variable. You can improve this system, by adding a charge stacking method, if an item has more than 1 charge and it is dropped to empty slot, just create a new item on that slot and remove one charge from the item. |
| 08-16-2005, 03:32 PM | #5 |
Uh huh, thanks for the help guys... But what do you mean by this ID stuff... P.S. I can't find your thread Tim. |
| 08-16-2005, 04:00 PM | #6 |
Here's the link: http://www.wc3campaigns.com/thread_view.php?t=77418 Simple explanation of Vex post: For example, You just move one potion of health ontop of another PoT and they will stack. the ID is detecting what slot you moved from(or too, not sure) |
| 08-16-2005, 10:47 PM | #7 |
Thanks a lot. P.S. That thread helped a lot, ;). |
| 02-19-2006, 06:12 PM | #8 |
Hate to dig up an old thread, but could you possibly explain the ID comparison a bit more? I've failed to find the correct action triggers and conditions... Could you help direct me to the correct location of these triggers? Thanks! |
