One step to use moodle for serious gaming : text personnalisation. More info for using moodle in gammification (in french) : https://eric.bugnet.fr/gamifier-moodle/
This code add filter for LMS Moodle to let Moodle adapt text with personnal user informations.
- Copy the files to : /moodle/filter/userinfo
- On your moodle instance, go to Administration block > Site administration > Notifications and install the new plugin.
- Go to Administration block > Site administration > Plugins > Filters > Manage filters and activate the userinfo filter.
Tested on Moodle 3+.
In any text entered in moodle text arrea (atto), you can use balise like [USER:firstname]. When you are not in edit mod, filter change the balise with the real user firstname.
You can use all user informations inserted in profile page, like :
But, you can also use user group information :
And optionnal added text fields, asked with Administration block > Site administration > Users > Accounts > User profile fields
I hope I could make an atto plugin to insert this balises... Work in progress...