Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PrimitiveUser on Mon 15/12/2008 20:13:08

Title: oh god i need an experts help inventory items..
Post by: PrimitiveUser on Mon 15/12/2008 20:13:08
im makin rpg game when i equipt a sword in my inventory i want it to appear in the characters hands.. if your a total crap dont answer to my question
unless you nko the answer and dont crappin guess
Title: Re: oh god i need an experts help inventory items..
Post by: on Mon 15/12/2008 20:19:03
Well, what *is* your question? Ah, I see, that first sentence. Forgive me.

Okay, hard truth: You will need an animation of your character holding each weapon you are using in your game, and change views accordingly. This can be done with a simple check:

if (player.HasInventory(iKey))
{
  player.NormalView = WhateverViewYouNeed;
}

This works, but be aware that it means some extra graphics, depending on how many weapons you are going to use.

Another way would be to create a character with a view that shows only the weapon and move it, together with the player, but that's quite a tricky way to solve the problem.
Title: Re: oh god i need an experts help inventory items..
Post by: PrimitiveUser on Mon 15/12/2008 20:20:07
I just *said* that I want my characters sword to appear on the character's hand when I use the sword on the character.
Title: Re: oh god i need an experts help inventory items..
Post by: PrimitiveUser on Mon 15/12/2008 20:25:16
Hey Thanks! That works perfectly!
Now time to make the other views...,
Title: Re: oh god i need an experts help inventory items..
Post by: on Mon 15/12/2008 20:28:39
Without mocking and considering the bad start and everything, do you want to create a game that is more adventure or more RPG? Because AGS is, when all is said and done, not the perfect tool for an actual role playing game, while others, such as the RPG Maker, are fit for the job.
Otherwise, glad this was helpful and not crap.
Title: Re: oh god i need an experts help inventory items..
Post by: PrimitiveUser on Mon 15/12/2008 20:37:29
Sorry we started off wrong.., I'm the one started the *Crap* fight.

And I like how AGS can interact and all the other usefull things, point n click, good enough for me?
Title: Re: oh god i need an experts help inventory items..
Post by: on Mon 15/12/2008 20:39:56
All set then, no hard feelings.
Title: Re: oh god i need an experts help inventory items..
Post by: Dualnames on Mon 15/12/2008 20:41:23
Quote from: primitiveuser on Mon 15/12/2008 20:37:29
Sorry we started off wrong.., I'm the one started the *Crap* fight.

And I like how AGS can interact and all the other usefull things, point n click, good enough for me?

Glad this is settled.
Title: Re: oh god i need an experts help inventory items..
Post by: PrimitiveUser on Mon 15/12/2008 20:54:16
I'm Glad also.