Speech problem

For problems with creating games or for reporting bugs of the Tool.
Post Reply
Rohan
PaC-DK Newby
Posts: 37
Joined: 23 Apr 2008, 18:45
Location: Mifflin Pa
Contact:

Speech problem

Post: # 74559Post Rohan
04 Oct 2009, 05:44

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
PaC-DK Newby
Posts: 37
Joined: 23 Apr 2008, 18:45
Location: Mifflin Pa
Contact:

Re: Speech problem

Post: # 74560Post Rohan
04 Oct 2009, 05:46

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
PaC-DK Newby
Posts: 37
Joined: 23 Apr 2008, 18:45
Location: Mifflin Pa
Contact:

Post: # 74563Post Rohan
04 Oct 2009, 08:13

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.
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-

Schiman
PaC-DK God
Posts: 1177
Joined: 20 Dec 2006, 21:48
Contact:

Post: # 74564Post Schiman
04 Oct 2009, 13:23

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.

StarLite
An Adventure Creator
Posts: 446
Joined: 02 Jul 2005, 18:32
Contact:

Post: # 74568Post StarLite
04 Oct 2009, 18:05

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
StarLite Moon's Creators Haven

http://starlite-moon.freeforums.net

Rohan
PaC-DK Newby
Posts: 37
Joined: 23 Apr 2008, 18:45
Location: Mifflin Pa
Contact:

Post: # 74571Post Rohan
04 Oct 2009, 20:52

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!
When a man fears for his reputation, he will temporarily humble himself.
-Rohan-

Zimond
Der Engine Papa
Posts: 3420
Joined: 06 Apr 2003, 19:34
Location: Krefeld
Contact:

Post: # 74576Post Zimond
05 Oct 2009, 07:13

As you can see i did NOT set the focus to SELF... so your gamesituation and the startscript of the Testadventure are different.

Self is not a name... as Schiman already explained: Self can only work if a specific character has the current focus.

Rohan
PaC-DK Newby
Posts: 37
Joined: 23 Apr 2008, 18:45
Location: Mifflin Pa
Contact:

Post: # 74584Post Rohan
05 Oct 2009, 10:19

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-

Post Reply