Log in

Stats

  • Category: Games
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-3-19
  • Downloads: 2071
  • Recommendations: 11

Releases


Previous releases:

Other Projects

View Ismayil Kharedinov's plugins

hypeGameMechanics for Elgg 1.8

Game mechanics (points and badges) for Elgg

Features

hypeGameMechanics allows your users to:

  • Earn points actively for performing certain actions / activities on the site
  • Earn points passively by receiving interactions on their content items (e.g. ratings, comments, likes)
  • Claim badges when a set of defined criteria are met

Introduction

This plugin is governed by a set of 'rules' - conditions that describe an event (action). Each rule has a unique name and defines a set of conditions that should be met for the points to be awarded or deducted.

Rule Definitions

A set of rules can be extended / modified via the 'get_rules','gm_score' hook.

See readme.md for more.

Throttling

Global settings are exposed in the plugin settings, but you also override those for individual rules.

  • daily_max - maximum number of points the user can accumulate each day with all rules
  • daily_action_max - maximum number of points the user can accumulate each day with a given rule
  • alltime_action_max - maximum number of points the user can accumulate with a given rule
  • daily_recur_max - maximum number of times the points can be collected each day with a given rule
  • alltime_recur_max - maximum number of times the points can be collected with a given rule
  • object_recur_max - maximum number of times the points can be collected for a single object with a given rule This can be helpful to throttle rules that apply to multiple events, such as 'create','object' and 'publish','object'. Another example would be likes that only apply once to an object
  • daily_object_max - maximum number of points the user can collect each day by performing actions on a single object
  • alltime_object_max - maximum number of points the user can collect by performing actions on a single object
  • action_object_max - maximum number of points the user can collect with a given rule on a single object For example, you can limit the maximum number of points for commenting on an object

Badges

Badges are rewards given to users upon fulfillment of predefined conditions. Each badge can be conditioned with 4 criteria:

  • A minimum number of points the user should have
  • Up to 10 rule definitions with a number of recurrences for each rule
  • A number of points a user should spend to uncover the badge
  • Other badges that are required before a badge can be claimed

There are 3 types of badges:

  • status - status badges will define current user status on the site
  • experience - experience badges will be displayed on the user profile to symbolize achievements/contributions
  • surprise - surprise badges will not be visible in the badge gallery

Notes

  • Administrators are exempt from point rules

Examples

See readme.md

 

Release Notes:

- Fixes pagehandling issues for new setups

Comments

  • Tauvic Ritter 3 days ago

    Just found another interesting project called "Open badges". This allows badges to be defined and shared on a more global level. Achievements can then be shared with other sites and could count as "real" achievements. Sounds very interesting