Hi guys,
Sorry for the n00b questions. I've assigned some time to try and learn SCI0 using SciStudio 3.0. I've been going through the tutorials that are online and having some issues with testing the said command.
(instance RoomScript of Script
(properties)
(method (handleEvent pEvent)
(super:handleEvent(pEvent))
(if (Said 'look>')
(if (Said '/door')
(Print {The door is blue!})
else
(if (Said '/tree')
(Print {The tree is bright green!})
else
(if (Said '[ /* , !* ]')
(Print {You are in an empty room.})
)
)
)
)
; Cond version
(if (Said 'look>')
(cond
((Said '/door')
(Print {The door is blue!})
)
((Said '/tree')
(Print {The tree is bright green!})
)
((Said '[ /* , !* ]')
(Print {You are in an empty room.})
)
)
)
I'm getting the error: Out bracket (')') expected.
I've looked through the code but can't see where the closing bracket is needed? Any help much appreciated.