# Achievements problem

**URL:** <https://forum.choiceofgames.com/t/achievements-problem/38786>\
**Category:** ChoiceScript Help\
**Created:** [May 12, 2018, 12:18pm UTC](https://forum.choiceofgames.com/t/achievements-problem/38786 "2018-05-12T12:18:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 12, 2018, 12:18pm UTC](https://forum.choiceofgames.com/t/achievements-problem/38786/1 "2018-05-12T12:18:23Z")

</div>

Ok, i know how to make achievements and all, but what i couldn’t find a guide for is an achievement like, let’s say

```
You didn't kill anyone to the end of the game!

```

But like i said, the only thing i know is

```
*achievement kill 10 Killer

Will you kill this guy?
*choice
 #Yes
  *achieve kill
  *goto kill
 #No
   *goto no

```

Help?

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [May 12, 2018, 12:28pm UTC](https://forum.choiceofgames.com/t/achievements-problem/38786/2 "2018-05-12T12:28:28Z")

</div>

According to the wiki [here](http://choicescriptdev.wikia.com/wiki/Achievement#Declaring_Achievements), you need to follow this format to create an achievement.

```
*achievement [codename] [visible/hidden] [points value] [title]
    [pre-earned description]
    [post-earned description]

```

* * *

Based on your description, you’ll want

```
*achievement kill visible 10 Killer
    You didn't kill anyone to the end of the game!
    You killed someone!

```

Or whatever description you want.

---

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 12, 2018, 12:31pm UTC](https://forum.choiceofgames.com/t/achievements-problem/38786/3 "2018-05-12T12:31:01Z")

</div>

I know that, but i want an achievement where it detects if you killed any people and then gives it to you accordingly.

---

<div class="post-metadata">

**Author:** ![andymwhy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/andymwhy/32/34396_2.png) [@andymwhy](https://forum.choiceofgames.com/u/andymwhy)\
**Post date:** [May 12, 2018, 12:39pm UTC](https://forum.choiceofgames.com/t/achievements-problem/38786/4 "2018-05-12T12:39:38Z")

</div>

Create a variable called killer.  
Set it as false.

\*create killer false

Then, every time the player makes a kill change the variable to true.

You kill the bunny puppet master.  
\*set killer true

At the end of the game when you want the achievement to appear, make a check.

\*if killer = false  
\*achieve Not\_a\_killer

---

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 12, 2018, 12:44pm UTC](https://forum.choiceofgames.com/t/achievements-problem/38786/5 "2018-05-12T12:44:43Z")

</div>

Thank you, you shall continue in being awesome.
