View Single Post
Old 12-30-2003, 05:40 AM   #4
philip
Galvatron
 

Join Date: June 24, 2002
Location: aa
Posts: 2,101
I quickly did this to test with a lever. You could change the GetLastUsedBy() to GetPCSpeaker(), and change the item property to what you want and apply it to the Actions Taken tab.

Quote:

void main()
{
AddItemProperty(DURATION_TYPE_PERMANENT, ItemPropertyDamageBonus(
IP_CONST_DAMAGETYPE_ACID, IP_CONST_DAMAGEBONUS_2d8),
GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetLastUsedBy()));
}
The OC is so complicated cause there's the small cutscene in which you're weapon is taken out of your inventory. I think the OC is nice to see how some things work but that everything can be a lot shorter if you write it yourself

edit: to align the script better in the quote.

[ 12-30-2003, 05:42 AM: Message edited by: philip ]
philip is offline   Reply With Quote