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 / How I can make this ?

Author
Message
Majid Tavakkoli
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 29th May 2007 09:59
I want to make this script :
" When the enemys see the player , the player will be loss."
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 29th May 2007 12:03 Edited at: 29th May 2007 12:04
That's actually not as easy as you think, cus there are no lose zones in FPSC. You need to make a new hud which is displayed when player is seen, then quit the game.

You'll need this:


Take dooruse.fpi for example and combinate it with an entity AI...
You'll have to try yourself.

Hope that helped


For all my free FPSC entities!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 29th May 2007 15:33
How about...

:plrcanbeseen:plraddhealth=-500

Best.

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

Majid Tavakkoli
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 29th May 2007 15:54
Thanks for you'r help.
I don't know anythings about FPSC Language.
A world thanks if answer my questions.
-Whats state=0?
-Whats state=1?
In some FPSC scripts I saw that writing :
State=21
What is mean of it?
Thanks.
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 29th May 2007 19:22
States are just the state that the script is in.

It will only do things that are in the state that is required.

Example if you wanted a hurt zone to only hurt the player once you would do this.




Now, translated into english.......

The first colon ( : ) means IF.
The second colon ( : ) means THEN.
The commas ( , ) mean AND.


So, translating the above code.

If the state is 0 and the player is in the zone Then remove 10 health from the player (that is why we have the -) And set the state to 1

Then the second line.....

If the state is 1 Then do nothing

The state command (state=x) can be used either in the IF section or the THEN section.
If it is in the THEN section it changes the state, if it is in the IF section it checks if the state is x. (x being the number)



Some people like to use a combination of single and double digits.

E.G.

state 1
state 2
state 3
state 10
state 20
state 30

or they just count up, E.G.
state 1
state 2
state 3
state 4
etc.

It's up to you really.


If it is a large script you may want to seperate it up so that different effects have different numbers of digits.




If you search for "fpi maker" you will find a brilliant tool that helps you a lot.

Basically when you put the first colon it gives you a long list of "IF" statements to choose from, and when you put the second it gives you a load of "THEN" statements.



Also, another thing, if you put :: at the beginning of a line, it will automatically do it .






I hope that helped you.

E.D.

Majid Tavakkoli
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 29th May 2007 20:35
A world thanks.I am progressing.
Now onebody answer me:
-Is this script correct?
:health=50:plraddhealth=50
piXX3D
17
Years of Service
User Offline
Joined: 27th Mar 2007
Location: Nowhere
Posted: 5th Jun 2007 09:44 Edited at: 5th Jun 2007 09:46
If you want to try and understand the basics of scripting, then read this:

http://www.madladdesigns.co.uk/fpsc/FPSCHintsnTips.pdf

It's Nickydude's Hints 'n' tips guide. Read the tutorial near the beginning about FPI Scripting, it's written by Xplosys, very good, good language, easy to understand. Explains everything.

-----------

As for your script...

:health=50:plraddhealth=50

What it will do is that if your player's health is 50, it will add another 50 on to it.

So say you had 300 health, you got shot, had only 50 left, then this script would then add 50... I doubt that's what you mean to do, if you tell me clearlywhat you want to happen I can probably code it for you. I'm sorry, I realise you're not English, but please try to explain in detail what you want to happen so that I can do this exactly to plan.

www.ciphersoftware.co.uk

MindLife - v1.0: At the forums: http://forum.thegamecreators.com/?m=forum_view&t=107284&b=25
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 6th Jun 2007 15:33 Edited at: 6th Jun 2007 16:02
look at the manaual for all the conditions and actions

A better version of your script.
Simply set it as the main script of a trigger zone. Then you always get +50 health if it's less than 50...


If you only want it to heal you when you pass throw then do give it this one as main script:


And if you want it to do that only once:


Hope (again) that this helped


For all my free FPSC entities!

Login to post a reply

Server time is: 2024-11-23 17:33:51
Your offset time is: 2024-11-23 17:33:51