Page 1 of 1

How to insert a button that executes a script

Posted: Sat Feb 20, 2021 6:22 am
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?