dialog_request

Started by holden24, Thu 16/11/2006 03:08:07

Previous topic - Next topic

holden24

I cant get my run-script x in my dialogs to work.

Code:
#sectionstart dialog_request  // DO NOT EDIT OR REMOVE THIS LINE
function dialog_request(int parameter) {

dialog_request (1) {
player.Walk(160,171,eBlock);
player.Say("Why, Thank-you");
player.Walk(160,160);
}
 
}
#sectionend dialog_request  // DO NOT EDIT OR REMOVE THIS LINE

Khris

Code: ags
#sectionstart dialog_request  // DO NOT EDIT OR REMOVE THIS LINE
function dialog_request(int parameter) {

  if (parameter==1) {
    player.Walk(160,171,eBlock);
    player.Say("Why, Thank-you");
    player.Walk(160,160);
  }

}
#sectionend dialog_request  // DO NOT EDIT OR REMOVE THIS LINE


Using run-script x is like writing dialog_request(1); in a regular script.
If AGS hadn't rejected the syntax, you'd have gotten a function repeatedly calling itself until AGS'd have crashed.

BTW, if you want to display those grey boxes, use code tags:
[*code]...[*/code] without the *s
For other forum tags, check the link directly above the row of smileys.

Ashen

Not only is dialog_request explained in the manual (albeit poorly) and the BFAQ (much better), it's been asked on the forums many, MANY times. Please, check all of those places before posting.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk