Tabletop Simulator

Tabletop Simulator

Gloomhaven - Fantasy Setup (Scripted UI)
Need help from dev: trying to have 2 models for normal and elite
Hey, I'm really struggling trying to find out how to have 2 different models for normals and elites, I've managed to change models when I click on the Normal/Elite thing of a monster, using the function setTyp located on each monster and doing this: https://i.imgur.com/UfrHHJq.png.

The only problem that I'm having, even tho the monster detects that it is now an Elite, doing reload() makes it so the UI wont update to reflect the new type, so it still shows the stats of the normal monster, Im struggling to understand where or how a monster is created, specifically its UI, to make sure that its updated after I change from normal to elite and apply a reload (necessary to updating the model apparently), Ive been struggling with this for an entire day now.

Notice on this gif that if reload is involved (right and left) the stats will remain the same as the original state of the monster, in the middle (no reload involved) it works as intended but no model upload since no reload.
https://gfycat.com/DesertedEducatedAfricanjacana

I know you are probably very busy guys, but Im dying to make this beauty work, if you could take a couple minutes to walk me through on how to reload the UI and tell it its now an elite monster, it would mean a lot. Thanks
< >
Showing 1-3 of 3 comments
Kijan  [developer] Sep 4, 2020 @ 8:25am 
as you assume right we have not much time.
but without looking in the code i would think it is because it is not saving the state before your reload happens. try to trigger a save and wait at least one frame with Wait.frame and then reload.
you are right, I didnt think to trigger a save, I will give this another go in a couple hours, I actually ended up trying states, to a moderate success, my elite is now in state 2 and im trying to make setTyp make it go to state 2 when i click the elite button, it worked on isolated models but as soon as i put it on the scripted models, it would always revert me back to state 1 immediately, this code is really giving me a headache lol, but i will try this saving thing before giving up
Ok, the onSave() that you recommended was the solution I needed, finally working! https://i.imgur.com/bxbqGNa.jpg thanks a lot.
< >
Showing 1-3 of 3 comments
Per page: 1530 50