An issue with SetSpeechStyle

Started by Noto, Tue 01/12/2015 22:29:37

Previous topic - Next topic

Noto

Really sorry if this has been posted before. Almost every other issue I've run into I've been able to get around after digging for however long, but with this one I've searched, read the manual a whole bunch of times over, and still can't figure out why using this line doesn't work in my game. I'll outline it in AGS like this:

Code: ags

function room_Load()
{
SetSpeechStyle(eSpeechLucasarts);
}


And it always comes out saying "Error: Undefined token 'SetSpeechStyle'

Is this an outdated command, or am I missing something really simple?

Crimson Wizard

If you are using AGS 3.3 or higher, SetSpeechStyle was changed to Speech.Style property:
Code: ags

Speech.Style = eSpeechLucasarts;


This is explained in the "Upgrading to AGS 3.3" article in the manual. I suggest checking it out, because there are other commands which were obsoleted.

Noto

That's exactly what I was I thought would be the case, but I guess I couldn't find it in the manual when I checked. I'll give it another read-over now, and I'll be sure to look harder next time. Thank you!

Khris

Searching for "SetSpeechStyle" in the 3.3+ manual gives two results:

1. Speech functions and properties, which contains
QuoteStyle
(Formerly known as SetSpeechStyle, which is now obsolete)

static eSpeechStyle Speech.Style
(this can be found by searching the page itself for "SetSpeechStyle", just press Ctrl+F)

2. Upgrading to AGS, which features the table of recent changes prominently, and again the new command can also be found by searching the result page itself.

(Not trying to be rude or anything, just pointing out how to actually find stuff.)

Crimson Wizard

Quote from: Khris on Wed 02/12/2015 01:49:57
Searching for "SetSpeechStyle" in the 3.3+ manual gives two results:
On other hand, there is a mistake in the manual: "SetSpeechStyle" and other old speech related functions are not in the Index anymore. I noticed this only now; and this should be fixed.
All other obsolete functions are listed in Index (they lead to new functions/properties).

SMF spam blocked by CleanTalk