# Creating Custom Redemptions

{% embed url="<https://www.youtube.com/watch?feature=youtu.be&v=hVxKRWE1N7w>" %}

## Command and Message Replacements

If you use {0:user} in these areas, it will use the redeemer's name/id instead of the broadcaster.\
Allowing you to make a Run Command something like: !change {0:user} !jump<br>

If you didn't use !change command with {0:user}, it would just be !jump. In this situation it would cause the broadcaster to jump instead of the redemption redeemer.

## Advanced Custom Redemptions

You can create custom redemptions that also take text input from the viewer. To make use of this feature you need to mark your command as "Not Exact Match" using the toggle option. Doing this will allow the command to run with extra text tagged on to the end.\
\
You can make use of this by using word replacements inside the "Run Command" And "Send Message" sections.&#x20;

<figure><img src="/files/khzJh1N9M7DYWOyHZOLf" alt=""><figcaption></figcaption></figure>

If the custom redemption is called !forcejump, if the user inputs another user's name, \
$(0) would be: !forcejump\
$(1) would be: user\_name\
Making the !change $(1) !jump turn into !change clonzeh !jump (which would force my avatar to jump)

You can also use lua scripting commands with the custom redemption system.

{% content-ref url="/pages/Rzf1JR0Hwt879Ipw4pkR" %}
[LUA Scripting API](/lua-scripting-api/introduction.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.streamavatars.com/stream-avatars/content-creating/creating-custom-redemptions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
