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 / Problem in Scripting

Author
Message
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 9th Jan 2008 21:08
What is the problem of this script ?
( I am learning script (
- When player is in the zone If its health is less 50 then add 50 health to him :

- :plrwithinzone=1,healthless=50:state=1,plraddhealth=50

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 9th Jan 2008 21:44 Edited at: 9th Jan 2008 21:59
:plrwithinzone=1,healthless=50:state=1,plraddhealth=50

it think it needs to be :

:state0,plrwithingzone=1:State1
:state1,healthless=50:plraddhealth=50,state0

the bold means that that command may doesnt exist.

ohh and im worse then you in scripting cause um this is my second attempt tho i have a good recource pdf which helps alot!

<-made by Nickydude
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Jan 2008 00:08
:plrwithinzone=1,healthless=50:state=1,plraddhealth=50

healthless is a condition for an entites script

the condition for the player is plrhealthless

therefore your line should read...

:plrwithinzone=1,plrhealthless=50:state=1,plraddhealth=50

Don't forget to visit Conjured Entertainment

3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 10th Jan 2008 07:48
My friends :
I tested both of you'r scripts but didn't work ... I tested these :

Quote: ":state0,plrwithingzone=1:State1
:state1,healthless=50:plraddhealth=50,state0"

and
Quote: ":plrwithinzone=1,plrhealthless=50:state=1,plraddhealth=50"


The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 10th Jan 2008 11:27
It would help us more to help you if you provided a little bit better feedback than "it didn't work".

Let us know what it's doing that you don't consider "working". What DOESN'T it do that it SHOULD be doing, as well as what it's DOING that it SHOULDN'T be doing.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 10th Jan 2008 14:08
My god !
I put the Health Zone in my game (green triger) but in the test game doesn't do this event !!!!!

I put a triger zone and set the script in the Main AL . But doesn't work !

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 10th Jan 2008 14:26
Wow !
I repaired upgrade 1.07 and it worked properly !
Now , Almost I know that how to script , just need to some practice ... I try to be a good scripter.
Thanks for all of you'r helps.

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 10th Jan 2008 15:12
Please help me in this :
What is problem in this script ? doesn't run :

:plrwithinzone=1:state=1,plrmoveup=500

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Jan 2008 16:22 Edited at: 10th Jan 2008 16:26
Some of the Conditions/Actions in the FPSC Manual are non-operational, and plrmoveup is one of them.
Those conditions and actions were intended but then later excluded so FPSC could be released earlier.
Some of the ones that were nonfunctional have been addressed in updates and I'm sure more will be too.
When having problems with a single line of code, try searching each condition or action to find any threads warning about them.
I do not have a list of all of the ones that do not work, but there are not too many so you can work around them.
The work around for moving the player up would be to associate an entity to the player then move the entity.
Jet packs scripts use this technique as it is based on the stock scripts for lifts.
Try searching 'jetpack' and study those scripts to learn how to elevate a player.

Don't forget to visit Conjured Entertainment

3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 10th Jan 2008 19:19
Quote: "Conjured Entertainment "

Thanks a world.

-------------------------------------------------------------------

Today I begun to learn the FPI MAKER and decided that make a "Follow Player" script.
- The character follow the player in move ... But have a problem.
Look at this image :



In this image , player is stoping and character is stoping too ... But the character have running mode in his foot !
How I can to repair it ?
This is my code :



The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Jan 2008 21:24
Try this...



Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-11-27 21:38:19
Your offset time is: 2024-11-27 21:38:19