addConnector

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!
Post Reply
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

addConnector

Post by RayB »

I would like to add a connector to a wall text so that when the text is clicked I can perform an action (call a function).
Using 'onShowText' for the event doesn't seem to work. I am sure my syntax is messed up. Can somebody provide an example?
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: addConnector

Post by Zo Kath Ra »

Can you upload a test dungeon that demonstrates how you're adding the connector to the wall text?

1) Zip the editor files
2) Convert them to base64 with https://base64.guru/converter/encode/file
3) Reply to this post, and put the base64 string inside code tags

And please tell us what doesn't work.
Is there an error, or does nothing happen?
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Re: addConnector

Post by RayB »

Please accept my sincere apology. I must have had a typo or something. I got it to work with...

secPassTxt.walltext:addConnector("onShowText","secPassScr","addText")
Post Reply