Community
SCI Programming => Mega Tokyo SCI Archive => Topic started by: robingravel on September 23, 2003, 11:20:54 AM
-
I wish to use the 3rd word in my game it does not work.
(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
-
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."))
)
)
)
-
Hi cloudee1
I tried it but it doesn't work.
I get "You've left me responseless." unstead.
Robin Gravel
-
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
-
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
-
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
-
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)
-
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.
-
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."))
)
)
)
-
Thanks cloudee1.
It works.
Robin Gravel
-
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')) ....