I'm searching now for hours, but I just can't find a function which gives me the list of the learned recipes.
How do I have to do this?
GetArraySize(GetItemsInInventory(oPC, GET_ITEMS_OPTION_ALL, 0, "", TRUE)) - GetArraySize(GetItemsInInventory(oPC, GET_ITEMS_OPTION_BACKPACK, 0, "", TRUE)) - GetArraySize(GetItemsInInventory(oPC, GET_ITEMS_OPTION_EQUIPPED, 0, "", TRUE))That is = 0. So, "ALL" doesn't give more than "BACKPACK" + "EQUIPPED"
GetArraySize(GetItemsInInventory(oPC, GET_ITEMS_OPTION_ALL, 0, "", FALSE)) - GetArraySize(GetItemsInInventory(oPC, GET_ITEMS_OPTION_ALL, 0, "", TRUE))That gives exactly the number of plot items I see in the GUI. So, learned recipes are no plot item.
Modifié par Schwinni, 09 avril 2010 - 09:11 .
object learned = CreateItemOnObject(R"gxa_im_cft_run_110.uti", OBJECT_SELF, 1, "", FALSE);nothing is shown. Even worse, no object is returned. You can test it:
if (GetObjectType(learned) != OBJECT_TYPE_INVALID) {
DisplayStatusMessage("You learned Journeyman Barrier Rune Tracing.");
}
The message isn't created, so the type is OBJECT_TYPE_INVALID.