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, but with a maximum of 5.

I tried doing this with the Rules module like this:

 - 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

However, it's impossible to pick 'flagged-node:field-value' in the Points section. How can I solve this issue?

I've also got a question about the 'maximum 5' condition. I made 2 seperate rules with an extra condition 'Data comparison': one with [flagged-node:field-value is lower than 6] and another with [flagged-node:field-value is greater than 5]. (Note that I can choose "field-value" here!) Isn't it possible to do this in just 1 single rule?

I already found [this][1], but I'm not sure whether that might help me.

  [1]: http://drupal.stackexchange.com/questions/51573/grant-user-points-equals-to-product-price?rq=1