Speech problem
Speech problem
I simpy wan't the game to say anything.
In the start script (after setting up a font) I programmed:
loadroom(Room1)
setfocus(self)
setfont(1)
speech(self ; This is speech; dontwait)
Why is this not working?
In the start script (after setting up a font) I programmed:
loadroom(Room1)
setfocus(self)
setfont(1)
speech(self ; This is speech; dontwait)
Why is this not working?
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-
-Rohan-
Re: Speech problem
Rohan wrote:I simpy wan't the game to say anything.
In the start script (after setting up a font) I programmed:
loadroom(Room1)
setfocus(self)
setfont(1)
speech(self ; This is speech; dontwait)
Why is this not working?
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-
-Rohan-
No, there is no character yet. We use "Self" to describe a character who does not appear on the screen. Such as myst, where the character is yourself. It's not easy to describe, basicaly I want the computer to say something on a menu, such as:
"The number you entered is not a valid number" without using the textout function but rather the speech function that allows you to answer the computer. I'm confused I don't know how to explain this problem very well.
"The number you entered is not a valid number" without using the textout function but rather the speech function that allows you to answer the computer. I'm confused I don't know how to explain this problem very well.
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-
-Rohan-
Ok, so this explains everything^^.
How can you set a focus on a character that does not exist?
The setfocus() does not find the character self and because of that speech(self;...) does not work.
If you want to have a speech without a character you have to use offspeech(...).
Maybe you should read the manual where things like that are well explained.
How can you set a focus on a character that does not exist?
The setfocus() does not find the character self and because of that speech(self;...) does not work.
If you want to have a speech without a character you have to use offspeech(...).
Maybe you should read the manual where things like that are well explained.
Hi Rohan
Also here's something that could be a problem. When I test my game I have to go into dxdiag and turn off all the sound accelerators, then I get sounds and voices. Just remember to turn it back on when you are playing commercial games. I don't know if this might be your problem but you never know.
Are you doing a Myst type game or a 1st person game? If it is a first person maybe a dummy character might be of help. In my game I go into rooms like inside a refrigerator and interact with inventory, so maybe this might help you. Good luck with your project
Also here's something that could be a problem. When I test my game I have to go into dxdiag and turn off all the sound accelerators, then I get sounds and voices. Just remember to turn it back on when you are playing commercial games. I don't know if this might be your problem but you never know.
Are you doing a Myst type game or a 1st person game? If it is a first person maybe a dummy character might be of help. In my game I go into rooms like inside a refrigerator and interact with inventory, so maybe this might help you. Good luck with your project
StarLite Moon's Creators Haven
http://starlite-moon.freeforums.net
http://starlite-moon.freeforums.net
Well, I progressed in the games production last night by using offspeech. I wish I had read your response because it took me a long time to figure it out. The reason that I was convenced setting the focus to SELF and then using: Speech(self ; blah, blah, blah) would work is because that is exactly what Zimond used in the start script in his TestAdv. If you import it the script is like this:
wait(3)
setfont(2)
setfocus (horst)
loadroom (Titel)
playmusic (startmucke ; 2;true)
wait(2,5)
playsound (oingbootz)
setobj (titel_text ; 1 ; 2) wait(6)
loadroom (Zimmer1)
stopmusic()
wait(2)
setscreenchange (6)
playsound (tuer ; -80)
setobj (zimmer1_tuer ; 2) wait(0,4)
beamto (self ; Zimmer1 ; 5 ; 15; 3) wait(0,5)
walkto (self; 8;16) wait(0,3)
playsound (tuerzu ; -80)
setobj (zimmer1_tuer ; 1) wait(0,5)
speech(self ; Yo, am i here or what?)
wait(0,3) walkto(self ; 16 ; 18 ; 2)
speech(self; Amazin Room. Took you a lot of time to create?)
wait(0,3)
offspeech (8; 3; Shut up you fishhead!)
walkto (self ; 16 ; 19 ; 1)
speech (self ; What did you SAY???)
wait (0,3)
offspeech (8; 3; I think you understood!)
wait(0,5)
etc...
Anyway, thanks a lot for responding guys, I'm so glad I got this sorted out.
Starlite, I am not making a myst adventure, I wanted the game to have a voice over before it begins and then the main character becomes the focus. By the way, I just got the message you sent me about hosting my game on your page, I would love to when I get it finished. I can't believe I never checked my mail... Thanks!
wait(3)
setfont(2)
setfocus (horst)
loadroom (Titel)
playmusic (startmucke ; 2;true)
wait(2,5)
playsound (oingbootz)
setobj (titel_text ; 1 ; 2) wait(6)
loadroom (Zimmer1)
stopmusic()
wait(2)
setscreenchange (6)
playsound (tuer ; -80)
setobj (zimmer1_tuer ; 2) wait(0,4)
beamto (self ; Zimmer1 ; 5 ; 15; 3) wait(0,5)
walkto (self; 8;16) wait(0,3)
playsound (tuerzu ; -80)
setobj (zimmer1_tuer ; 1) wait(0,5)
speech(self ; Yo, am i here or what?)
wait(0,3) walkto(self ; 16 ; 18 ; 2)
speech(self; Amazin Room. Took you a lot of time to create?)
wait(0,3)
offspeech (8; 3; Shut up you fishhead!)
walkto (self ; 16 ; 19 ; 1)
speech (self ; What did you SAY???)
wait (0,3)
offspeech (8; 3; I think you understood!)
wait(0,5)
etc...
Anyway, thanks a lot for responding guys, I'm so glad I got this sorted out.
Starlite, I am not making a myst adventure, I wanted the game to have a voice over before it begins and then the main character becomes the focus. By the way, I just got the message you sent me about hosting my game on your page, I would love to when I get it finished. I can't believe I never checked my mail... Thanks!
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-
-Rohan-
I understand now, you clarified what schiman explained. Much thanks to both of you. I have read the manual many times but I couldn't find the section on offspeech, I should have looked it up in the command list now that I think about it. Sometimes when I work on a game for a long period of time, things get confusing and I stop thinking clearly. This was a rather simple problem, sometimes I need stop and take a brake for a while to set my mind streight.
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-
-Rohan-