[Mod] Achievements [3.2.0] [awards] – group support

Methacrylon
New member
 
Posts: 2
Joined: Sun Jun 03, 2018 11:15

Re: [Mod] Achievements [3.1.0] [awards] – Rewritten, Sorting

by Methacrylon » Sun Jun 03, 2018 12:08

Yes, I can do that. Just let me know how I can do a PR (I never did it before x) )
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] Achievements [3.1.0] [awards] – Rewritten, Sorting

by rubenwardy » Wed Jun 13, 2018 23:25

3.2.0 released!



New Features

Added support for groups in triggers
Added award difficulty multipler - used to make Dig 1x Nyancat below Dig 10 dirt in awards list

Bug Fixes

Fixed convert_data crash when craft data is missing (heavygale)

Misc

Rewrote documentation
 

EdShouldBeInBed
Member
 
Posts: 47
Joined: Sun Feb 22, 2015 16:03
In-game: EdShdBInBed

Re: [Mod] Achievements [3.2.0] [awards] – group support

by EdShouldBeInBed » Mon Jul 30, 2018 19:05

Rubenwardy, would there be a way to tie an achievement to giving players an item? IE, they place ten Quarries, they get a technic world anchor (random idea, not intended use case). I know there was a quest mod in development, but I'm not sure if it's still active.
I'm a writer who tinkers with code on occasion. I play minetest when insomnia makes the writing hard.
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] Achievements [3.2.0] [awards] – group support

by rubenwardy » Mon Jul 30, 2018 22:58

Yes, awards can have prizes - items the player is given when they unlock the award
 

BuckarooBanzay
Member
 
Posts: 129
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

Re: [Mod] Achievements [3.2.0] [awards] – group support

by BuckarooBanzay » Thu Aug 02, 2018 08:18

EdShouldBeInBed wrote:Rubenwardy, would there be a way to tie an achievement to giving players an item? IE, they place ten Quarries, they get a technic world anchor (random idea, not intended use case). I know there was a quest mod in development, but I'm not sure if it's still active.


You mean: https://forum.minetest.net/viewtopic.php?f=11&t=20125?
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk
 

User avatar
davidthecreator
Member
 
Posts: 272
Joined: Mon Aug 18, 2014 19:48
Location: Lithuania
GitHub: daviddoesminetest
In-game: DavidDoesMinetest

Re: [Mod] Achievements [2.3] [awards] – UI support, more awa

by davidthecreator » Thu Aug 02, 2018 13:20

christoferlevich wrote:
rubenwardy wrote:See prizes, it allows you to give items


So I see it - I've looked and test it - but I am failing to properly activate prizes :(


Did you try something like:


awards.register_award("awards_awdname", {
title = S("title"),
prizes = {
"mod:item 1",
},

description = S("do something."),
icon = "mod_texture.png^awards_level1.png",
background = "awards_bg_mining.png",
difficulty = 69,
trigger = {
type = "dig",
node = "mod:some_block",
target = 1337
}
})


worked for me...
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] Achievements [3.2.0] [awards] – group support

by rubenwardy » Thu Aug 02, 2018 13:28

Linuxdirk wrote:Is there an on_use counter? A player needs to use a defined tool X times to get the achievement.


Not yet, but that could be added. It's very easy to add new trigger types, less than 10 lines in most cases :)

This may be an exception, however. It might be worth combing this and the eat trigger instead, and add support for multiple totals, in order to save space / reduce redundancy. So to check for food eating, you'd use the `use` trigger type with the `food` total or alike. Or simpler just uses of `group:food` instead of multiple totals, and automatically add that group to foods, idk

Edit: it's potentially difficult to find out if a particular item has an on_use which does an eat, so not so sure about this.
 

User avatar
poikilos
Member
 
Posts: 46
Joined: Thu Feb 18, 2016 13:45
GitHub: poikilos
In-game: Abiyahh

Re: [Mod] Achievements [2.3] [awards] – UI support, more awa

by poikilos » Tue Sep 11, 2018 22:39

xisd wrote:Hi, I made 2 new PR for the french translation. One for the translated strings and the other with formspec adjustment because french strings are longer.
(I actually did that some time ago but it was messy and I made a mistake on github that caused me to re-fork re-edit, and re-PR, so that was finally a good thing)

I also made a small mod to add a node "awards board" to open the awards window when clicked.
https://github.com/xisd/awards_board
(That was originally a fork but now it is a separate mod dependent to this one)

I have preserved this at https://gitlab.com/poikilos/awards_board since xisd is no longer on GitHub. I also pm'd him so I'll post again if he provides a new link.
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] Achievements [3.2.0] [awards] – group support

by Linuxdirk » Thu Sep 13, 2018 09:47

rubenwardy wrote:Edit: it's potentially difficult to find out if a particular item has an on_use which does an eat, so not so sure about this.

So better create a counter for that and increment it in the tool's on_use code?
 

User avatar
Chiantos
Member
 
Posts: 304
Joined: Sun Jan 15, 2017 09:04
Location: Earth
GitHub: BlockColor
IRC: mrchiantos
In-game: mrchiantos

Re: [Mod] Achievements [3.2.0] [awards] – group support

by Chiantos » Tue Sep 25, 2018 19:13

Hello, Achievement for protect area is possible ? For help force players protects builds ?

Protect area : 0/1 , else Player protect à area with protect node or area mod, complete achievement : 1/1.

I think use achievement for force Player Protect, this good for player'build And help staff servers.

Good Day ?
Game : BlockColor - Avatar Mod with Cms : SkinKey
 

User avatar
rubenwardy
Moderator
 
Posts: 5546
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] Achievements [3.2.0] [awards] – group support

by rubenwardy » Tue Sep 25, 2018 21:23

Yes, you could register a trigger to do this. I don't think it should be included with awards though
 

User avatar
Wuzzy
Member
 
Posts: 3243
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Achievements [3.2.0] [awards] – group support

by Wuzzy » Thu Sep 27, 2018 11:18

You could request the makers of protection mods to add such achievements in their mod by optionally depending on the Achievements mod.

The Achievements mod is extensible, after all. I have added some achievements for some of my own mods as well (e.g. Orienteering, Easy Vending Machines, …).
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

hexYeah
New member
 
Posts: 8
Joined: Wed Dec 12, 2018 02:09
In-game: hexYeah
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 8 guests