Has anyone managed to do this yet? Is it even possible?
Thanks.
Modifié par Craig Graff, 19 janvier 2010 - 06:19 .
Craig Graff wrote...
Have you tried something like this?
[dascript]
#include "item_constants_h"
...
SetQuickslot(GetHero(), 4, ABILITY_ITEM_ACID_FLASK, "gen_im_qck_grenade_101");
[/dascript]
shennessy wrote...
The ability ID field comes from ABI_base.xls. If you can find a consumable in that list I would think that would work. If you cant, you could make your own entry (check out the adding a new spell tutorial for making a mergable 2da), and then make a script that finds that consumable in the inventory and uses it.
Maybe... CommandUseObject() will use a consumable.
and GetItemsInInventory with the right filter to find the consumable.