Bitte unterstützt uns und bestellt über diese Links bei Amazon oder HumbleBumble!
player.ActiveInventory = null; // USE ITEM
else if (player.ActiveInventory == iCup)
{
if (FilledCup == 0)
{
aWaterPouring.Play(eAudioPriorityNormal);
Wait(10);
iCup.Graphic = 567;
FilledCup = 2;
}
else if (FilledCup == 1)
{
player.Say("There is still coffee in the cup.");
}
else if (FilledCup == 2)
{
player.Say("There is still water in the cup.");
}
player.ActiveInventory = null;
}
// don't forget this
else Verbs.Unhandled();
// USE ITEM
else if (player.ActiveInventory == iCup)
{
if (FilledCup == 0)
{
aWaterPouring.Play(eAudioPriorityNormal);
Wait(10);
iCup.Graphic = 567;
FilledCup = 2;
}
else if (FilledCup == 1)
{
player.Say("There is still coffee in the cup.");
}
else if (FilledCup == 2)
{
player.Say("There is still water in the cup.");
}
}
// don't forget this
else Verbs.Unhandled();function iCup_OtherClick(InventoryItem *theItem, CursorMode mode)
{
// USE
if(Verbs.UsedAction(eGA_Use))
{
if (FilledCup == 0)
{
player.Say("I should fill the cup first.");
}
else if (FilledCup == 1)
{
Wait(1);
SetMouseCursorandActionGUIvisible (false);
player.FaceDirection(eDirectionUp);
aDrinking.Play(eAudioPriorityNormal);
Wait(40);
iCup.Graphic = 565;
Wait(40);
player.Say("Hmmm... Tasty!");
FilledCup = 0;
SetMouseCursorandActionGUIvisible (true);
}
else if (FilledCup == 2)
{
player.Say("I prefer something else than water.");
}
}
} // USE ITEM
else if (player.ActiveInventory == iCup)
{
if (FilledCup == 1)
{
aWaterPouring.Play(eAudioPriorityNormal);
Wait(10);
iCup.Graphic = 565;
FilledCup = 0;
}
else if (FilledCup == 2)
{
aWaterPouring.Play(eAudioPriorityNormal);
Wait(10);
iCup.Graphic = 565;
FilledCup = 0;
}
}
// don't forget this
else Verbs.Unhandled();
}
