| 12-30-2002, 10:06 PM | #1 |
It seems pretty straight forward, but when Autobook is turned on for the player, this trigger will happen EVENT Player 1 aquires and item Player 2 aquires and item Player 3 aquires and item Player 4 aquires and item Player 5 aquires and item Player 7 aquires and item Player 8 aquires and item Player 9 aquires and item Player 10 aquires and item Player 11 aquires and item CONDITIONS (Item type of (Item being manipulated)) equal to Health Manual ACTIONS If (Autobook [(Player number of (Owner of (Triggering unit)))] Equal to True) then do (Hero - Order (Triggering unit) to use (Item being manipulated)) else do (do nothing) My earlier trigger that toggles Autobook on/off seems to work fine, because there is an error message saying if it is already on or off (which functiosn correctly). Now this has me stumped, it's supposed to allow the hero that buys 'Health Manual' to use it, only if it is a health manual, and only if Autobook[PLAYER NUMBER] is True. EDIT: If Autobook isn't enabled, the item will jsut remain in the inventory, which is what it is doing right now - even with it activated. |
| 12-30-2002, 10:10 PM | #2 |
Add a wait .25 trigger in. Or maybe the unit isn't triggering it. [This message has been edited by me, FYI] |
| 12-30-2002, 10:11 PM | #3 |
Nope, your wrong. The UNIT does trigger it, since he is the one recieving the item. But picky is a factor here, I had to add a small wait command (0.25 seconds) and it works. Jeez |
