Stash

Add an inventory of items to your course and let your students find items by exploring the activities. #game #gamification
Price option: Free

Supports Moodle 2.9-5.2 See all versions
Latest release: 1 month ago
Installations: 2059
Downloads (last 90 days): 585

Frankenstyle name: block_stash
Blocks
Stash, Gamification

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

By the way - just to give you an example of how we are using your plugin in cool ways - in our Dracula iNovel, Dracula sucks blood from various victims and gets 'blood drop points' which can be used to purchase various vampiric powers! At other sections, the vampire hunters gain various vampire-hunting equipment - stash items with codes - to take Dracula down, and the codes unlock combat options later. In other novels, stash items open up new solutions to problems, hidden sections to stories and easter eggs!
First, I am a huge fan of this plugin. At Oxford-english-masters.com We use it course-wide, and it is an essential feature now of our interactive novels where students pick up stash items with codewords in their descriptions - together with the typing answer type in lessons, they have to enter this code to 'use' the item and progress, and, in some cases, trade it for another item with a code. It is also useful to track characters, locations and even ideas and themes through a series of collectible badges. So, a big thank you to Frederic and Adrian! You guys rock! Now to my request... there are sometimes issues with the re-readability of the inovels, as, unless traded away, readers always have the same items. Some of this can be dealt with by making items only reappear after a certain time (that function you already have). But it would be great to, yes lose items (I see above people have requested) but also for the user to be able to reset their stash and lose all their items at once (for example if they want to play the game again) and/or have a recycling bin function so they can throw away some items. A simple fix would actually be if the trade function could have a chooseable and/or function i.e. you can get an item traded in return for ALL of the listed items, or just SOME of them - that way I could set up the trade so they get say badges or coins (or even just trash logos) in return for any items they don't want - which would allow me to set up a bin using the trade snippet. As it is, this won't work well as I would have to set up a bin trade for each separate item (and I have a lot of them!). Food for thought and keep up the amazing work!
Another common question is "Can I turn off the trade center?" Yes, you can turn on editing for the course and go to the settings to the stash block and disable trading.
Hello, I've had numerous people as about making it possible to lose items (or objects). I'm looking into an idea on how this might be possible. It might be limited in some situations. It's not a quick feature to implement so it might be a while before this is possible (if at all).
Great plugin!
It's possible make that the student lost an object if fail an activity?
Thanks in advanced.
Best regards
Thanks for developing Stash.
Is there a way to fetch different stash images based on a user's score? I tried using JavaScript to set up conditions and call a different stash for a range of scores (ie. score > 89 & score < 95 then show stash image). But I can't find a way to use the stash call inside of a JavaScript condition.
If you're interested in a sneak peek at user trading, the latest main branch on github contains this feature. It requires Moodle version 4.1. I'm currently fixing up a few minor things before I release it properly. Please let me know what you think.
Hi Adrian and Britta:
Brilliant plugin for gamification, and adding in once you added in the ability to make "rare" items (e.g. only 2 Golden Unicorns in the class--be the first to find one!) made it even more fun!
For the trade idea, very cool idea! Perhaps you could set it up for what students do in fantasy league sports for basketball, baseball, football, etc.--a trade proposal is sent to both students (usually a notification or email), and just like the interface you used for doing Stash trades, the Trade / Swap proposal only goes through if both parties accept the trade!
Just an idea....thanks again for sharing your brilliant work for gamification with the Moodle community!
Hello Britta,
I do actually have a proof of concept for students trading with each other, but I'm not happy with the user experience for it, and I think that I still have race conditions that need to be ironed, out to avoid both students getting the item (rather than a trade). Does anyone else like the idea of students being able to trade with each other? How would it work?
Hi! Thanks for this really nice plugin!
My students have a lot of fun collecting items and "buying" some additional stuff in the shop using the collected items.
Our students have now expressed the wish that collected objects or objects purchased in the store can be given to other students.
In our courses, for example, you can buy a virtual cup of cappuccino with collected coins. At the end of the course, students wanted to invite each other for coffee and cake or even a beer.
It would be great if this function could be integrated.
However, there would have to be the ability to set whether the item can be given away or not - so that things can't be given away that each student should actually work out for him/herself. smile
as far as i know, giving items to each other is not possible among students at the moment. if it is, i would be very happy to know how to do it.
thanks a lot!
Bemi
Thanks for the help Adrian and Fred. I look forward to using this plugin! I was unaware of the PHP 8.1 issue since my server environment check is green all the way down - even the PHP line.
If you want me to run any more tests I would be happy to do so.
Thanks again.
Thanks Fred for your help here. I changed my php version to 8.1 and am getting the same error. I'll look into publishing a fix.
Please note that Moodle does not currently support php version 8.1 (see MDL-73016) and so you are likely to find other errors running Moodle as well.
Good news! Commenting out that line eliminates the error. I was able to create an item and my students can see the block as well.
I got the plugin zip file from moodle.org/plugins this morning. Here are the software versions I am using:
Moodle 4.1.1+ (Build: 20230210)
Stash 1.3.4 (Build: 2022042100)
PHP Version 8.1.12
Hi Brian, this issue got me curious, that is definitely a strange one. Could you please confirm the version (and where you found it) of Stash, as well as your version of Moodle, and version of PHP.
Meanwhile, if you're comfortable opening PHP files, could you please try to comment the following highlighted line 193 (in classes/persistent.php):
https://github.com/abgreeve/moodle-block_stash/blob/master/classes/persistent.php#L193
So I looked at the PHP and I see where the query is pulling field names from the database. I have checked multiple times and there is no courseid field in any stash table except mdl_block_stash. I tried adding that field to the database but then noticed that the query is asking for other fields that don't exist either: ui.courseid AS useritemcourseid, ui.name AS useritemname
I uninstalled Stash and verified that all files were deleted and all tables removed from the database. When I reinstalled, the same problems occurred.