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 / request a script and i will make it (free)

Author
Message
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 28th Nov 2011 09:40
I am learning to script in fpsc and im feeling generous. So i will make you guys some scripts and also learn more about fpi scripting in the process.

Here are the rules:

no AI
make it relatively simple (not too complicated)

request away!

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 30th Nov 2011 10:07
hey.
i am making a game and i need something like the halflife 2 med kits.
but stupidly.
i carnt script, i have heard the script is easy though.could you try and do the script for me?

''Make sure your hands are clean before you point the finger''
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 2nd Dec 2011 22:17
If you got the time, an insanity script would be cool. It may be a bit complicated, but if you got the time just give it a go!

What it basically is, is when you stay in the dark for too long (not in a light radius) your screen will shake a little or something and it would add a HUD to the screen as well.

I think the tricky part would be to see if you are standing in a light's radius. Other than that, it does not seem to difficult.

Also, thanks for contributing to the forum!
- Josh
New Comers Corner
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Dallas Ft.Worth USA
Posted: 3rd Dec 2011 12:52
I need a simple character start up script. Like at the beginning of every MMO where you chose your character. I see it like, you chose the "race" and it will show different prepared bitmaps with a description. You then chose your area of talents, example Magician or Warrior. something not too complicated. Then the stats are recorded in variables, and the variables affect your health, strength and how accurately your attacks work.
I'm a graphic artist. I'm good at making screens with text in them and images. I just don't know scripting at all yet. If you can come up with a script to make your choices I'll do you a title screen for your game with kick ass lettering.

Thanks
Anton

Virtual Reality = the future.
Registering years ago I didn't see the name field was filled with 'Newcomers Corner'. My name showing should be 'Ancient Wizard'.
Nagrom229
13
Years of Service
User Offline
Joined: 22nd Mar 2011
Location: Look behind you!
Posted: 4th Dec 2011 21:17
Whoa, Whoa, Whoa!
FREE SCRIPTS?!
Well I have a task for you my friend,
I was wondering if someone could make me a motion blur script to put in a triggerzone. I suppose that you have TONS of scripts already to work on. But I hope you will have an attempt at this one!

~Naggy ^_^
Nagrom229
13
Years of Service
User Offline
Joined: 22nd Mar 2011
Location: Look behind you!
Posted: 4th Dec 2011 21:18
@Exu Corperations

Screaming popup?


~Naggy ^_^
Captain Coder
FPSC Reloaded TGC Backer
13
Years of Service
User Offline
Joined: 6th Jul 2011
Playing: Elite: Dangerous
Posted: 4th Dec 2011 21:39
@skeeter: If you don't mind, could I help you with these script requests? Maybe you could say that one sounded too complex for you and I could give it a try. I've known scripting for a while, but I haven't put it to good use until recently. What say you?

Thank you, and good luck learning!
Captain Coder

One of the most humbling days in your life will be the day you discover you AREN'T the best at what you love to do.
- Me
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 4th Dec 2011 21:52
ill get working on them when i get back from school. the insanity one has been done i think

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 4th Dec 2011 21:53
@captain coder: go ahead, that would be great. but the purpose of this is for me to understand fpi scripting better so leave a couple of the easier ones

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 5th Dec 2011 06:32
hey gozzy, can you please explain in more detail how a half life med kit works. also nagrom, i think motion blur is a post processing effect. you can get it here http://forum.thegamecreators.com/?m=forum_view&t=190852&b=21 its called motion sickness

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 7th Dec 2011 20:00
Hey I would like to request a Cod style health script. Where a progressing HUD an regenerating health, this would be awesome! If you want some help I could offer some, I knida have an idea how to do it but not fully. Thanks A lot!

skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 8th Dec 2011 10:29
i dont either sorry. theres plenty around tho.

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 8th Dec 2011 17:05
the hl2 medkits have 100 life in them and give 1 health every tenth of a second. so like 10 life a second. and when 100 health has been given, you carnt get anymore health from it ever.

''Make sure your hands are clean before you point the finger''
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 9th Dec 2011 01:17
ohk, thanks skeeter! If i find one should I zip it in a file and send it to you? with the permision and credit of the creator of coarse.

@gozzy1999
to use for a COD style health regeneration?

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 9th Dec 2011 09:19
no, i wish to use them in the my medkits i made.

''Make sure your hands are clean before you point the finger''
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 9th Dec 2011 15:05 Edited at: 9th Dec 2011 15:05
guys, look into forum-search before writing, its not that hard:


google forum search:
FPSC COD HEALTH SCRIPT

...leads to this:

http://forum.thegamecreators.com/?m=forum_view&t=189569&b=23


gz

maho
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 9th Dec 2011 15:31
I know, he wants to do scripting so he can learn more, I know people have done them before. Just though it'd be a good learning project

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 9th Dec 2011 15:33 Edited at: 9th Dec 2011 15:33
ah, ok, but would be better to do this with new stuff for the community

sorry for that, crosshair.
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 9th Dec 2011 16:08
Haha yea I'm thinking of doing a HUD and script pack, with different types of regenerating health, slow, fast, and with different blood schemes and sounds, like a war one, or horror one, Amy ideas of others?

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 9th Dec 2011 16:29
Thank you for your help maho

''Make sure your hands are clean before you point the finger''
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 10th Dec 2011 01:27
im working on a script for gozzy right now

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 10th Dec 2011 03:26
can someone tell me how i can make this work as a half life medkit script


cheers, skeeta

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 10th Dec 2011 09:49
this is a video of the hl2 medkits in action


http://www.youtube.com/watch?v=R6SawaokGno

skip to 9.47 for the armour kit but it works the same way as the health if this has helped

''Make sure your hands are clean before you point the finger''
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 11th Dec 2011 01:51
thanks gozzy.

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 11th Dec 2011 03:40
oh so this is why crosshair was on my script post milling around!
has anyone else noticed that since 1.19 it hasn't been working?

if it's still working for everyone else that used it, I'll add in the postprocessing stuff bond1 made and perhaps put in limping

I appear to have burst into flames...
manuati
13
Years of Service
User Offline
Joined: 29th Oct 2011
Location:
Posted: 12th Dec 2011 20:56
I have a little request if you have the time, or at least i'll accept some advice in the matter.

I'm looking to do a turret that damages a player when it passes in front of it, but i can't get it quite right; I get mauled by the constant damage output, when it should be something more like "damage, pause, repeat process while player is in front".

Can you make a script that can achieve that, or at least suggest me something?
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 12th Dec 2011 23:35 Edited at: 12th Dec 2011 23:35
have you tried using timers?
like this:
:state=5,plrwithinzone=1:etimerstart,state=6
:state=6,plrwithinzone=1,etimergreater=500:plraddhealth=-1,state=5

*you of course have to integrate this into whatever you already have


that will take 1hp away for every .5 of a second the player stands in the trigger zone (that you place in front of the cannon)

I appear to have burst into flames...
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 13th Dec 2011 04:31
post what you already have if that didn't work

window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 13th Dec 2011 16:10
Any update on the hl2 medkits?

''Make sure your hands are clean before you point the finger''
manuati
13
Years of Service
User Offline
Joined: 29th Oct 2011
Location:
Posted: 15th Dec 2011 14:10
Quote: "have you tried using timers?
like this:
:state=5,plrwithinzone=1:etimerstart,state=6
:state=6,plrwithinzone=1,etimergreater=500:plraddhealth=-1,state=5

*you of course have to integrate this into whatever you already have


that will take 1hp away for every .5 of a second the player stands in the trigger zone (that you place in front of the cannon)"


Thanks for the advice, I didn't knew about the timers. I'll try it.
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 15th Dec 2011 15:52
remember to use etimers or stuff gets annoyingly complicated and broken

I appear to have burst into flames...
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 16th Dec 2011 13:03
I am still wondering where i went wrong with the half life script. My problem is i don't understand how states work. could someone edit this or tell me where i went wrong


window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 16th Dec 2011 15:02
plrstandwithin=X > plrdistwithin=X

etimergreater=X is a condition.

only 2 times ":" in a line, one when starting conditions, one after conditions when starting actions.
skeeter
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: Australia
Posted: 17th Dec 2011 04:15
see if this works


window 7 ultimate, AMD Phenom II X6 1055T 3.3 ghz, XFX Radeon HD6790 1GB, 16gb ram

Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 22nd Dec 2011 11:03
Try this:



I don't believe "plrstandwithin" is an actual command, is this from a mod?

You have three colons on each line, you can only have two.

"etimergreater=" is a condition so needs to be before the second colon.

You need to re-state "etimerstart" after you have added health to the player or the "etimergreater" condition will always be true.

There is no need to use "state=2" as an action on the second line.

I've added a third line, otherwise a player could walk up to the medistation, walk to the other side of the map, press enter can get health.

Hope this helps.

Doing script requests is a great way to learn.

Captain Coder
FPSC Reloaded TGC Backer
13
Years of Service
User Offline
Joined: 6th Jul 2011
Playing: Elite: Dangerous
Posted: 23rd Dec 2011 06:09 Edited at: 23rd Dec 2011 06:21
I think it's about time I popped in to see if there's anything I could help with. Sorry I didn't come sooner; I got a little carried away playing with DAI scripts and watching player-neutral teams kill each other like crazy

Since there seems to be confustion on the HL2 Medkits, let me post my own and explain what I did:



So, in state 0, I declared a variable named "healthgiven" that can only be accessed by the script that declared the variable. This allows you to have lots of kits running the same script without sucking health out all of them at once . I also set "healthgiven" to 0. This variable will count how many points of health the player takes. Then we move on to state 1.

In state 1, the script first checks to see if the player is within 40 FPSC units. 1 FPSC unit is about 1 inch in the real world, so I thought 3 and a half feet was a reasonably realistic distance. Then the script checks to see if the the medkit is in the players view. This makes sense, as it would seem rather odd if the player was able to soak up juice while his hands were busy in combat . Then we check to see if our "healthgiven" variable is less than 101 points (if we say 100 then the player will only get 99 points, because the variable is only checking to see if the variable has less than 100 points, not less than or equal to). If it is less than 101, then the script checks to see if the player even needs any health. Finally, if the script passes all of these tests, then we move onto state 2, and we start an entity timer.

In state 2, we check to see if the entity timer is greater than 100. Entity and normal timers measure in milliseconds, so 100 milliseconds = 1/10 of a second. Then we go straight to actions. We first give the player 1 point of sweet wonderful goodness. Then we add one point to our "healthgiven" variable. Then we go back to state 1, and it all repeats.

Here is a second script, in this one the player must press the "Use" key in order to get health:



I hope I didn't ruin it for you

Merry Christmas!
Captain Coder

EDIT:

Sorry, Skeeter, just saw how you said you didn't understand what states were used for; let me try to quickly explain it.

States are basically used to control what happens and when. The state always equals 0 when an entity is spawned until it is told to go to another state.

Let's look at a simple script:

:state=0,plrdistwithin=40:state=1
:state=1:activateifused=1,state=2


In this script, as soon as the object is spawned, it will check to see if the player is within 40 units. As soon as the player is within 40 units, it will go to state 1. However, it will not go to state 1 until the player is within 40 units. When the script reaches state 1, it activates what ever entity is within the "If Used" space in the entity's properties. However, it will only activate the entity if it is at state 1. The script will not reach state 1 unless the player stands within 40 units. The last part, state=2, is just a little thing scripters like to add to save a teeny-tiny bit of FPS. However, I suspect that this might cause bugs in executable games, especially when loading a saved game. I have yet to prove this though. Did all that make sense?

As a believer in Jesus Christ, I am trying to use my passion for game creation for His glory.
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 23rd Dec 2011 17:42
How can I make a bomber move over the map?
renny

Life is not fair, so deal with it.
http://www.gusroundtable.com/
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 26th Dec 2011 04:40
Could you make me a camera bobing script? Thanks!

Your signature has been erased by a mod - no affiliate links thanks
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 26th Dec 2011 07:02
plrwobble=x is a command in the 1.19 beta, so you can use that

I appear to have burst into flames...

Login to post a reply

Server time is: 2024-11-24 04:52:34
Your offset time is: 2024-11-24 04:52:34