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 / script misbehaving -- plrdistwithin and etimer not working together

Author
Message
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 10th Oct 2014 14:13
FPM attached..

the idea is to give 2 warnings upon approaching a area. then if you don't leave to blast away at you.
current code stripped trying to get it to work.

THis is what i kinda worked up to start with,



currently what happens is both warnings display and he shoots at you..
I have turned the plrdistwithin=500,etimergreater=1500
and reversed it
etimergreater=1500,plrdistwithin=500
yet it makes no difference,,
as well as plrdistwithin=500 is not being honored at all.
the first working script state is
:state=2,plrdistwithin=500:waypointstop
yet the player is at a distance of 1000 or better and the character is not using the waypoints!
The script just runs through all states and tries to kill you.

The FPM runs from mapbank and the script is run from the scriptbank.

It has to be something I did that I am not seeing. please help.

Attachments

Login to view attachments
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 10th Oct 2014 16:18 Edited at: 10th Oct 2014 20:44
Hi Meows
Took a quick look at the script and noticed a possible
problem with the line at "state=6"

The "etimergreater=1000" and then goes nowhere,
but the next line down jumps right to "state=7" skipping
the timer altogether? I'll play with this and see
what I can do..
best

I think I got it to work, see if this works for you?

My games never have bugs. They just develop random features..

Attachments

Login to view attachments
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 10th Oct 2014 21:44
Quote: "I think I got it to work, see if this works for you?"

Bless you! yes that works wonderfully.

ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 10th Oct 2014 23:28
Meows
Great, happy it works for you
Adjust the script to suit your needs.
best

My games never have bugs. They just develop random features..

Login to post a reply

Server time is: 2024-03-29 13:54:28
Your offset time is: 2024-03-29 13:54:28