Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Character Talking script issue

Author
Message
Jayskull900
13
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 26th May 2012 06:35 Edited at: 26th May 2012 07:02
The following script is right from the community scripts. Well...the audio won't play. The path is correct so i'm not sure what the issue is.

;Created by Benjamin Aeilkema
;Header desc = game conversation
;walk up to a character and he will display three messages in a row.

;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\RpgText\test1.tga ,hudname=talk1,hudhide=1,hudmake=display

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\RpgText\test2.tga,hudname=talk2,hudhide=1,hudmake=display

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\RpgText\test3.tga,hudname=talk3,hudhide=1,hudmake=display,state=10

:state=10,plrdistwithin=160:rotatetoplr

:state=10,plrdistwithin=60:rotatetoplr,sound=audiobank\user\texttalk1.wav,timerstart,state=20
:state=20,plrdistwithin=60:rotatetoplr,hudshow=talk1,hudfadeout=talk1
:state=20,timergreater=7500:state=20,rotatetoplr,sound=audiobank\user\texttalk2.wav,,timerstart,state=30
:state=30,plrdistwithin=60:rotatetoplr,hudshow=talk2,hudfadeout=talk2
:state=30,timergreater=7500:state=30,rotatetoplr,sound=audiobank\user\texttalk3.wav,,timerstart,state=40
:state=40,plrdistwithin=60:rotatetoplr,hudshow=talk3,hudfadeout=talk3
:state=40,timergreater=7500:timerstart,state=2
:state=2,plrdistfurther=60:state=10

;End of Script
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 26th May 2012 10:20
check the format of your waves, fpsc cant handle some frequency settings. try 22khz or 48khz. most samplers use 44khz wich doesnt work in fpsc.

delete the doubled "," after the sound-actions.

Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 26th May 2012 11:11
double commas are your problem

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 26th May 2012 13:59
not neccessarly, i got some braindead moments while scripting, script used much more ressources with double commas but still worked.^^

Jayskull900
13
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 26th May 2012 17:35
I didn't even know that the 44khz was an issue! I swear I had one before and it was fine, but when your right your right. I changed it and it works perfectly. Thank you so much

Login to post a reply

Server time is: 2024-11-24 00:49:09
Your offset time is: 2024-11-24 00:49:09