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 / What Is Wrong With This (Investigation Script: Edit)

Author
Message
Takeze
11
Years of Service
User Offline
Joined: 8th Oct 2012
Location:
Posted: 21st Jun 2013 00:14
The Code Works Perfectly In Normally(By Pressing X It Changes Hud) But I Would Like To Hide The Second hud("After Hud") By Pressing X Again But It Stucks Just Showing The Second Hud

Any Help Appreciated


ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 21st Jun 2013 16:22 Edited at: 21st Jun 2013 16:34
Hi Takeze
Quote: ":state=9:scancodekeypressed=45,state=11;"

After a quick glance I noticed after state=11 a semicolon?
Try dropping it and try again.
Also a colon after state=9? Try..
Takeze
11
Years of Service
User Offline
Joined: 8th Oct 2012
Location:
Posted: 23rd Jun 2013 18:21
@ncmako Unfortunately It Won't Work
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 24th Jun 2013 03:28
Takeze
Let me ask you, are you running this script in a trigger or on an entity? I noticed two lines in your script. "plrwithinzone" & "plrdistwithin"?

This should work. Let me ask you, do you need this line in your script?
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Jun 2013 05:34 Edited at: 24th Jun 2013 05:47
Quote: ";Artificial Intelligence Script By Conjured Entertainment"

That's funny.
I don't remember writing any scripts like this


Quote: "
:state=0:settargetname=cs1

:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
globalvar=1
"

That looks like something from the old v109 cash system.
This script is so different from the original, it should have been written from scratch.
Maybe, something like this



It checks for the key release and for the player leaving the zone when huds are displayed or not, for looping.

I changed the path to the second hud to place it in the same folder as the first one.
I also corrected spelling errors in file names, which is an easy way to foul things up when we're in a hurry.


Quote: "
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Investigate\Investigate.tga,hudname=Invest,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Investigate\Unknown.tga,hudname=After,hudhide=1,hudmake=display,state=2
"


Takeze
11
Years of Service
User Offline
Joined: 8th Oct 2012
Location:
Posted: 25th Jun 2013 12:15
@ncmako I Use It On Entity Itself And It Works In Trigger Too. Which Line I Should Replace With Yours?


@Conjured Entertainment: I Tried your Script And I Have Issues Now It Only Shows The First Hud But Not Second And The Spelling "Errors" Where Not Problem Fortunately.

I Appreciate Both Of Your Your Time For Helping Me Anyway.
Thank You!
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 25th Jun 2013 16:48 Edited at: 25th Jun 2013 16:49
@Conjured Entertainment Good catch with the misspells

@Takeze Conjured's script should work with entity & zone.
I would double check your paths/spellings.
But if your only attaching it to an entity, drop the "plrwithinzone" parts.

best
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Jun 2013 03:58
Quote: "@Conjured Entertainment: I Tried your Script And I Have Issues Now It Only Shows The First Hud But Not Second And The Spelling "Errors" Where Not Problem Fortunately."


I tested my script with a sci-fi battery and it worked fine on my end.

Just change the paths/filenames for the huds to match your and you should be fine.

Takeze
11
Years of Service
User Offline
Joined: 8th Oct 2012
Location:
Posted: 28th Jun 2013 01:12
My Apologies I Had Unknown.DDS In Wrong Folder .I't Works Now!!!(One Of The Happiest Moments Now ) Thank You For Your Support, Have A Carrot

Login to post a reply

Server time is: 2024-03-28 17:21:48
Your offset time is: 2024-03-28 17:21:48