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 / Talking script does not work (help?)

Author
Message
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 25th Jan 2007 00:36


The code above is Bens, from his talking npc thread. But when I add it to a trigger zone, nothing appears at all. I dont know whats wrong, it should just work, but it doesnt. Does any one know why?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Jan 2007 00:41
The script was written to be used for a character. I don't think the plrdistwithin and plrdistfurther conditions will work for a zone.

Best.

I'm sorry, my answers are limited. You must ask the right question.

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 25th Jan 2007 15:00
It doesnt even work when a character has it as the aimain script. Ive also tried it on a dynamic entity.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Jan 2007 15:13
I changed only the HUD file and location and assigned it to a characters AI Main to test and it worked fine. Maybe it's your HUD location? This is what I used:

;Header

desc = game conversation show one screen once only no sound

;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\lockeddoor.tga,hudname=img1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=160:rotatetoplr
:state=10,plrdistwithin=60:rotatetoplr,state=20
:state=20,plrdistwithin=60:rotatetoplr,hudshow=img1,hudfadeout=img1
:state=20,plrdistwithin=60,plrusingaction=1:state=40
:state=20,plrdistfurther=60:state=40

;End of Script

Best.

I'm sorry, my answers are limited. You must ask the right question.

Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 25th Jan 2007 15:29
Higgins the script you refer to isn't mine at all. It is what you have made of it and you've made a huge mistake in it. My scripts work splendid, but if people start messing them up, they will not function anymore.

Quote: "hudimagefine=gamecore\\user\\text1.tga"


should be:

hudimagefine=gamecore\user\text1.tga

Most likely that should solve your problem. If not start over using the original script as a base.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 25th Jan 2007 15:29
I dont know what it was, but I copied a hud image fpsc comes with andthat showed up. Maybe it couldnt read my tga file?
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 26th Jan 2007 06:19
Higgins- That copy thing happens to me every now and then. I can agree that you did not do that on purpose or do that at all.

Hmmmm, it never worked for me when I set it to a trigger zone. What I actually do is set it to a story zone. But it should work when you put it to an aimain. Not sure what to tell you. You could go ahead and try the story zone thing. Sorry if it doesn't help.

Tiggle Bitties

Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 26th Jan 2007 08:25
It's not created for using it with zones, but with entities. If you want to use it with zones, you need to rewrite the script completely.

Instead of using plrdistwithin=xxx you need to switch to plrwithinzone=1 and from plrdistfurther=xxx to plrwithinzone=0. Those are the conditions for zones.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 26th Jan 2007 16:09
Quote: "It's not created for using it with zones, but with entities. If you want to use it with zones, you need to rewrite the script completely."

I didn't have to. Hmmmm that's weird. I just attached it to a zone, and what do ya know, it worked.

Tiggle Bitties

SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 2nd Feb 2007 21:05
Ive got it working, it was just that the tga file wouldnt be read by fpsc, so you have to use a dds file.

Login to post a reply

Server time is: 2024-11-23 11:22:19
Your offset time is: 2024-11-23 11:22:19