Achievements?


#21

It would also seem that the activation is invalid… I tried;


*achievement name_of_achievement

To activate it. But that didn’t work, apparently that’s the equivalent of *create, it says it can only be used in startup.

I also tried;


*set achievement name_of_achievement true

and

*achievement name_of_achievement true

But neither worked, so now I’m stumped.


#22

Do something like this in startup.txt:


*achievement wolf visible 10 Wolf
   You befriended a wolf.
   Befriend a wolf.

then use this where you want to achieve it:


*achieve wolf


#23

Ah, *achieve, that’s a whole nother bunch of bananas. :smiley: Seems so obvious in retrospect, but there you go. Thank you CJW. :slight_smile: Now it works.


#24

@MutonElite originally, you were right. But after initial implementation, Dan swapped it. Pre-earned text goes first.


#25

@jasonstevanhill Oh? That must have been after I downloaded then, because on mine, the pre-earned is last. Good to know.


#26

@CJW
Does the visible part of the achievement creation just decide whether or not you see it even if you haven’t got the achievement yet?


#27

No one seems to have answered my question. To repeat it, if I used the achievement commands in my WIP and published a beta for PC, would it work?


#28

@Samuel_H_Young
Correct, so there is no pre-earned text for a hidden achievement.
It’ll only appear in the tab once it’s earned.

@gkkiller
They’ll work on any platform but I doubt they’ll persist between sessions (your players will likely lose their achievements when they close the browser).


#29

@CJW
Thanks!


#30

What if I’m using the save plugin? When I load a saved game, I’d still have all the achievements I unlocked upto that save point, right?


#31

@gkkiller
Sorry, I missed this earlier (only saw it as I came back to reference something else).
Yes - I *think* you would retain achievements with the save plugin, I haven’t tested it though, so don’t hold me to it.


#32

@CJW no, switch those two descriptions.


#33

@jasonstevanhill
Ah, yes - Dan swapped it didn’t he - my bad, fixed thanks :slight_smile:


#34

*achievement imp_slayer visible 10 Imp Slayer
  Kill an Imp
  You slew a helpless Imp

*achieve imp_slayer


#35

Seems I am doing something wrong
On the starup page after *create have been done I put.


*achievement Imp Slayer 1
 10 imp1
  Slain a helpless Imp
  Killer of the hapless

Then on pcsetup page I put


*achieve imp1

I have this in dropbox
Then I run the page and get the following error as the page loads up.
Cannot read property of “1”
Any ideas what I am doing wrong thanks.


#36

Awesome it now works Thank you @CJW and @jasonstevanhill :smiley:


#37

How do you make the achievements appear in the stats section, the way it is in Mecha Ace?


#38

If you create an achievement in startup, that will create a button leading to a section for them.


#39

That is great! Thanks for your answer, @MutonElite.


#40

@Mayday Np. :slight_smile: