Inventory turns on dialog

Started by DrakeStoel, Mon 23/07/2012 21:33:57

Previous topic - Next topic

DrakeStoel

I'm trying to make different options appear for my dialog depending on what inventory items I have, but I keep getting the error "undefined token 'option'" I'm not sure how to fix this. Here's my script:
Code: AGS
// Dialog script file
@S  // Dialog startup entry point
  if (player.HasInventory (iBarrel))
  {
    option-on 1
  }

Anyone's help would be appreciated :grin:

Deu2000

Code: AGS
// Dialog script file
@S  // Dialog startup entry point
  if (player.HasInventory (iBarrel))
  {
option-on 1
  }


The error: you tabulated before the dialog script. When you tabulate, it means it's a script command.

PM: Sorry for my crashing english :(



DrakeStoel

Well, that sure fixed it right up! Thanks a bunch!

SMF spam blocked by CleanTalk