21
SCI Syntax Help / Re: SCI0: GoToIfSaid ?
« Last post by troflip on May 22, 2026, 09:43:14 PM »Wouldn't you need pathfinding support for "GoToIfSaid" type functionality? I don't think that was added until after SCI0.
((Said '[/door]>')
(cond
((TurnIfSaid self event 'look/*'))
((Said 'look[<at]') (Print 12 3) ; "This is the door to hut #2.")
Note that this is hutDoor::handleEvent, so self is the hut door.(GoToIfSaid obj event theTargetOrX theDistanceOrY optSpec)
(TurnIfSaid obj event optSpec)9/22/89 Pablo: GOTOSAID: The end of "not close enough".
TurnIfSaid is a new version of Mark Hood's procedure for making ego
face whatever was mentioned. For example if the user types "look chair"
ego will turn in place to face the chair before getting a response.
GoToIfSaid is similar but, as the name implies, it moves ego to a
specified point or object vicinity before reprocessing the Said event.
These procedures are only useful if sortedFeatures are in use. Grooper
and avoider are used to turn and move.
* This takes up ZERO bytes if you don't use it.in LB2 most songs are MIDI, but "The Archaeologist Song" has both a MIDI version and an audio version with lyrics. So you can call the MIDI version with 312 or the digital version with 1312.
(using unused numbers, as Sound and Audio assets share a namespace).
SMF 2.0.19 |
SMF © 2021, Simple Machines
Simple Audio Video Embedder
Page created in 0.028 seconds with 15 queries.