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 / Code door images issue

Author
Message
ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 27th Sep 2013 22:25
Hello, i try to edit the codedoor script to choose between 5 images:
1. shows _ _ _ _ to type code
2. shows first number X _ _ _
3. shows two numbers X X _ _
etc.


It's strange that it doesn't know (i can only press first number).
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 29th Sep 2013 07:44
So what do you want to happen if they hit the wrong number in any of the sequence?

Right now your script sends all wrong choiced to state=11

As there is not state=11 in your script. So the script would just stop at these points.

if they enter the right number then I would think that this line style below would not be needed. Same for the other numbers that where choosen right. You already have the previous proper number listed a bit farther down in that section anyway going to state=11.

:state=3,scancodekeypressed=77:state=2

But mainly I think it is the state=11 part as it provides no way to rerun that section and give opportunity for the player to try again and therefore giving the script no way to continue.

But you are on the right track. Hope this helps a bit.

ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 30th Sep 2013 18:21
Ok, now i have this and i hear sound loop when i press correct number

Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 30th Sep 2013 20:54
Are you able to get thru the input of all the numbers now?

ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 1st Oct 2013 21:16
nope, only first.
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 3rd Oct 2013 13:55 Edited at: 3rd Oct 2013 13:56
Hello, Could you post the original codedoor script please.
Thanks.

Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 3rd Oct 2013 16:00
Ok try this map and script out and see how this works for you.

file in download button.

Attachments

Login to view attachments
ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 5th Oct 2013 13:15
Hi, it works but there are a problem with dissapering images. If I open the doors or leave the zone then the image with code is still in HUD.

Could you help me with this ?
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 5th Oct 2013 16:21
Can you send a small map with stock segments and doors so I can see what you mean.

How many doors are we talking.

I need more info. Send the modifies script please to my email or in the download button.

ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 5th Oct 2013 16:29
Attached.

Attachments

Login to view attachments
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 5th Oct 2013 16:30
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 5th Oct 2013 16:49 Edited at: 5th Oct 2013 16:50
Question. If the player backs out of range at any time before the code is completed, Do you want to keep it where the player was, or start the code entry over?

ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 5th Oct 2013 18:23
To keep where player was
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 5th Oct 2013 18:32
ok. I will look into this later when I get home from work.

Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 6th Oct 2013 04:56
Ok. here is the revised script in the download button.

Place this in the scriptbank\user folder.

Attachments

Login to view attachments
ToRRent
11
Years of Service
User Offline
Joined: 10th Jul 2013
Location:
Posted: 6th Oct 2013 15:58
Thank you Pirate Myke for help, it works.
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 6th Oct 2013 17:43

Login to post a reply

Server time is: 2024-11-23 11:26:11
Your offset time is: 2024-11-23 11:26:11