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 Challenges

Author
Message
Freelancer 404
15
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 6th Aug 2008 04:05
I know this Sounds Stupid and I Knw you will think so too, but umm..... How do you script With FPSC?
Freelancer 404
15
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 6th Aug 2008 04:08
I know this sounds stupid but how do you script wth FPSC???????

Email Me Or something.

southdayton25@aol.com
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 7th Aug 2008 15:56
look in the Guide and the manual and you should get FPI EditPad V2.00

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 7th Aug 2008 23:30
BTW, we don't need to e-mail you, just ask on the forums, I am sure we will be glad to help out. There is an exellent turotial by plyetire.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 8th Aug 2008 08:16
Hybrid, maybe a different challenge would spark more challengers to come and join in. Perhaps something a bit more leaned towards the newbie side of scripting, you know?


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 9th Aug 2008 01:51 Edited at: 9th Aug 2008 04:29
Ok. Make a suit pickup that fully heals the player, and enables him to jump really high. It should play a sound like any other pickup.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 9th Aug 2008 07:42 Edited at: 10th Aug 2008 01:06
Alright I accept the challenge.

Submission for Hybrid's Suit pickup Challenge:

EDIT SCRIPT


Tested and worked needs to be verified
FPSC V1.9

If you want more added to it then I will add to it.


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 9th Aug 2008 23:35
The script will work, HOWEVER, I want you to get rid of the state conditions and narrow the script down to a single line. And don't use hardcoded sounds, use the sounds that will be specified in the properties. This will make your script much more user friendly.


Do that before I confirm it.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 10th Aug 2008 00:47
Hem Hem...

Ok, Ply, he gets it.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 10th Aug 2008 01:08
Edited the script in the post.

Maybe a slight problem with it though.


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 10th Aug 2008 05:19
I'll Ley Ply check this one, even though it is my challenge, since he seems so excited. I am very busy as well, sorry.

Diablos Bud
15
Years of Service
User Offline
Joined: 8th Aug 2008
Location:
Posted: 10th Aug 2008 08:05
Challenge Name:
Vehicles

Difficulty: Extreme


Challenge Details:
Make a script that can alow for an entity in which the player can hit enter near, and get into one of the vehicle styles: land, water, hovering (by hover I mean land, and water), and air.
- The script must be compatible with the latest version of FPSC.
- All vehicles must have the ability when holding shift to increase in speed.
- Water, and land vehicles must not interact, water cannot enter land, and land cannot enter water.
- All vehicles must not have the ability to crouch, or jump.
- Air vehicles when holding space will hover higher, but must have a decent height limit so they cannot float into the middle of no where.
- Vehicles must be able to take damage, and have a damage limit, with instructions to setup my own limit within the script, displayed in percentage near the bottem center of the screen.
- At 90% damage a vehicle should light on fire, making the vehicle a hurt zone, with the fire animation from generic, also adding 1% damage every 2 seconds to the vehicle.
- This must be compatible with multi-player.
- This system in our outside of the vehicle should contain minimal lag.
- If possible could you make it where each vehicle can have a certain ammount of seats?
- Also could a vehicle have a weapon you can fire from a certain seat, please?

Please help me, I know this is a massive request, and will take a ton of time, but for large multi-player maps this would be perfect.

Diablosbud Productions - a name for the game's developed by me.
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 10:51
That isn't possible, and you know it.......

Diablos Bud
15
Years of Service
User Offline
Joined: 8th Aug 2008
Location:
Posted: 10th Aug 2008 19:20
Everything is possible, but sorry I didn't know. I thought it would only require minor edits to the mapping FPIs, next time I request something I'll make sure it's easier.

Diablosbud Productions - a name for the game's developed by me.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 10th Aug 2008 22:35
Hey Guys I am still waiting on my script to be confirmed. Then after that it is my turn to post a challenge.


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Aug 2008 00:14
@Gamer X:

Confirmed. Commence challenging!


@Diablos Bud:

If you read the rules for how challenges work then you should already KNOW how to make vehicles.
Basically if you make a challenge then you should already have a pretty good understanding of how to go about making it yourself.
This is NOT a thread for asking people to do scripts for you!

FYI, the only vehicles scripted that come CLOSE to your description require a Mod as-is. This is definitally NOT something for the official versions of FPSC unless Lee decides to go my route and make scripting 100x better than what he has it.

Please, if you wish to participate then go back and read the rules. You CANNOT post a challenge unless you were the FIRST PERSON to complete a challenge.


*sigh*

Okay, where were we?


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 11th Aug 2008 01:33 Edited at: 11th Aug 2008 01:35
The X challenge

Challenge Name: Dimer Switch

Challenge Info:

Create a script for a switch and a script for a light.
Have it where when you activate the switch the light comes on at a low setting then have it move up two more setting (medium,high) before shutting off. the setting will have to be changed when enter is pressed.

recap:

Three settings: low, med, high
Light is OFF by default
Enter has to be pressed to turn the light on and cycle through the settings and then turn off.


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 01:44
so enter just goes like this?

ON, low, med, high, off, repeat.

One button? How many scripts can we use, you might need two.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 11th Aug 2008 01:48
I put down two.

One for the light and one for the switch


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 01:50
K give me ten mins. You do realize that this does require 1.12 because of the [BLOCKED] Command that deals with lights.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 11th Aug 2008 01:51
What Blocked Command?


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 01:52
If I say it, it will give it away.

Fine:

Lightintensity or something like that.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 11th Aug 2008 01:53
That command is in version 1.09.


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 02:03
DONE

Give the switch this script.


and this to your light.



Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 11th Aug 2008 02:10
I just tested and I confirm it.

You can go ahead unless you want plystire's input.

remember V 1.09 had the lightintensity=x command in it.
I can say this because I am runing V 1.09


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 02:14
OK. Really, I am getting tired of making challenges. Since this is Ply's thread, I will let Ply come up with a giid one that I cannot complete.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 11th Aug 2008 02:15
I second that thought.


looking for an ally script? Then visit http://www.freewebs.com/crazymonkeygamers/
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 03:30
Ply, go a head...

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Aug 2008 20:07
Quote: "because of the [BLOCKED] Command that deals with lights"





The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Aug 2008 20:21
Holy cow... I go away for 2 minutes after reading the last page and BAM!!! More posts...


Alright, gimme a second to think of a good challenge.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Aug 2008 20:32
Okay, here is one to see how well people react to new script commands.

New Command Challenge

Details:

For this challenge you will ASSUME that the following command is real.

Quote: "SETTARGETRETICLE

Will set the entity's target to the closest entity aimed at by the player"


Now, using that command, create an AI script for a robotic ally that will do the following:

- Follow the player everywhere
- Target any dynamic entities "targetted" by the player
- Shoot at any dynamic entities "targetted" by the player
- Animate correctly at all times, including reloads.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 11th Aug 2008 21:44
May I use the MOUSECLICK=XX condition from your mod?
Here's how it would look with it.....



Simple. Activate the robot by going up to it and pressing enter. Then it'll act as you want it to. I'm not the best AI scripter, but it would work if such a command existed.....

Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 12th Aug 2008 03:53
This will be hard to check, could you explain, CG, since there are some false commands here.

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 12th Aug 2008 03:59
:state=0,plrdistwithin=40,plrusingaction=1:sound=audiobank/atmos/motorhum.wav,state=1
:state=1,plrdistfurther=50:rotatetoplr,movefore=50,animate=2
:state=1,mouseclick=1:settargetreticule,rotatetotarget,useweapon,rundecal=6
:state=1,ifweapon=0:animate=36,reloadweapon,sound=audiobank\guns\reload.wav

When the player is within 50 units of the robot and presses the enter key, it will make a noise and go to state 1. If the player is further than 50 units then it will rotate to the player, walk, then move forward. If the player clicks the mouse button, it will set it's target as the players target, rotate to said target, and fire. If it runs out of ammo, it will crouch, reload, and make the animation and noise.

Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 12th Aug 2008 17:48
looks good to me CG but then again we can't really test could we?

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 12th Aug 2008 21:52 Edited at: 12th Aug 2008 21:54
That is a very good script, CG. It will indeed work, however can you clean it up to ensure that the robot will not be attempting to BOTH follow the player AND shoot? It would look rather odd if the player was retreating while shooting at an enemy, and the robot was sitting there attempting to rotate to both the player AND the enemy and shoot... all at the same time, lol. Same goes for reloading, it shouldn't be able to reload AND shoot. Make sure that it doesn't by using proper conditions. And perhaps use another state for reloading (using "incframe" instead of "animate") so that the reload will FULLY animate before it resumes shooting.


I'll confirm it right now, just want to see it nice and sparkly.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 12th Aug 2008 22:00
Your challenge, CG.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th Aug 2008 21:33
Just thought this might be of interest at this time.

Watch Me!




The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Minimovies Inc
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Reeedwwwaaallll!!!
Posted: 13th Aug 2008 21:42
WOW! Where can I get those sweet robot models? *drool*
That's very funny, though! They function exactly like today's sentry robots: Slow to react, small, malfunctioning... But still cool!

A starting Games Designer. Need levels, characters and anything drawn and designed? Let me know...
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th Aug 2008 21:49 Edited at: 13th Aug 2008 21:51
Lol, the video was my proof that CG's script would work. The only real bug comes into play when you have more than one of them at the same time.

I had three of them following me and ONE of them ahd a friggen LAW mounted on it. I guess the little thing thought it'd be better to sit BEHIND the other robots when it was going to shoot! Blew us all up. Killed the two bots in front and killed itself.


They can be made smarter, I was just playing around with it. Like, you could script them to make their own "decisions" so that not all of the robots will function the same all of the time. Let's say you tell them to shoot at the enemy... one of them could run up to the guys face and start shooting... or one of them could keep it's distances and strafe around the guy while shooting... or they could just sit still and shoot from where they are.

It's all just a matter of scripting really.



[EDIT]

The Sentry Bot models were made by Errant AI. I found a download of them in the Models and Media board. I can't find the thread right now, you'll have to look for them yourself. I'd provide a download but the license clearly states that I'm not allowed to do that.

[/EDIT]


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 14th Aug 2008 01:25
Does It use global variables?, I thought enemies couldn't kill enemies.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 14th Aug 2008 03:20 Edited at: 14th Aug 2008 03:21
No, it doesn't use any variables of any kind.

The only commands it required to function as CG had it scripted were the "mouseclick" and "settargetreticle" commands. Other than those it didn't need any new commands.

Enemies CAN kill other enemies, there's just the problem of getting them to target each other.


[EDIT]

This was the script once the video was captured. I played around with it a bit... making them respond more accurately.



[/EDIT]


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 14th Aug 2008 20:37
I don't mind you messing about with my script....pretty cool to see it in action......

Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 14th Aug 2008 22:38
Wait... so settargetreticle is a real command? If it is, then you cound ahve effective allies, just target who you want to shoot, and have them attack.

If that is also not real, then how did you make the video and kill the cheracters? I am very confused.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th Aug 2008 01:18
@Hybrid:

Have you forgotten who you're talking to?

I added the commands to my Mod just to play around with the concept.

It didn't take a lot of time to do and it seemed like something entertaining for me. Sure they're stupid and their accuracy is horrid, but they are fun to play around with.

What I'd like to be able to do is make them able to follow the player everywhere... then just don't give the player a gun so they have to rely on the bots to kill everything.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 15th Aug 2008 02:32 Edited at: 15th Aug 2008 02:33
I got an idea to make a RTS with that command Plystire(sure it would suck but it still would be a RTS)
-EDIT-CG are you going to do a challenge?

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 15th Aug 2008 20:12
@Ply

Did you edit the SETTARGETNAME code to select the object in the centre screen instead of by name?

@Dar13

Ah! I'm thinkin', I'm thinkin'........

Ok:

Now. Lets imagine that the condition ENTITYWITHINZONE actually works, and has this description:

Quote: "ENTITYWITHINZONE=1

Is true when the entity is within a zone of any kind."


Now. I want you to make a character, that will aid the player in a battle, (use SETTARGETRETICLE), and follow the player. But when it reaches a triggerzone, (set as a marker), it will follow a waypoint to an object, rotate to that object, and animate pressing keys, (do any anim), and ACTIVATETARGET.....

Imagine Alyx from Half Life 2. The character will fight, then find a trigger, walk along a waypoint specifically set for it, and then use the computer at the end of the waypoint......

Good Luck.

Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 16th Aug 2008 18:23
I didn't mean tu upset you, I didn't know that you used your MOD.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Aug 2008 23:53
Submission:




Or something to that effect.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Aug 2008 23:54
@Hybrid:

You didn't upset me... I just sometimes act like a smart***, that's just the kinda person I really am.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.

Login to post a reply

Server time is: 2024-05-18 11:55:41
Your offset time is: 2024-05-18 11:55:41