I have a problem with a conversation

Started by adaw90, Sun 16/09/2007 19:43:49

Previous topic - Next topic

adaw90

Hello. For 2 days I make a game alone, but now I have a problem. When option 1 is selected, I must go in another room, and I do. But when I select option 2, I want to stay in the room,  but I go in the  other, like when option 1 selected. Can someone help me?

Please help!

Sorry for my poor English...

Ashen

Post the Dialog script, and the code around wherever it's started from (e.g. the Character interaction). Can't help you out if we can't tell where the problem is ...
I know what you're thinking ... Don't think that.

adaw90

#2
Code: ags

// dialog script file
@S  // dialog startup entry point
EGO: "Hello!"
HPH: "Who is that? Is it you, Milka?"
return
@1  // option 1
HPH: "Oh, of course. I made a stew for you."
EGO: "Very nice indeed..."
stop
@2  // option 2
HPH: "Is that you, Ico? Wait, I made a stew for you, I know you are hungry!"
EGO: "No, not really. Thanks anyway!"
stop


So,I  want when I select option 2, not to go in the other room, but to stay in this one.

Sorry for not being so accurate, but I'm still learning...

Ashen

There's nothing there that would make the character change rooms. I'm guessing it's in the Character interaction (or whatever)? (Which is why I suggested you post that, too...) Try using run-script in the Dialog to make the room change happen when you want it. (BFAQ entry, or search the forums / manual.)
I know what you're thinking ... Don't think that.

adaw90

I will tell you what i did, in order to go in the other room.
When one specific inventory item is used on a specific hotspot, a dialog begins, and after that the character goes in another room. I thought there was an action  "if option 2 selected", but there was no such thing.

Khris

In the script lines of the option that's supposed to send the character into another room, put "set-globalint 1 1" before "stop".
Add a RunScript-action after the Dialog-action, click the edit button and put this in the script window:
Code: ags
  if (GetGlobalInt(1)) player.ChangeRoom(2, x, y);

adaw90


SMF spam blocked by CleanTalk