It may sound silly, but a big deal 4 me...

Started by jav88, Fri 12/12/2003 01:00:48

Previous topic - Next topic

jav88

Hey there....I started using AGS a week ago and fortunately I understood all the topics in the tutorial and managed to use the program....but there's something that seems to be impossible for me....
  I want to give something to a character in order to make him give me another object, so...how do I do that??? Please help me. Thanks bye,
JAVIER.

Scummbuddy

#1
LoseInventory?
and try and make subject titles that have to do with your problem
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Scorpiorus

QuoteI want to give something to a character in order to make him give me another object, so...how do I do that???
Under the character use inventory on character interaction:

int active_item = character[GetPlayerCharacter()].activeinv;

if (active_item == _SOME_INVENTORY_YOU_HAVE_TO_HAVE) {
SetActiveInventory(-1);
LoseInventory(active_item);
AddInventory(_NEW_ITEM);

}

~Cheers

SMF spam blocked by CleanTalk