Dialog multiple choice for player?

Started by Amiga1, Sun 30/11/2008 06:37:36

Previous topic - Next topic

Amiga1

Hi , I need advice on how to eliminate dialog options avalible to the player after they have been said once.
I have looked it up in the manual and attempted to insert the command:

//xoptionoffforever  & dialog.getoptionstate


but I don,t think I am using it right because all the dialog and player dialog just loops.

my dialog looks like this: option 1


// dialog script file
//Dialog.GetOptionState
@S  // dialog startup entry point@1  // option 1
jen:"Oh who are you?"
jen:"you made me jump, but Now I can see you must work here by your uniform"
ego:"Well you might call it a working holiday I suppose"
ego:"Im here for the experience you might say I can,t wait to go home though!"
Jen:"Well...Im  Herd number 001 I have been reared up on this farm but I don,t really know about the things you are talking about"
return
//Dialog.GetOptionState
@2  // option 2
jen:"meat? did you say chicken meat?"
jen:"you can not be serious! I thought we were being raised to be servants to the great master at the Mannor house"
ego:"well perhaps you will become a servant I shouldnt worrie"
jen:"Yes Yes but please tell me about this chicken meat?"
ego:"well since I have spilled the beans on this issue I will tell you."
ego:"You my dear and all the other chickens are being bred because many customers come here to enjoy eating chicken"
ego:"you didnt know did you!"
jen:"GULP..."
jen:"Oh my, I guess Im on the menu then?"
jen:"I have to say,I wish I didnt know about this now!"
//3optionoffforever
stop
//Dialog.GetOptionState
@3  // option 3
jen:"oh ...well ok ?"
//2optionoffforever
stop

Akatosh

I think you messed up with returns, comments and spelling of the commands. This should do the trick:

Code: ags

@S  // dialog startup entry point
return
@1  // option 1
jen:"Oh who are you?"
jen:"you made me jump, but Now I can see you must work here by your uniform"
ego:"Well you might call it a working holiday I suppose"
ego:"Im here for the experience you might say I can,t wait to go home though!"
Jen:"Well...Im  Herd number 001 I have been reared up on this farm but I don,t really know about the things you are talking about"
return
@2  // option 2
jen:"meat? did you say chicken meat?"
jen:"you can not be serious! I thought we were being raised to be servants to the great master at the Mannor house"
ego:"well perhaps you will become a servant I shouldnt worrie"
jen:"Yes Yes but please tell me about this chicken meat?"
ego:"well since I have spilled the beans on this issue I will tell you."
ego:"You my dear and all the other chickens are being bred because many customers come here to enjoy eating chicken"
ego:"you didnt know did you!"
jen:"GULP..."
jen:"Oh my, I guess Im on the menu then?"
jen:"I have to say,I wish I didnt know about this now!"
option-off-forever 3
stop
@3  // option 3
jen:"oh ...well ok ?"
option-off-forever 2
stop

Amiga1

Quote from: Akatosh on Sun 30/11/2008 10:29:06
I think you messed up with returns, comments and spelling of the commands. This should do the trick:

Code: ags

@S  // dialog startup entry point
return
@1  // option 1
jen:"Oh who are you?"
jen:"you made me jump, but Now I can see you must work here by your uniform"
ego:"Well you might call it a working holiday I suppose"
ego:"Im here for the experience you might say I can,t wait to go home though!"
Jen:"Well...Im  Herd number 001 I have been reared up on this farm but I don,t really know about the things you are talking about"
return
@2  // option 2
jen:"meat? did you say chicken meat?"
jen:"you can not be serious! I thought we were being raised to be servants to the great master at the Mannor house"
ego:"well perhaps you will become a servant I shouldnt worrie"
jen:"Yes Yes but please tell me about this chicken meat?"
ego:"well since I have spilled the beans on this issue I will tell you."
ego:"You my dear and all the other chickens are being bred because many customers come here to enjoy eating chicken"
ego:"you didnt know did you!"
jen:"GULP..."
jen:"Oh my, I guess Im on the menu then?"
jen:"I have to say,I wish I didnt know about this now!"
option-off-forever 3
stop
@3  // option 3
jen:"oh ...well ok ?"
option-off-forever 2
stop


Thank you very, very much Akatosh!

SMF spam blocked by CleanTalk