Community
SCI Programming => Mega Tokyo SCI Archive => Topic started by: TrvMcNevan on June 17, 2004, 07:38:07 PM
-
Okay, I am totally new to this. The only programming I have ever done is in QBasic. I have been working on the tutorial on this site but I keep running into the same problem. When I get to handleEvent, and I place more than one event in there the script won't work. I'm thoroughly confused. Please help me out here...
-
Ok here is the code that is bothering me....
(instance RoomScript of Script
(properties)
(method (handleEvent pEvent)
(super:handleEvent(pEvent))
/*****************************************
* Handle the possible said phrases here *
*****************************************/
(if(Said('talk/man'))
(if(< (send gEgo:distanceTo(aMan)) 40)
Print("Hello Brian!" #title "You Say:")
Print("Hello there! Welcome to SCI Studio!" #title "Brian Says:")
)(else
Print("You don't want to yell. Get closer.")
)
)
(instance aMan of Act
(properties
y 170
x 220
view 1
)
)
- when I go to compile it, the program says that something needs (')'). It's really confusing me.
-
...
)(else
Print("You don't want to yell. Get closer.")
)
)
) // (if(Said('talk/man')) closing bracket
) // (method (handleEvent pEvent) closing bracket
-Eigen