I'm trying to setup a script so that if I become severly injured while in combat, I'll automatically drink a healing potion. So I'm trying to do something like this (with more triggers obviously!):
IF
HasItem("Potion of Healing",Myself)
THEN
RESPONSE #100
UseItem("Potion of Healing",Myself)
END
Now the HasItem call always returns False. And the UseItem doesn't do anything. What am I doing wrong? I'm guessing I'm not specifying the potion correctly - but if that's the case, then how should I be specifying it?
Scripting - How do you use potions?
OK, I figured it out. If anyone else is interested, here's how you'd use a potion of healing:
IF
HasItem("POTN08",Myself)
THEN
RESPONSE #100
UseItem("POTN08",Myself)
END
Of course you'll want to fill in some more triggers (like HPPercentLT) or you'll just drink up all your healing potions!
To use a potion of extra healing, replace "POTN08" with "POTN52".
For a full list of items, go here
IF
HasItem("POTN08",Myself)
THEN
RESPONSE #100
UseItem("POTN08",Myself)
END
Of course you'll want to fill in some more triggers (like HPPercentLT) or you'll just drink up all your healing potions!
To use a potion of extra healing, replace "POTN08" with "POTN52".
For a full list of items, go here