How to insert a button that executes a script

Post Reply
jbrumble
Posts: 15
Joined: Sat Jan 09, 2021 4:31 am

How to insert a button that executes a script

Post by jbrumble »

Hello Folks,

I've been trying to find a way to get my game to tag each item with a link that calls a function to display the item's stats.

Code: Select all

cinsertLink("[ID:".. itemID.."]", [[send(" showitem ]] .. itemData[1]["_row_id"] .. [[")]], "View Stats")
But these links will either not execute commands, or the commands will be run when the link is created, not when the link is clicked. Is there a good solution to this, or another way to achieve this goal?

Post Reply