Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: robingravel on September 23, 2003, 11:20:54 AM

Title: Said statement
Post by: robingravel on September 23, 2003, 11:20:54 AM
I wish to use the 3rd word in my game it does not work.
Quote
(if(Said('shoot>'))
 (if(Said('/gun>'))
  (if(Said('/bill'))
   Print("You shoot the gun to Bill.")
  )(else
   Print("You don't wish to shoot to everybody.")
  )
 )
)

I didnt get any compile errors.


Robin Gravel
Title: Re:Said statement
Post by: Cloudee1 on September 24, 2003, 02:40:23 AM
Hey Robin try this:
 
(if(Said('shoot>'))
  (if(Said('/gun>'))
    (if(Said('//bill'))
       Print("Using the gun, You shoot at Bill.")
    )(else
      (if(Said('[ /* , !* ]'))
        Print("You don't need to put holes in everyone and everything."))
      )
  )
)
Title: Re:Said statement
Post by: robingravel on September 24, 2003, 11:38:59 AM
Hi cloudee1

I tried it but it doesn't work.

I get "You've left me responseless." unstead.


Robin Gravel
Title: Re:Said statement
Post by: Cloudee1 on September 24, 2003, 09:09:27 PM
Hey Robin ,
  that script should work I opened a new game to work it out and the only thing I can come up with is that maybe your vocabs are set different.
 
shoot is Imperative Verb
gun is Noun
bill is Noun

I've tried several different phrases and they all seem to come back correct, "shoot gun at bill", "shoot gun to bill"
"shoot gun at wall" all of them worked, so like I said check your vocabs, sometimes when I add a new word I  forget to add the type, make sure gun isn't set to something besides noun
Title: Re:Said statement
Post by: robingravel on September 26, 2003, 09:13:55 PM
Hi Cloudee1

First. Thanks for the advices.

The script now works only if I write 'shoot gun at bill', 'shoot gun to bill' but it doesn't work if I write only 'shoot gun bill'.

Some foreing people who knows a little in english will not think to write 'shoot gun at bill'. But I guess there is the way the sci works.


Robin Gravel
Title: Re:Said statement
Post by: Gromitigo on September 27, 2003, 02:24:26 PM
Dis is simplah not true, Robin.  Ah myzelf am a Frenchman an I do be-lieve that I would have come up wiz diz an-sar.  Ah, myself, would have said "pull trigger at bill", but my mastery of the English language leavez much to be dezired.  

Peter Le'Franc
Title: Re:Said statement
Post by: Cloudee1 on September 29, 2003, 03:00:32 AM
There's always the old standby "use gun on bill"

but personally I would have just said "shoot bill"

but that's just me   8)
Title: Re:Said statement
Post by: Allen on September 29, 2003, 10:54:03 AM
Dis is simplah not true, Robin.  Ah myzelf am a Frenchman an I do be-lieve that I would have come up wiz diz an-sar.  Ah, myself, would have said "pull trigger at bill", but my mastery of the English language leavez much to be dezired.  

Peter Le'Franc
Hmm... a Frenchman in Virginia?
If you talk like that, you haven't really mastered the English language. Methinks you are just being a troll.
Title: Re:Said statement
Post by: Cloudee1 on November 13, 2003, 04:16:00 PM
Hey Robin try this code:

(if(Said('shoot>'))
   (if(Said('/gun>'))
   (if(Said('//bill'))Print("Using the gun, You shoot  Bill."))
    (else(if(Said('[ /* , !* ]'))Print("You don't need to put holes in everyone and everything."))
    )
   )
   (else(if(Said('/bill'))Print("Using the gun,You shoot Bill."))
    (else(if(Said('[ /* , !* ]'))Print("You don't need to put holes in everyone and everything."))
    )
   )
  )
Title: Re:Said statement
Post by: robingravel on November 13, 2003, 09:56:53 PM
Thanks cloudee1.

It works.


Robin Gravel
Title: Re:Said statement
Post by: Brian Provinciano on November 15, 2003, 01:42:45 PM
Hey Robin try this code:

(if(Said('shoot>'))
   (if(Said('/gun>'))
   (if(Said('//bill'))Print("Using the gun, You shoot  Bill."))
    (else(if(Said('[ /* , !* ]'))Print("You don't need to put holes in everyone and everything."))
    )
   )
   (else(if(Said('/bill'))Print("Using the gun,You shoot Bill."))
    (else(if(Said('[ /* , !* ]'))Print("You don't need to put holes in everyone and everything."))
    )
   )
  )

Have a look in the help file for if statements and the "and" and "or" keywords.

You could simply do something like:
if( Said('/gun>') and Said('//bill') or Said('//bill')) ....