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!
JKos wrote:Well I actually tested your code and it works for me after removing the extra t. What do you mean by:
then I put a floor_fw_trigger with "digonly" and a connected script: function battlefielddig()
The "floor_fw_trigger" (a cloned one with fw_addHooks/class="FloorTrigger") has a connector to the script; my purpose is to have one script for several floortriggers and treasures spawned accordingly and not on the location of the script, but for the moment I tried only to print "ok" for testing... so where is the issue (using a cloned floortrigger?)?
So I see... here floortrigger call the script...which call the hook and it's the point because it's too late! It's an "autotrigger" problem... some clue be appreciated
Duncan
Cloning is not the problem, I tested the exact code you pasted here and it seems to work fine. Maybe you have understood
the function of the framework incorrectly. This:
JKos wrote:Cloning is not the problem, I tested the exact code you pasted here and it seems to work fine. Maybe you have understood
the function of the framework incorrectly. This: