mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-26 00:01:13 -05:00
Updated Show text source with latest Twitch follower (markdown)
parent
cbc5bb85b2
commit
010b1264f8
|
|
@ -4,6 +4,52 @@ This example will provide you with macros which set the text displayed by a text
|
|||
|
||||

|
||||
|
||||
## Explanations
|
||||
|
||||
### How can Queues be created:
|
||||
|
||||
Creating them is quite simple.
|
||||
First create a Queue action or condition and select "add new queue":
|
||||
|
||||

|
||||
|
||||
### Why is a queue needed:
|
||||
|
||||
Assume you have configured a macro which shows the user name of new follower you received on Twitch in text source, which looks similar to this macro:
|
||||
|
||||

|
||||
|
||||
|
||||
This first grabs the Twitch follower user name and puts into the variable "Follower", then modifies the text source settings using this new variable, then shows the source for 5 seconds, and finally hides it again.
|
||||
|
||||
This example macro has the problem that no other macro will be run while those "long" waits are performed.
|
||||
|
||||
You might think that you can simply enable the option to "Run the macro in parallel to other macros", but this will only help in certain cases.
|
||||
It works fine, when you only receive a single follower at most every five seconds.
|
||||
You will run into issues, however, if you receive multiple followers within one 5 second span.
|
||||
|
||||
Here the first follower triggers the macro to be run and while it is running the second follower event is received.
|
||||
As the macro is already running the actions will not be executed.
|
||||
|
||||
### How to resolve the issue using queues:
|
||||
|
||||
To resolve this problem you can instead add those actions to a queue and slightly rework the macro / split it into two macros.
|
||||
|
||||
First the macro which does the bulk of the "work".
|
||||
Meaning it modifies the text source's settings and shows it for the specified amount of time:
|
||||
|
||||

|
||||
|
||||
(Note that it does not have any conditions - it will be used to as the collection of actions to add to the queue)
|
||||
|
||||
Second a macro which grabs the Twitch follower name and assigns it to the "Follower" variable and then add the previously created macro to the queue.
|
||||
|
||||

|
||||
|
||||
(The variable will be resolved when the action is added to the queue - unless configured differently in the queue settings)
|
||||
|
||||
## Import the example
|
||||
|
||||
If you want to [import ](https://github.com/WarmUpTill/SceneSwitcher/wiki/Exporting-and-importing-individual-macros)the example you can use this code to do so:
|
||||
Code:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user