Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: FastaKilla on March 29, 2003, 12:43:20 AM

Title: Troubles with "said" statements
Post by: FastaKilla on March 29, 2003, 12:43:20 AM
In the first room, I have

        (if(Said('look>')
          (if(Said('/door'))
            Print("The Door to the Quickstop is white.")
          )(else
            (if(Said('/car'))
              Print("There is a blue car parked at the Quickstop.")
            )(else
              (if(Said('[ /* , !* ]'))
                Print("You are at the Quickstop.")
              )
            )
          )
        )
        )
        )
)

in the RoomScript.  I have

(if(Said('hi'))
            Print("Hi")
        )

in the Main script.

The problem is, my game keeps printing "You are at the Quickstop" when I type "hi" or pretty much any other word (like, say "farm")

I also have the death thing working, but only for room 1.  How can I make it have you die if you type it anywhere?  Just type the same things in the "Main" script instead?

Please help, thanks.  I have no programming knowlege, and so far the only stuff I have programmed in the game are

PICS:Title screen and 11 rooms (3 with doors)
13 various VIEWS
11 SOUNDS
and a tiny bit of stuff from the script (doors, some actors, the above, and other various changes)
Title: Re:Troubles with "said" statements
Post by: Eigen on March 29, 2003, 01:32:29 AM
You have (if(Said('look>') instead of (if(Said('look>')). Then remove one ) from the end. And about the death thing. Just add it to main.sc to other global said comands.


-Eigen
Title: Re:Troubles with "said" statements
Post by: FastaKilla on March 31, 2003, 02:39:46 PM
Thanks, both of you


What you talkin bout Batman