object oItem = UT_AddItemToInventory(R"aw_hand_arcanearts.uti", 1, OBJECT_INVALID, "", TRUE, FALSE);
EquipItem(stEvent.oCaster, oItem);
It seems like what you're struggling with is optional parameters. Normally with a function call you must provide the exact parameters in the exact order. With optional parameters, you use fewer parameters when making the function call, and the default values will be used instead. However, the order must still be maintained, and you can only omit from the rightmost optional paramater working your way in. As above, I had to declare the oInvOwner and sItemTag parameters even though I wanted the default values, because I wanted to overwrite the bSurpressNote and bDroppable parameters which are further to the right.
The wikipedia article might be easier to understand than my ramblings:
http://en.wikipedia....efault_argument
Modifié par DavidSims, 16 mars 2010 - 11:09 .