Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - HeyLuigi

#1
it isn't solved... when i tested it i gave the character at first a wrong item then the right item. That worked but when i gave the character at first the right item the dDigiS dialog start. :(
#3
the first two items are the wrong items, when the mc give them to the character the dialog dDigiS should start. But if the mc give the character the item three (iGebS) the dialog dBaulr should start.
#4
I do not go on...
sorry, but I still do not quite understand it.
_____
function cBaul_UseInv()
{
  InventoryItem *ai =
cEgo.ActiveInventory;
// iGebS is the right item
if(ai == iDigiS|| ai == iGescS|| ai==iGebS){
  player.LoseInventory(ai);
  int items;
  if (items < 2) dDigiS.Start();
  else dBaulr.Start();
}
}
____
if I give the character the rigt object (iGebs) the dDigiS dialog start...
#5
thank you for your answer
i've tried this but ags say "undefined token 'items'"
#6
I change something and now i don't get any error but if you give the character an item all options happen :/
heres my code, could you help me?
______
function cBaul_UseInv()
{
InventoryItem *ai = cEgo.ActiveInventory;
if(ai == iDigiS|| ai == iGescS|| ai==iGebS){
  player.LoseInventory(ai);
   if (2){
    dDigiS.Start();
    StopDialog();
  }
   if(1){
    dDigiS.Start();
    StopDialog();
  }
   if(3){
    dBaulr.Start();
    StopDialog();
  }

}
}
______
thanks
#7
Problem solved, thanks!
#8
thank you for your fast answer, I've tried that but i became this error.

Parse error in expr near 'ai

could you also help me, please?
#9
Hey there,

I wanted to finish my game but on the last scene the MC must give a other character some items. I know that there is the
Code: ags

if (cEgo.ActiveInventory==iXY) [

}
}

but it only works with one item.
thank you :)
#10
thank you, it worked!
#11
Hey everyone,
so I'm using AGS for 4 weeks because we make a game for a schoolproject. Everything works very well but now I have one problem.
I want to start another Dialog when the mc looks at a Hotspot.
For example:
When Mc talks to CharacterX its dDialog1
but after talking to CharacterX the mc look at a hotpot and want to tell the CharacterX about that in dDialog2.
So my Question is, how can I sricpt this well?

hope you understand me, my english isn't very weel

Thanks :)
SMF spam blocked by CleanTalk