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 / Npc talking help please

Author
Message
Gang66
17
Years of Service
User Offline
Joined: 31st Dec 2006
Location:
Posted: 2nd Jan 2007 22:29
I have already gotten a talking script from Ben (search for talking and click on ben's) and its supposed to say a different message every time I click enter but it not working here it is

;Created by Benjamin Aeilkema

;Header

desc = game conversation

;walk up to an character and he will display a messages. when the user presses enter the next message will be shown
;when the user presses enter once more, the last message will display.
;can be used for talking characters

;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=myhuds\1.png,hudname=talk1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=myhuds\2.png,hudname=talk2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=myhuds\3.png,hudname=talk3,hudhide=1,hudmake=display,state=9

:state=9,plrdistwithin=160:rotatetoplr
:state=9,plrdistwithin=60:state=10,sound=audiobank\user\1.wav
:state=10,plrdistwithin=60:rotatetoplr,hudshow=talk1,hudfadeout=talk1
:state=10,plrusingaction=1:timerstart,state=15

:state=15,timergreater=500:state=19

:state=19,plrdistwithin=60:state=20,sound=audiobank\user\2.wav
:state=20,plrdistwithin=60:rotatetoplr,hudshow=talk2,hudfadeout=talk2
:state=20,plrusingaction=1:timerstart,state=25

:state=25,timergreater=500:state=29

:state=29,plrdistwithin=60:state=30,sound=audiobank\user\3.wav
:state=30,plrdistwithin=60:rotatetoplr,hudshow=talk3,hudfadeout=talk3
:state=30,plrusingaction=1:timerstart,state=35

:state=35,timergreater=500:state=2

:state=2,plrdistfurther=60:state=9

;End of Script



Please help me and if i did something wrong.

P.S. Where it says myhuds, Im saw Ben and them use it and i didnt have that folder so i made it and put the images in there (i dont know if i did it right) and yes i'm new to FPSC
spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 3rd Jan 2007 15:15 Edited at: 3rd Jan 2007 15:17
Maybe you shouldn't have your messages in .png format. And I'd also stick with this address for huds and stuff like that.

gamecorehudsyouhuds[your huds here]

I'm not saying that you shouldn't make your own folders and stuff, but that's what everyone else uses I think.

The only reason some of your images won't display, is because you addresses is incorrect. I had that same problem. It took me three weeks to figure out what I'm telling you now.

Regards,
spex

*edit*
This might sound stupid... but uhh, delete the writing before the code!!!

Man, I wish I knew what "spex" meant.
Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 4th Jan 2007 16:34
You can use png files, no problem at all.

The script seems correct, but most likely you're not pointing to the place where the images are.

hudimagefine=myhuds\1.png

This means that your images should be in this folder: C:\Program Files\The Game Creators\FPS Creator\Files\myhuds assuming you're installed FPSC in the default folders. Most likely your myhuds folder isn't located there, but in a different subfolder then C:\Program Files\The Game Creators\FPS Creator\Files\

Move your folder to the Files folder and the script should work fine.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
Phlum
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 8th Jan 2007 21:32 Edited at: 8th Jan 2007 21:34
Another way to get speech is Sound Trigger Zones and voice recording

(I used all the best smilies. So there)

EDIT
Quote: "gotten"


The word is "got" isn't it?

Quote: "I've already *got*ten a talking script"


[center]

Login to post a reply

Server time is: 2024-11-23 09:06:25
Your offset time is: 2024-11-23 09:06:25