Tabletop Simulator

Tabletop Simulator

41 ratings
Potion Explosion (Scripted Setup)
   
Award
Favorite
Favorited
Unfavorite
Number of Players: 2, 3, 4
Assets: Scripting
File Size
Posted
Updated
946.834 KB
Apr 17, 2020 @ 10:36pm
Jul 17, 2020 @ 10:27am
10 Change Notes ( view )

Subscribe to download
Potion Explosion (Scripted Setup)

Description
Can you prove yourself the best potions student at Horribilorum Sorcery Academy? Features a fully scripted setup for either completely random potions or player selected potions and a couple gameplay scripts for ease of use. Please read the in-game notebook for the specifics.

I'm always open to enhancement suggestions so feel free to leave a comment if you like. This is the first mod I've created and scripted though so no promises on anything complex. Hope you enjoy!

Original game by Stefano Castelli, Andrea Crepi, Lorenzo Silva and distributed by Horrible Games. https://www.horribleguild.com/potion-explosion/
Please support the physical release.

Many thanks to the following for use of their assets

Users MrStump, Sancho, Rad Gravity and the plethora of other more competent coders on Reddit for their excellent LUA coding tutorials and examples that I'm sure I didn't absorb well enough.

"Colorable Potions" by Franco
https://steamcommunity.com/sharedfiles/filedetails/?id=959075837

"Fires and Flames animations" by robin_vador
https://steamcommunity.com/sharedfiles/filedetails/?id=1168181697

Table Extensions from Zombicide:BP by BluJester
https://steamcommunity.com/sharedfiles/filedetails/?id=1781847243

Skyrim Arcanaeum Background by Deneroth
https://steamcommunity.com/sharedfiles/filedetails/?id=412632940
15 Comments
algizka Dec 6, 2022 @ 8:09am 
Great work has been done and it's really impressive. But... it doesn't work. The marbles get stuck when you pick the previous ones.
Mercolt Jul 11, 2021 @ 10:07am 
I don't understand how it works, but when I try to copy or replace the script zones for Random Potions (zoneL, zoneR), even with the same GUID, the script breaks. The whole day I racked my head, I don't understand anything in scripts, but I really wanted to transfer this script to my desk. Help me please. I understand that this looks like theft, but I make the table for playing with friends, not for publishing.
MeepleBits Oct 5, 2020 @ 12:36pm 
Made a little video for this one, enjoy! https://youtu.be/VmOBRrcDSjU
MadEwokHerd  [author] Jul 17, 2020 @ 10:42am 
Good to hear. I just updated the script so "Setup Ingredients" will work with any number of marbles in the bag so custom ratio away.
LeiGai Jul 17, 2020 @ 3:16am 
Multiple of 5!!! That did it. I never would have guess that.

Thanks for the quick response. I was doing a custom ratio and I didn't like seeing empty tracks, plus I didn't like pushing the sweep button, which lead to a non divisible by 5 number. But it's all good now. Thanks again.
MadEwokHerd  [author] Jul 16, 2020 @ 11:54am 
Nevermind, I misunderstood and I now see the mandragora leaf is from the 6th student expansion. I have only implemented the base game to start and haven't looked at anything for the expansions yet. Regardless, for a 2-4 player game there should still only be 80 marbles in the bag to start with according to the expansion rules (15 each of the base ingredients and 20 Mandragora Leaf).
MadEwokHerd  [author] Jul 16, 2020 @ 11:39am 
Are you certain there are 80 marbles (the stock amount for the base game) in the bag when you start? The number of marbles in the ingredients bag must be a multiple of 5 for the "Setup Ingredients" script to execute properly. If it persists with 80 in the bag see if you can send me the save file with your edits and I'll take a look.

Are these mandragora leaf marbles from a workshop mod and if so could you link it? I wasn't able to turn anything up from a cursory search.
LeiGai Jul 14, 2020 @ 12:55am 
Love it! Thanks for posting this, everything works great as is but...

I added in some mandragora leaf marbles and the script spits them out fine but, if I remove even one of the original ingredient marbles, after the bag empties, this script error pops up and the empty bag stays where it is.

Error in Script (Global) function
<startLuaCoroutine/draw>: Object reference not set to an instance of an object
hanzo Jun 1, 2020 @ 10:01pm 
Best mod i've ever seen on Tabletop Simulator for sure. Thanks a lot!
Fatal_Flaw May 25, 2020 @ 6:19pm 
Thanks!