I have the asset pack v2 and Jkos's amazing grim2 hook framework.
One thing, I cannot use defineObject with a fw_addHooks call despite following install instructions.
fw_addHooks just throws an attempt to call global (nil val error). That's not too important yet.
The real thing I'm trying to get working is to activate an onClick() hook via script.
I'm trying to activate a healing crystal without clicking it, so I have this function that is called by floor trigger:
Code: Select all
function actcrystal()
hc.clickable:onClick()
hudPrint("Your mind feels at ease...")
endThank you, I'm very frustrated as this should be extremely simple, but lua has had a history of doing this to me. (My touchscreen gui in minecraft opencomputers should not have taken 12 hours xD) Please let me know if you require any more information, thank you.
Unconscious
