Appearance
Calculated points (earn rule) works out one amount from the activity that starts an Event based automation, using the formula you type. The same amount is written into every balance you tick. A rule with no formula awards nothing.
Before you start
Use Event based. On Time based the choice reads “Calculated points (earn rule) (needs a triggering activity)” and stays unavailable. On a mission reward it is the same. When a mission reward already holds that action, the note reads “Nothing is awarded here: Calculated points works out an amount from the activity that triggers it, and a mission completion carries none. Use Add points or Add XP for a fixed amount, or set up an earn rule in Automation.”
- Open CRM. Under Automation, choose Event based. The title is Event based Automation. Press Create, or open a rule and press Edit on Action. The dialog title is Action.
- Set Action type to Calculated points (earn rule). It sits under Rewards.
- Set Activity that earns, Amount property, Unit, and Counts. The activity hint reads “The activity the formula calculates from, out of this brand’s ingested events. The rule awards once per activity.” Counts opens on Real money (recommended).
- Under Balances, tick at least one. The hint reads “The calculated amount moves into every balance chosen here — the same amount into each, from one award.” The boxes use the names from Settings, General. Left as they ship, those names are Coins and XP, plus Leaderboard points.
- Type Formula. The placeholder is
qualifying_amount / 1000. The hint reads: “Reads qualifying_amount — this activity’s amount in the brand currency’s minor units, after Counts — and level_rank. “1 per R$10” is qualifying_amount / 1000. A ceiling per activity is min(…) here; the daily total is below.” - Leave Per day at most empty for no cap, or type one amount. Fill How to earn, for customers. That line is what the player can read.
- Press Apply, then Save on the rule. Cancel closes the dialog and leaves the action as it was.
A formula that cannot be read shows the reason in red under Formula. The line under the form starts “The formula: ”. Apply stays off while that line, or one of these, is showing:
- “Choose at least one balance for this award to move — Coins, XP or Leaderboard points.” After you rename the counters in Settings, General, this line uses those names.
- “Set what counts and a formula. A calculated rule with no formula awards nothing.”
- “Choose the activity this rule counts.”
- “Choose which amount on that activity the formula reads.”
- “Choose the unit that amount is in. An amount in another unit does not count.”
- “The minimum must be a plain amount, such as 10 or 10.50.”
- “The daily cap must be a plain amount, such as 500.”
- “Write the one line customers read about how to earn this. It is shown on the brand's own page.”
Write the formula without a leading =. It takes numbers, the names qualifying_amount and level_rank, and the signs + - * / < > = ! ( ) , % and a point. A point is the decimal mark. Thousands separators, quotes, and comments are refused, and the red line says so. Amounts in the formula are minor units of the brand currency: in a currency with two decimals, 1000 is 10.00.
The number the formula works out is how many of each ticked balance the activity earns. A fraction is taken down to the whole number below, so 1.9 earns 1. A result below 1 earns nothing for that activity. Per day at most, when you set it, is one cap on that award for the brand’s own day, however many balances you ticked.
A rule saved earlier with a formula and no balances does not award. On the list, Status reads Needs review, and Action reads “Calculated points: needs review before it awards”. Open it, tick a balance, finish the form, and press Apply, then Save. A rule with no formula reads “Calculated points: no earn formula, awards nothing”.