I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field + 5.

I tried doing this with the Rules module in 2 different ways:

Trial 1:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:

  • Grant points to a user: 5
  • Grant points to a user: ... However, it's impossible to pick flagged-node:field-value in the Points section.

---

Trial 2:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:

  • Calculate a value: [flagged-node:field-value] "+" 5. (Variable name = result)
  • Grant points to a user: ... But then, the variable 'result' is not available.

How can I solve this issue?