Hello,
I've created a node with a safe door. It has eight buttons, one up and one
down for each digit in the lock. Previously, there was a lot of code
duplication, and now I'm trying the mothod used in Pipmak's main menu, but I
have a problem: I can't figure out how to say, when declaring a hotspot, to
use the value of i, instead of what ever i happens to be when the hotspot is
clicked.
I'm sending a patch for the node in question (which can be applied to
112/node.lua in the repository for the game I mentioned eariler), because I
don't want to commit broken code. If someone here who's good with Lua could
look at it for me and give some advice, that would be much appreciated.
Thanks,
Aidan
|