Hi,
I'm trying to access the profile ValuesToDate list in a cloudscript called from a Rule, but i appear to be getting a null or undefined value in there. Other values, like "TotalValueToDateInUSD" work fine, but not this one. Any ideas.?
Hi,
I'm trying to access the profile ValuesToDate list in a cloudscript called from a Rule, but i appear to be getting a null or undefined value in there. Other values, like "TotalValueToDateInUSD" work fine, but not this one. Any ideas.?
Hi,
The titleID is FEA2
and here is some test code.
handlers.Rule_TestProfile = function (args, context) { var profile = context.playerProfile; var totalAmt = profile.TotalValueToDateInUSD/100; log.debug(totalAmt); for(var i=0; i<profile.ValuesToDate.length; i++) { var vtd = profile.ValuesToDate[i]; var s= "value: "+vtd.TotalValueAsDecimal; log.debug(s); } }
2 People are following this question.