Author Topic: Said statement  (Read 3826 times)

0 Members and 1 Guest are viewing this topic.

Offline robingravel

Said statement
« 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



Offline Cloudee1

Re:Said statement
« Reply #1 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."))
      )
  )
)
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline robingravel

Re:Said statement
« Reply #2 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
« Last Edit: September 24, 2003, 11:39:54 AM by Robin_Gravel »

Offline Cloudee1

Re:Said statement
« Reply #3 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
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline robingravel

Re:Said statement
« Reply #4 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
« Last Edit: September 26, 2003, 09:16:31 PM by Robin_Gravel »

Gromitigo

  • Guest
Re:Said statement
« Reply #5 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

Offline Cloudee1

Re:Said statement
« Reply #6 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)
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline Allen

Re:Said statement
« Reply #7 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.
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Offline Cloudee1

Re:Said statement
« Reply #8 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."))
    )
   )
  )
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline robingravel

Re:Said statement
« Reply #9 on: November 13, 2003, 09:56:53 PM »
Thanks cloudee1.

It works.


Robin Gravel

Offline Brian Provinciano

Re:Said statement
« Reply #10 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')) ....


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.043 seconds with 21 queries.