Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Adrian on Tue 07/08/2012 12:55:42

Title: Can the VerbCoin be used in inventory?
Post by: Adrian on Tue 07/08/2012 12:55:42
Hello,

In my game I’m using the VerbCoin Template and the Verbcoin module version 1.1 by monkey_05_06 in addition. My AGS version is 3.2.0.

I’d like to use the VerbCoin on the inventory items the same way as on objects, hotspots etc., which seems to be a bit difficult with the VerbCoin template and/or module.

Everytime I keep the mouse button pressed over an inventory item the VerbCoin appears. But when I select one of my default VerbCoin button look/talk/interact the game tries to use the item on itself and displays the message “Cannot use book on book” (for example) and the cursor automatically changes to the item’s sprite, which is not what I want when using the VerbCoin on an item.

Here’s what would be perfect:
1.   A single short click on an inventory item makes the cursor the active item as usual.
2.   A continuous click on an inventory item opens the VerbCoin to use the VerbCoin buttons on the item like on objects, hotspots etc.

Is this possible at all without extensive changes in script? Or would it be better to refuse using the VerbCoin in inventory at all and only have option No. 1?
Title: Re: Can the VerbCoin be used in inventory?
Post by: Khris on Tue 07/08/2012 14:24:38
I haven't used the template or module, I just want to say that it seems like a very bad idea to use both of them at once. I'd expect them to heavily interfere with each other.
Aren't both full-fledged implementations on their own (except maybe the inventory issue)?

So before addressing the inventory issue, I'd chose one of them and go from there.
Title: Re: Can the VerbCoin be used in inventory?
Post by: Adrian on Tue 07/08/2012 14:54:10
Thanks for replying, Khris.

I see what you're poining at. The way I understood the module, it's obligatory to have it set up upon the template, but I might have understood that wrong. I installed it because I had issues with displaying the VerbCoin on the inventory at all, which seemed to have been fixed by the module. I'll uninstall the module and see how far I get with the template. Maybe the whole VerbCoin-on-inventory-idea is to risky for me.

Thank you!
Title: Re: Can the VerbCoin be used in inventory?
Post by: Crimson Wizard on Tue 07/08/2012 15:06:02
Quote from: Adrian on Tue 07/08/2012 14:54:10
I see what you're poining at. The way I understood the module, it's obligatory to have it set up upon the template,
The template includes its own VerbCoin module. That means that you don't need to add any other verb coin modules to it. That's the idea of using templates anyway: you just create a game and it's already usable.
Title: Re: Can the VerbCoin be used in inventory?
Post by: Adrian on Tue 07/08/2012 15:13:36
Thanks, got it.  :smiley:
Title: Re: Can the VerbCoin be used in inventory?
Post by: Crimson Wizard on Tue 07/08/2012 15:16:32
Ah, one more thing.
If something does not work properly in the template, it's probably worth telling to current template's maintainer.
You might post your problems here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=32745.0