How To Turn Off "Greeting Dialog", after first time.

Started by , Tue 09/03/2004 21:53:16

Previous topic - Next topic

Eddie Chewbacca

Hello,

      This is my laast question for now.  I also think I'll join this forum when I have more time to fill in the form.  I did have a problem yesterday, but I was able to solve that, except for one area.  Below is a snapshot of a dialog I am using.  To keep it simple, is there any way to remove the greeting (@S)  after it has been spoken the first time, such as option-off S (Which I tried and does not work), or run a script to run command SetDialogOption, again wherer I had no luck with it.  

       So far I am working around it by calling a script and using global variables to determine if it has been said before, and then using the DisplaySpeech(1, "Hello."); command.  Is there an easier way to do this, keeping the speach within the @S, if not how else can it be done.

// dialog script file
@S  // dialog startup entry point
ELISEFRI: "How's it going?  I'm just dishing up dinner."
return

@1  // option 1
ELISEFRI: "Great, thanks for that.  Go sit on the couch and I'll bring dinner over."
GAVIN: "Sure thing."
stop

@2  // option 2
ELISEFRI: "Quit your complaining."
goto-dialog 4



::)

Ishmael

I always use this method:

all other dialog options are initially turned off, exept the greeting message, option 1 in this case. You can use any option you wish.

@s //dialog entry point
return

@1 // dialog option 1, the greeting message
EGO: Hi there!
MAN: What do you want?
option-off-forever 1 // so the greeting messages are turned of for sure
option-on 2 // \
option-on 3 //  > Turn on the options for the first options list fo the dialog
option-on 4 // /
return

@2 // dialog option 2, go on from here as normal
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.

strazer

#2
QuoteI always use this method

This approach is too cumbersome for my tastes.

And putting the starting dialog in the script before RunDialog would require further checks as done by Eddie.

I think an "option-off 0" or something would be really helpful.

Eddie Chewbacca

I agree with you Stazer, an "option-off 0" command would be great and make the greeting feature more useful.  However if no such command exists, I'll try out TK's method, that looks promising.  Thanks for both your help, I'm learning a lot and my first full game is starting to take shape nicely.

SMF spam blocked by CleanTalk