Hello everyone,
I have several problems with the AGS buit-in VerbCoin Template which I will explain in seperate posts. Here's the first one:
When I open the inventory window and execute an action (look/talk/interact) on an inventory item, I get an error message: Error running function 'repeatedly_execute': Error: Null string referenced"
(https://dl.dropbox.com/u/11927285/temp/Error%20null%20string%20referenced.png)
I searched the forum and found similar threads, like these:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=45162.msg605432#msg605432
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=41115.msg544337#msg544337
but I think my problem is still a bit different.
I use the Verbcoin module version 1.1 by monkey_05_06 in addition and did not change any code. My AGS version is 3.2.0.
The error already occurs when I hover the mouse over the inventory item before having the chance to release the mouse button. The error does NOT occur when I put any strings in the inventory item's custom properties "Custom_Interact", "Custom_Look" and "Custom_Talk". But I don't want to fill in custom properties for every single invertory item. So there seems to be a problem with the default values for inventory items or something.
Does anyone know how this could be fixed?
Although I am unfamiliar with this module, I think I can see what's up. If these are custom properties, there's a way to edit the schema so there's a default value. Double click on any item, go to properties, click "edit schema", find the property you want (eg "Custom_Look") and double click. Then in the default value type something like "Inventory Item" or whatever generic message you want to be displayed.
I hope that works!
Thank you, geork!
With your method there's no error message any more and the game works accurately.
But is there a way to automatically include the items name or description in the property, to make them less generic, like "Propery Custom_look: 'Look at %item description%'" for example?
Thanks again for helping me with this!