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 - grandfatherparadox

#1
The eBlock made the difference :) Thank you so much!
#2
Thank you for your help and the new script works fine, but the same problem persists; the character walks to the edge of the screen but just keeps saying the same line over and over (and doesn't move). If HasPlayerBeenInRoom IS 1 then he enters the next room no problem, it's just when it's 0 that this happens. All I want is a single line of dialog. What else could be going wrong?
#3
I've not been using AGS long so forgive me if this is a naive question... I have searched high and low for the answer but can't find it so here goes:

I want to program the game so that when my player leaves the room, one of two outcomes will occur depending on whether he has visited another room. Simple enough, and the script I wrote looks like this:

function room_LeaveBottom()
{
if(HasPlayerBeenInRoom(4) ==0)

cChar1.Say("I should check my emails first.");
cChar1.Walk(69,  132);

if(HasPlayerBeenInRoom(4) ==1)

  cChar1.ChangeRoom(1,  1000);
}

So if the player has visited room 4, he will change room, if he hasn't, it will display the dialog and move him to another location in the same room. Only problem being that when I run the game, he keeps repeating the same line of dialog over and over unto infinity. Why is this happening and what do I need to change? I'm aware that this is probably a really simple question but I'd really appreciate some help!

Thank you.
SMF spam blocked by CleanTalk