scripting problem with.. something

Started by ekcnepta, Fri 20/08/2004 11:34:14

Previous topic - Next topic

ekcnepta

:) hi my name is Stiliyan. I'm working on a game with adventure parts in it and i am making these parts with AGS. i need to make a character move to a point and then the player charaacter moving to another point. then i must start a dialogue between them. how can i make that? i'm trying to edit the room script, but i cant save it because of errors. can you please help me?

Ishmael

The basic for moving two characters and starting a dialog would be:

MoveCharacterBlocking(MAN,x,y,0); //notice, blocking so the character's walk one by one, and the last 0 makes him obey walkable areas
MoveCharacterBlocking(EGO,x,y,0);
RunDialog(z);

Where you replace the x's and y's with the coordinates, and the z with the dialog number.

Anyhow, post your script here so we can tell you what's wrong, and help fix it to work exactly the way you want.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

ekcnepta

#sectionstart room_a
function room_a() {
MoveCharacterBlocking(OLDMAN 133, 160, 1);
MoveCharacterBlocking(OPTUHOH 160, 160, 1);
}
#sectionend room_a

so that is the script. the program tells me that there is a problem with that. what i need is when the game is started the first room to be.. faded in. then an old man must walk from the left side to the middle of the room and wait, then the player character should come from the right side and walk to the middle and stop. then the dialogue should start, and after it the old man must walk away from the right side of the room, and the player should regain control over the main game character and.. well that's all of it. the reason why i posted this into the technical forumm was that i am using ags since 2002.. but never faced such issue

Ishmael

#3
MoveCharacterBlocking(OLDMAN, 133, 160, 1);
MoveCharacterBlocking(OPTUHOH, 160, 160, 1);

Here's the problem.

Btw. It's called "Beginner's Technical" because the problems dealt here are basic problems, it doesn't mean that only beginners should post here ;)
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

ekcnepta

thank u, thank u verry much.. now i know for sure that i have to wear glasses lol :) thnx again the problem is solved.. for now ;)
btw i'll keep the note in mind

SMF spam blocked by CleanTalk