Community
SCI Programming => Mega Tokyo SCI Archive => Topic started by: Eigen on July 29, 2002, 06:59:57 AM
-
How do I make dialog. I talk to the character and read the dialog. But if I talk to him again it game would say: "You already talked to him" How to accomplish that?
-
You would use a simple global variable and an if statement.
in main.sc, define in your local segment:
(local
...
talkedToMan = FALSE
)
then in the room script, have something like this:
(if(Said("talk/man"))
(if(talkedToMan)
Print("You already talked to him.")
)(else
= talkedToMan TRUE
Print("Hello there.")
)
)