I want to add player tag "ad_free" when player get "ad.free" item.
So I created a rule with player_inventory_item_added.
handlers.AddTag = function (args, context) { try { server.AddPlayerTag({ PlayFabId: currentPlayerId, TagName: args.tag }); log.debug("add tag : " + args.tag); } catch (error) { log.error(JSON.stringify(error)); return null; } }
I added a "ad.free" item to player.
I only got a "Player inventory item added" event.
And I purchased this item with virtual currency, got same result.
There is no add tag event, [add tag] result.(GetPlayerTags show none tag)
I tried adding the conditions.[or entity.id is not ""] and many other things.
But I still couldn't get playstream event, [add tag] result.
Rule with player_inventory_item_added is working?