Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 29/11/2004 11:43:40

Title: How to have two inventories, and such
Post by: on Mon 29/11/2004 11:43:40
In my game, I need the Charachter to have a normal inventory (and this is not a problem), but I would need another one for the same charachter.
The problem is that my game, has got spells, that the char finds trough the way, and till than he cannot use them. So, I need something like an Inv screen, where the spells go, and where, to cast one, you simply click on the icon, and then on the thing (object, other charachter, hotspot, etc.) that will be affected by the magic.

I know i can use another GUI, maybe with buttons, but i would need to change the cursor with SetCursorPic (or such) for each spell and put if-else statements everywhere. Instead, with another inventory, all would be easier, and the interaction would be similar to the one with standard items.

Pleas help me.
Title: Re: How to have two inventories, and such
Post by: Ashen on Mon 29/11/2004 12:01:44
Basicly, you need to create a second 'dummy' character, and use their inventory to hold the spells. A quick forum search found these threads (amongst others) that explain in more detail, so I don't have to:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=6498.0

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=15757.0

But, bear in mind the new functions AddInventoryToCharacter () and NewRoomNPC() have replaced some of the scripting they mention.
Title: Re: How to have two inventories, and such
Post by: Bombadil on Mon 29/11/2004 23:49:35
Uooo!
I'd like to see this game. It sounds cool.
Title: Re: How to have two inventories, and such
Post by: Ashen on Tue 30/11/2004 00:11:25
Judging from the number of RPGs in development at the moment, you're not the only one.
There were even a couple of entries in the September MAGS (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=16432.0) that did something similar (CoolBlue-Gord10 and Sinitrena, that I remember). At least, they both had spells inventorys, but handled them a little differently, from what I remember. Might be worth checking them out for inspiration, or just to play.
Title: Re: How to have two inventories, and such
Post by: on Wed 01/12/2004 09:50:42
Thanks to all of you, guys!

And I hope I can resolve the problem, with your precious help.