How to turn off list of verbs you can use on an object?
Eaten By A Grue
04 May 2014, 07:00I programmed an entire game without realizing that clicking on objects on the sidebar show you a list of all verbs you can use on that object. This ruins huge chunks of the game, from spoiling puzzles (one boss is defeated by kissing him, a weakness you can figure out from clues in the area but I don't want to flat-out tell people you can do it) to affecting a moral choice near the end of the game (it's possible to use violence on a character, but I want the player to have to independently decide to "fight", "hit" or "attack" her without having it suggested to them) to making the spell system not make sense (players can see the option to use spells they haven't learned about in-game yet--a playtester mentioning this to me was how I learned about this). Is there some way to turn this feature off without turning off panes entirely? It's so convenient for the player to have that stuff there, but if there's no other way I'll be forced to do away with them.

jaynabonne
04 May 2014, 07:44Add a .js file to your game with the following code:
If you don't know how to do that, let me know, and we'll work out something. (I wish this forum allowed uploading of .js files!)
That code will keep the standard verb button code from occurring.
function updateVerbButtons(selectedItem, verbsArray, idprefix) {
}
If you don't know how to do that, let me know, and we'll work out something. (I wish this forum allowed uploading of .js files!)
That code will keep the standard verb button code from occurring.
Eaten By A Grue
04 May 2014, 08:09I'm afraid I will need a bit of assistance! I made a .js file which includes the code you gave me, but what I don't know is how to attach it to the aslx file or the quest file, and just having it in the same folder doesn't seem to do anything. Do I need to insert that code into the aslx file somewhere and if so, where does it go? Thank you for your help!
(Edit: Nevermind, I poked around and found it, and it seems to work!)
(Edit: Nevermind, I poked around and found it, and it seems to work!)

jaynabonne
04 May 2014, 09:02Great! 
