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

Topics - gracefully-gauche

#1
Hey, I had an idea for my game where I'd like a character to appear and block off a doorway, but only the second time you walk into a room. The character can be "defeated" (thus unblocking off the door and allowing for you to leave) by giving them three objects that you can pick up. I was thinking of triggering the character with a hotspot, but I know that if I do that, the character will appear every time you try to leave the room when I only want it to appear once. Is there a way for me to create a one-time event like this? Thanks!
#2
Hey. I'm new to AGS and am still figuring my way out around it. For some reason, certain character functions (e.g. "Look" or "Interact") are looping and playing twice after the interaction occurs. I looked through my code to see if I'd accidentally entered it twice, but it was fine. I looked through my Global Script too, but nothing there either (none of the hotspot interactions are in there). I'm not really sure why it's doing this.

Here's the code from the problematic room:
Code: ags


function hCalendar_Look()
{
    cJessie.Say("It's November 2017.");
}

function hCalendar_Interact()
{
    cJessie.Say("I don't need that.");
}

function hPictureFrames_Look()
{
    cJessie.Say("8 Pictures that Mom framed for me last year.");
}

function hPictureFrames_Interact()
{
    cJessie.Say("I don't need that.");
}

function hJessieClock_Look()
{
    cJessie.Say("It's 3:17 PM.");
}

function hJessieClock_Interact()
{
    cJessie.Say("I don't need that.");
}

function hJessieWindow_Interact()
{
   cJessie.Say("I can't remove the window from the wall.");
}

function hJessieWindow_Look()
{
    cJessie.Say("It's a really nice day outside.");
}

function o8Ball_Interact()
{
    cJessie.Say("There it is!");
    cJessie.Walk(53, 71, eBlock, eWalkableAreas);
    cJessie.AddInventory(i8Ball);
    o8Ball.Visible = false;
    cJessie.Say("Let's ask it where Gigi is.");
}

function o8Ball_Look()
{
    cJessie.Say("My Magic 8-Ball.");
}

function region1_WalksOnto()
{
    cJessie.ChangeRoom(2, 17, 91);
}

function room_AfterFadeIn()
{
    cJessie.Say("Hey there. I'm Jessie. I'm looking for my friend Gigi.");
    cJessie.Say("We were playing hide and seek, and I'm having trouble finding her.");
    cJessie.Say("I think she might be in the basement.");
    cJessie.Say("We should ask the Magic 8-Ball where she is.");
    Display("Look for the Magic 8-Ball.");
}



Thanks!
SMF spam blocked by CleanTalk