Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
so i am looking at creating a champ select level and i used one floortrigger to choose what champion you are selecting and then a second one to reenable it after you cant go back so you cant cycle champions at the start, but i can let you go through select for multiple champs
Just tested it and placing two floor trigger over each other and calling the same script seems to be the only solution.
Double enable in one script -> not working.
Calling the same script twice from one floor trigger -> not working.
Calling two scripts with enable in each from one floor trigger -> not working.
Unfortunately it still isn't working (even the solution at the top) with several floor triggers as you need 2 per tile and it seems I can only reactivate one of the others at a time with this solution. :/
Also there is a bug where sometimes the function of a script is not set in the connector, reloading the project does help here.
I can't believe this is how it's meant to work, we are missing something here.
function trcheckscript()
circlechange = 0
if tr1.floortrigger:isActivated(true) then
cirlcestring = "circleplate1"
if tempcirclestring ~= cirlcestring then
circlechange = 1
end
tempcirclestring = cirlcestring
elseif tr2.floortrigger:isActivated(true) then
cirlcestring = "circleplate2"
if tempcirclestring ~= cirlcestring then
circlechange = 1
end
tempcirclestring = cirlcestring
end
if circlechange == 1 then
-- do anything
circlechange = 0
end
end