This is not sponsored in any way by Hoyoverse and I do not gain any profit from this project.
Integration to Twitch chat was made possible and easy-to-use by integrating ComfyJS maintained by @Instafluff.
The [Genshin Wish Simulator] lets the viewers simulate a genshin wish by typing the !wish command in chat.
This is my first-ever project which I have done outside of work and it is bound to have some issues. If you do happen to encounter an issue, you can contact me by visiting me on my twitch channel at https://twitch.tv/xivalex. (For reference, I speak both English and (mostly) Tagalog on-stream)
Also, I do accept (and/or request) contributions in terms of the videos that can be used for the gacha. Unfortunately.. I cannot pull for EVERY SINGLE CHARACTER OR WEAPON that can be showcased in the simulator..
Current implementation makes use of StreamElements to manage the chats and/or points. I could consider adding a version or parameter so that JWT Token will not be required if there will be a demand for it
- Go to StreamElements Dashboard and click the account icon in the upper-right of the display
- In the
CHANNELS
tab, click theShow secrets
button to display account-specific information
Needless to say, information in this section is PRIVATE and should not be shared to anyone. The
Account ID
andJWT Token
will be required by the program to give access to your StreamElements
-
In your preferred broardcasting software (e.g. OBS), add a browser source and use the link: https://xivalex.github.io/genshin_gacha
-
The following are the URL parameters that can be used to customize the behavior of the simulator
- [Required]
jwt
: Your JWT Token - [Required]
id
: Your Account ID - [Required]
channel
: Your Twitch channel name volume
: Adjust the volume of the video (Default: 100)sr
: Adjust the percentage on winning a 5★ against a 4★ (Default: 1% to get a 5★)c
: Adjust the percentage on winning a 3★ against a 4★ (Default: 90% to get a 3★)three
: Adjust the prize when user wins a 3★ (Default: 0)four
: Adjust the prize when user wins a 4★ (Default: 300)five
: Adjust the prize when user wins a 5★ (Default: 2000)cost
: Adjust the cost to use the command (Default: 160)points
: Adjust the points name used in your channel (Default: Primogems)check
: Output the current setting of the program in your chatpity
: Adjust the pity before a guaranteed 5★ (Default: 30 pity to get a guaranteed 5★)
Sample Browser Source URL
*********************************************************************
https://xivalex.github.io/genshin_gacha?jwt=<JWT Token>&id=<Account ID>&channel=xivalex&volume=50&sr=50&c=90&three=100&four=200&five=300&cost=10&points=test&check=true&pity=50
*********************************************************************
By using the sample URL, it sets the program to have:
- Volume is adjusted to 50%
- Winning a 5★ against a 4★ has a 50% chance
- Winning a 3★ against a 4★ has a 90% chance
- The Prize for 3★ is 100
- The Prize for 4★ is 200
- The Prize for 5★ is 300
- The Cost on using the command is only 10
- Points name is set to "test"
- The above settings will be displayed in chat once you refresh the browser source
- The Pity for a guaranteed 5★ is 50
- Test the program by typing
!wish
or!wish <1~10>
in your chat. Video should load and the following is displayed in chat. If video does not load, try refreshing the browser source or re-check the parameters in the URL.
- Only one wish session at a time is displayed on stream. A queue is implemented so that when multiple viewers type
!wish
in chat, they will be placed in a queue (first-in, first-out) while waiting for the current wish on-stream to finish
-
Characters and weapons are saved in a database. You can check your current inventory using
!wishcheck <3/4/5/charname/weapname>
command -
Information is saved to the database every minute, if there will be any connection issues during this minute, wishes are not saved. Sorry for any inconvenience
- Pity is the number of times the user has wished.
- The default value is 30 and if a user has wished for atleast 30 times without any 5★, the next wish will be a guaranteed 5★
- If streamer does not want to make use of StreamElements and just show a wish video on-stream
Note: There is a 5-second delay for common commands to avoid spamming the chat
- Displays the current queue of users who typed
!wish
in chat - Usable only by
Streamer
andModerators
- Displays the current setting
- Usable only by
Streamer
andModerators
- Reset the gacha to possibly fix any issues (if gacha still does not work, try refreshing the source)
- Usable only by
Streamer
andModerators
- Displays all available characters and weapons
- Usable only by
Streamer
andModerators
- Displays list of characters and/or weapons owned by the user and its corresponding constellation
- e.g. !wishcheck Yanfei, !wishcheck 5
- Displays the current pity of the user
- Displays the list of available commands to be used
- Lets the
Streamer
orModerators
to modify the settings on-stream without the need to modify the URL parameters - Changes done with this command are not permanent. Once browser source is refreshed, the URL parameters will take priority
@Instafluff for providing and maintaining the ComfyJS
package
The following are the list Genshin Weapons
and Characters
and its availability in the simulator
If you want to contribute, please do inform me through my @Twitch (sorry I do not have other socials. . .)
For items with to be updated contibutor, you may still contribute a video for it
If you found your video in below and you do not want it to be used, please do inform me and I will remove it immediately. Sorry for any inconvenience.
For video contributions, some guidelines for it:
- You can send a the whole/full wish session, but please provide timestamps so I can easily find the part I need to edit-out
- Please do avoid having stuffs which blocks the video (e.g. chat and/or notification overlays)
- Video should be full-screen (maybe no need for a specific resolution since I convert it anyway)
Name | Rarity/Availability | Contributor |
---|---|---|
Cool Steel | shawners21 | |
Harbinger of Dawn | xivalex | |
Skyrider Sword | shawners21 | |
Ferrous Shadow | xivalex | |
Bloodtainted Greatsword | xivalex | |
Debate Club | xivalex | |
Black Tassel | shawners21 | |
Raven Bow | xivalex | |
Sharpshooter's Oath | xivalex | |
Slingshot | shawners21 | |
Magic Guide | xivalex | |
Thrilling Tales of Dragon Slayers | xivalex | |
Emerald Orb | xivalex | |
Favonius Sword | ||
The Flute | xivalex | |
Sacrificial Sword | shawners21 | |
Lion's Roar | st_krusconnected | |
The Alley Flash | ||
Favonius Greatsword | ||
The Bell | xivalex | |
Sacrificial Greatsword | xivalex | |
Rainslasher | st_krusconnected | |
Lithic Blade | ||
Dragon's Bane | st_krusconnected | |
Lithic Spear | ||
Favonius Lance | ||
Wavebreaker's Fin | ||
Favonius Warbow | st_krusconnected | |
The Stringless | st_krusconnected | |
Sacrificial Bow | ||
Rust | xivalex | |
Alley Hunter | ||
Mitternachtz Waltz | ||
Mouun's Moon | ||
Favonius Codex | ||
The Widsith | ||
Sacrificial Fragments | ||
Eye of Perception | xivalex | |
Wine and Song | ||
Xiphos' Moonlight | xivalex | |
Makhaira Aquamarine | ||
Wandering Evenstar | xivalex | |
Lisa | ||
Barbara | Genshin Impact Wishes | |
Kaeya | Genshin Impact Wishes | |
Razor | Genshin Impact Wishes | |
Amber | Genshin Impact Wishes | |
Xiangling | Genshin Impact Wishes | |
Beidou | Genshin Impact Wishes | |
Xingqiu | st_krusconnected | |
Ningguang | xivalex | |
Fischl | Genshin Impact Wishes | |
Bennett | xivalex | |
Noelle | st_krusconnected | |
Chongyun | Genshin Impact Wishes | |
Diona | shawners21 | |
Sucrose | Genshin Impact Wishes | |
Xinyan | xivalex | |
Rosaria | st_krusconnected | |
Yanfei | st_krusconnected | |
Thoma | xivalex | |
Sayu | Genshin Impact Wishes | |
Gorou | Genshin Impact Wishes | |
Kujou Sara | Genshin Impact Wishes | |
Shikonoin Heizou | ||
Yun jin | xivalex | |
Kuki Shinobu | Genshin Impact Wishes | |
Collei | Genshin Impact Wishes | |
Dori | Genshin Impact Wishes | |
Candace | Kekvin | |
Layla | ||
Aquila Favonia | ||
Skyward Blade | xivalex | |
Freedom-Sword | ||
Summit Shaper | ||
Primordial Jade Cutter | Xeno Archive | |
Mistsplitter Reforged | ||
Haran Geppaku Futsu | ||
Skyward Pride | Xeno Archive | |
Wolf's Gravestone | ||
Song of Broken Pines | ||
The Unforged | ||
Redhorn Stonethresher | ||
Staff of Homa | ||
Skyward Spine | ||
Vortex Vanquisher | ||
Primordial Jade-winged Spear | ||
Calamity Queller | ||
Engulfing Lightning | ||
Skyward Harp | ||
Amos' Bow | ||
Elegy for the End | ||
Polar Star | ||
Aqua Simulacra | ||
Thundering Pulse | ||
Skyward Atlas | ||
Lost Prayer to the Sacred Winds | ||
Memory of Dust | ||
Everlasting Moonglow | ||
Kagura's Verity | ||
Hunter's Path | ||
Key of Khaj-Nisut | xivalex | |
Staff of the Scarlet Sands | ||
A Thousand Floating Dreams | ||
Kamisato Ayaka | Genshin Impact Wishes | |
Jean | Genshin Impact Wishes | |
Diluc | Genshin Impact Wishes | |
Venti | FriedRiceGod | |
Xiao | Xeno Archive | |
Klee | Yuan Chu | |
Zhongli | Green | |
Tartaglia | Genshin Impact Wishes | |
Qiqi | Xeno Archive | |
Ganyu | Genshin Impact Wishes | |
Albedo | st_krusconnected | |
Mona | Genshin Impact Wishes | |
Keqing | shawners21 | |
Hu Tao | Yuan Chu | |
Kaedehara Kazuha | Mashumaro | |
Yoimiya | Yuan Chu | |
Eula | xivalex | |
Raiden Shogun | Genshin Impact Wishes | |
Sangonomiya Kokomi | xivalex | |
Arataki Itto | Genshin Impact Wishes | |
Yae Miko | xivalex | |
Yelan | Yuan Chu | |
Shenhe | TheGamicissist | |
Kamisato Ayato | Genshin Impact Wishes | |
Tighnari | Syan | |
Nilou | xivalex | |
Cyno | Kekvin | |
Nahida |