Author Topic: Troubles with "said" statements  (Read 1823 times)

0 Members and 1 Guest are viewing this topic.

Offline FastaKilla

Troubles with "said" statements
« 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)


I don't have a homepage, but I have this
http://www.gamefaqs.com/features/recognition/19253.html

Offline Eigen

Re:Troubles with "said" statements
« Reply #1 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
Artificial Intelligence Competition

Offline FastaKilla

Re:Troubles with "said" statements
« Reply #2 on: March 31, 2003, 02:39:46 PM »
Thanks, both of you


What you talkin bout Batman
I don't have a homepage, but I have this
http://www.gamefaqs.com/features/recognition/19253.html


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

Page created in 0.073 seconds with 20 queries.