Hello,
I just resumed creating my game (which I stopped almost a year ago) and have to start all over again, having lost the file.
I'm having a problem with a hotspot. I have a closed door, which is the exit from the room, but this door won't have an opening animation; the character will be able to exit the room if the conditions are met.
But first, I want the player to be able to interact with the door and the Sierra menu words (talk, push, etc.), but it doesn't work.
When I do this:
function htokitchen_AnyClick(Hotspot *theHotspot, CursorMode mode)
{
player.Say("I'm leaving the room");
}
When I click on the door, the player goes to the door and speaks,
but when I do this:
function htokitchen_AnyClick(Hotspot *theHotspot, CursorMode mode)
{
if (Verbs.UsedAction(eGA_LookAt)) {
player.Say("Pretty door");
}
}
Nothing happens, the player doesn't move, no dialogue.
However, if (Verbs.UsedAction(eGA_LookAt)) works because I have an object in the room.
At the hotspot level, I set the function to: Any click hotspot
I also tested it on Interract hotspot but nothing.
Is it possible to do this type of interaction?
Thanks
I just resumed creating my game (which I stopped almost a year ago) and have to start all over again, having lost the file.
I'm having a problem with a hotspot. I have a closed door, which is the exit from the room, but this door won't have an opening animation; the character will be able to exit the room if the conditions are met.
But first, I want the player to be able to interact with the door and the Sierra menu words (talk, push, etc.), but it doesn't work.
When I do this:
function htokitchen_AnyClick(Hotspot *theHotspot, CursorMode mode)
{
player.Say("I'm leaving the room");
}
When I click on the door, the player goes to the door and speaks,
but when I do this:
function htokitchen_AnyClick(Hotspot *theHotspot, CursorMode mode)
{
if (Verbs.UsedAction(eGA_LookAt)) {
player.Say("Pretty door");
}
}
Nothing happens, the player doesn't move, no dialogue.
However, if (Verbs.UsedAction(eGA_LookAt)) works because I have an object in the room.
At the hotspot level, I set the function to: Any click hotspot
I also tested it on Interract hotspot but nothing.
Is it possible to do this type of interaction?
Thanks