printing 'hyperlinked'actions for objects
insidethecircle
31 Oct 2011, 11:58Im not sure how to describe this, so bare with me here...
In an effort to try and make an adventure playable via the mouse - how to you write code that prints a printed response on screen and recognizes the objects therein with the any respective object's possible actions within the printed response when you hover the mouse over an object (i know there must be be a clearer way of describing that, apologies all round...)
In an effort to try and make an adventure playable via the mouse - how to you write code that prints a printed response on screen and recognizes the objects therein with the any respective object's possible actions within the printed response when you hover the mouse over an object (i know there must be be a clearer way of describing that, apologies all round...)
Alex
01 Nov 2011, 09:39This is something that should be made easier, but for now you can use the GetDisplayNameLink function.
For example, this should work:
For example, this should work:
msg ("You can see a " + GetDisplayNameLink(table, "object", table.displayverbs) + ", upon which there is a " + GetDisplayNameLink(lamp, "object", lamp.displayverbs) + "."
insidethecircle
01 Nov 2011, 12:56cool
it isn't good for the health of my keyboard keep bashing my head against it:)
it isn't good for the health of my keyboard keep bashing my head against it:)