-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.8 KB
docs/gettingstarted/images/processingevent/examplerewardcondition.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
Processing an Event | ||
=================== | ||
|
||
In this example, we will run you through setting CCI up too act on a Channel Point Reward on Twitch. If you already have a Channel Point Reward, be sure to force it to require text, and skip ahead to the CCI segment. | ||
|
||
## Making the Channel Point Reward | ||
|
||
I am presuming you already know how to get to your Channel Point Rewards in your Twitch Dashboard, so I will be skipping that bit. | ||
|
||
1. Click on `Add New Custom Reward`, and edit the fields to your liking. Be sure to require the viewer to enter text. CCI needs this. This is the example we will be using: | ||
|
||
![](./images/processingevent/channelreward.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
## Getting the Information Needed | ||
|
||
1. Launch up CCI and open up the Editor. | ||
|
||
2. In your Twitch Chat, claim the channel point reward. | ||
|
||
![](./images/processingevent/rewardredeemed.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
3. In CCI's Editor, open up the Event Viewer. That's the `Events` button on the top left. In the `Chat` layer, look for a variable called `custom-reward-id`. We will want both the name and the value. In this example, the value is `a54f1f3d-e05d-46e8-aea9-0285ab9d0266`. Note how `cci-type-event` is `message`. | ||
|
||
| Reminder | | ||
|--------| | ||
| Click on the Variable listing, and hit Ctrl+C to copy the variable name, Ctrl+Shift+C for the variable value | | ||
|
||
![](./images/processingevent/eventviewer.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
Optional. Go to the existing Config Event and name it `Toast`. This will be helpful later. | ||
|
||
![](./images/processingevent/renametoast.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
4. Go to `message` in the Navigator. Double-click in the Contents window to add a new Config Event. From there, click and drag the first event, `Event: Toast`, down to below the new Event. We want our Channel Point Reward Config Event to trigger first. | ||
|
||
![](./images/processingevent/addevent.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
5. Click on the new Config Event you just created in the Navigator. *(Optional)* Name it `Example Reward`. | ||
|
||
![](./images/processingevent/examplerewardbase.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
6. Double-click on `conditions` to open up the window to add a new Condition. Find `variableCheck` or `VariableCondition` and add it. | ||
|
||
![](./images/processingevent/addcondition.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
7. Open up the `conditions` tree in the Navigator. Note how `VariableCondition` is red. This means it is invalid. We will fix that in a bit. Click on it. | ||
|
||
![](./images/processingevent/examplerewardcondition.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
8. In `variableName`, set it to the variable name we got earlier, which was `custom-reward-id`. In `variableResult`, set it to the value we also got earlier. Our example's is `a54f1f3d-e05d-46e8-aea9-0285ab9d0266`. Note how when these two were filled in, `VariableCondition` in the Navigator is no longer red. | ||
|
||
| Protip | | ||
|--------| | ||
| You can select some fields and paste (Ctrl+V) directly into it, rather than double clicking to open the editor. | | ||
|
||
![](./images/processingevent/variablecheckvalues.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
9. Now, go back to the Config Event. Now we add an Outcome. This is where you customise your Outcomes to what is defined in your reward, but for this guide's purposes, we'll use another `ToastOutcome`. Double-click `outcomes` and add a `ToastOutcome` (id: `toast`). | ||
|
||
![](./images/processingevent/addoutcome.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
10. Navigate to the `ToastOutcome`. Set the `toastType` to `2`. Now we show how Variable insertion comes in. Recall from Step 3 where there was a variable called `display-name`. We will be using that here. | ||
|
||
Set `title` to `Example Reward Claimed!`, and `subtitle` to `Claimed by $display-name`. Note how CCI marks all `$` as green, to help you notice variable insertions. | ||
|
||
![](./images/processingevent/toastoutcome.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
11. Go back to your Config Event. We're not done yet. We still want the message to be processed by the other Config Event. Double-click on `allowsOtherEventsToTrigger` to set it to `true`. | ||
|
||
![](./images/processingevent/examplerewardsc.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
|
||
12. Hit `Save` on the top right. Your updated Event Configuration is immediately applied. Try to claim your Channel Point Reward and if you followed our example, watch as two Toasts pop up. | ||
|
||
![](./images/processingevent/itworked.png){: class="img_center"} | ||
<br /> | ||
<br /> | ||
<br /> | ||
|
||
And that concludes our tutorial. Hopefully this Getting Started segment has helped you understand how CCI works and how to use it. The other pages in this segment are additional tidbits that are worth reading, but the basics are done. | ||
|
||
Good luck getting things working the way you want it to, this is only the beginning. If you are happy with what the mod does and if this guide has been helpful, do consider giving me a tip via the `Donate` button in `About Project` on the [CurseForge page](https://www.curseforge.com/minecraft/mc-mods/content-creator-integration/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters