[Solved] Ask yes/no help

I e tried following what it says i n the document, but im somehow getting it wrong...

Ask ("Are you sure you want to help this man with whatever strange science he has up his sleeve?") {
  If (result)
    msg ("Yes Test")
  } else {
    msg ("No Test")
  }

Try this:

ask ("Are you sure you want to help this man with whatever strange science he has up his sleeve?") {
  if (result){
    msg ("Yes Test")
  } else {
    msg ("No Test")
  }

Note lower case and brackets


Ah, that capital I was ruining it. Thanks


Sad that Quest is so case sensitive...
It make So muCh troubLe everyWhere!!!


The capital shouldn't matter; ask is a built-in script command, and Ask is a function, but either should work there. (Same difference as show menu vs ShowMenu)


Log in to post a reply.

Support

Forums