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 / [LOCKED] Ally Script Revive

Author
Message
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 18th May 2008 06:43 Edited at: 15th Apr 2009 01:29
Version 8 Released
added scripts for the enemies and allies that wields a pistol or a machine gun (mp40, etc.)
added a script for an ally that is not influenced by player controls(edit the script for either a freely roaming ally or a ally that follows waypoints (default)

Version 7 Released
Change the one script into two scripts
added new free roam feature to ally
added multi-targeting feature to the ally
included two tutorials on how to add more targets and change the rate of fire.

Version 6 Released
Fixed the ally's firing and strafe.
Made it so if the player is in the ally's gun sight, he stops shooting
included ally sniper v2 (same changs as the ally)
included enemy main and shoot scripts

Version 5 Released
New command: use the J key while standing close to your ally to make him jump.
fixed the switching targets problem from previous scripts
Included is a ally sniper script.

Version 4 Released
New command: use the "H" key to have the ally come toward you
Fewer distance restrictions
Add a coward part of the script. if the ally's health is less then 25 then he will not engage the enemy.
Removed the auto follow line in the script to allow the new command to take place.

Version 3 Released

New control
B to disengage the ally's attack

Ally can be controlled even if he is attacking

Version 2 Released

Health Meter

This Script has been 100% tested otherwise you wouldn't have it.

The New Ally Script Includes

The ally controls are the following
H=gets the ally to disengage the enemy
X=has your ally turn left
V=has your ally turn right
C=has your ally crouch along with you
Z=has your ally engage the enemy
F=has your ally move forward
B=has your ally turn around and retreat.
J=has your ally jump forward (real neat for geating your ally to sniping positions) have to be close to use.
;=to have your ally roam freely
"=tell your ally to stop free roam.

Answers to Questions that are usually asked
This script DOES NOT require mods.
The ally will kill the enemy.
The ally will follow you.
You can have multiple allies.
If you don't like the distances it takes to move the ally just change them.
You can change the keys by editing the script.
The ally will continue to shoot the enemy until you move.
The ally will attack multiple enemies as long they meet the following:
1. The enemies all have the same name
2. That you let the ally kill them one at a time.

I think that should cover it.
=============================

Get the script here
That is all for now.


Kerrby
14
Years of Service
User Offline
Joined: 14th Mar 2008
Location: Australia mate.
Posted: 18th May 2008 09:32
Can you change the keys so that when you walk he walks?
Marc Steene
16
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 18th May 2008 14:51 Edited at: 18th May 2008 14:52
Simply change the scankeypressed to those of the player (or whatever command it is - i forget)

Good script, i'll definatly use this sometime

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
Pride
14
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 19th May 2008 02:48
i read your script through and it looks terribly simple. I mean, really really simple. I don't see how the enemy would at all hurt another entity, rather then the player either... Did you test this? May we see a demo of this? Because from what I see, this is null and void.

"Any gift can be great, no matter how small, because it's not the gift that counts, it's the meaning behind it"
"Heaven for climate, Hell for company"
GOTH 1 SNIPER
User Banned
Posted: 19th May 2008 12:39
it works i can say that i takes the ally bout 4 clips to kill the guy but it works

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th May 2008 13:43 Edited at: 19th May 2008 13:43
Quote: " Because from what I see, this is null and void.
"


Thank you Goth 1 Sniper for saying it actually works.
Apparently you tested the script yourself to make sure it works.

My Rules for Posting Scripts
Why?, because some people need to know.

1. Only post working scripts
2. Get the script to work if it doesn’t
3. Never post a nonworking script

These are my rules for posting scripts so you know that I will never post a nonworking script.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
Adam243
14
Years of Service
User Offline
Joined: 3rd Jan 2008
Location: indonesia
Posted: 19th May 2008 15:57 Edited at: 19th May 2008 16:58
OMG IT WORKS!!!! hey thanks man this is excellent!! not only does it follow you but it also gets to kill the enemy, but it wont stop shooting if i mistakenly press z and the enemy is behind a wall. But other than that it works perfectly. thx now i wonder if you can make enemies shoot at friends? nonetheless it's PERFECT!!! and again thanks

PS: I wonder if you can give me the part where the allies shoot at the enimies in the script because i just want that particular piece

noob in fpsc
Negrul1
15
Years of Service
User Offline
Joined: 31st Jan 2007
Location: Repairing Black Mesa
Posted: 19th May 2008 21:25
Sounds kewl. I'll try this one.

(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!
Zeldar
14
Years of Service
User Offline
Joined: 16th Mar 2008
Location:
Posted: 20th May 2008 02:25
Wow, i can't believe no one has been able to do this before. Video, please? I'm worried that he'll reload while following the enemy, and I don't think there's an animation for reloading while walking or running.

Signed, Zeldar
.....what?
Silvester
16
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 20th May 2008 08:29
There are more people who did this before Zeldar... but they were before your Join Date...
Plystire
19
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st May 2008 00:43
Quote: "but they were before your Join Date... "


Isn't that why we tell people to search before asking questions?

Lol


Good job with the Ally script, Gamer X. I'm sure tons of people will be using it.


The one and only,


Flatlander
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 21st May 2008 01:21
The script does need some tweaking but it is a great base to build from. Sorry for ending the sentence with a preposition.

** We are not Alone **
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 21st May 2008 02:40
I am glad that you all enjoy it.

Currently I am working on getting a meter for your ally to appear on the screen and so far I got it to go down to the last point, but I can't get it to dissapear after he dies off.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
4125
14
Years of Service
User Offline
Joined: 3rd Feb 2008
Location: Bronx, New York
Posted: 21st May 2008 06:04
um, not to sound like a complete ass but it doens't work for me. They turn and shoot the the other way, they dont crouch or anything esle. just follow and shoot nothing...
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 21st May 2008 13:48 Edited at: 21st May 2008 13:50
Quote: "They turn and shoot the the other way, they dont crouch or anything esle. just follow and shoot nothing..."


Well they continue to shoot until you are a certain distance away.

The other commands can only be used when he is not engaging the enemy.

I know that needs to be fixed but I am getting there.

Coming sometime this week, hopefully, a new version of the ally script with a health meter feature and he will turn to face his target if the target moves.


Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
meteorite
16
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 22nd May 2008 23:39
this is amazing, I have seen allies before, but not without a mod, very good job. This inspires me to start scripting AI
Slayer222
15
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 23rd May 2008 01:03
What I want is an ally you can plonk down and leave alone that will follow you automatically if you go to far and automatically fight well and without couching and spraying the room with horrendous aim. But so far, you have done good.

[img]
[/img] Official Airmod fanboy. Member of the Airlside fan club
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 25th May 2008 20:01
New Version of the Ally Script Released Check First Post.

The New Version gives a Health Meter in increments of 10.(I recommend that you make your own.)
If you have, let's say, 5 enemies in a room you can just have him engage the enemy and he will go directly to the next enemy after he kills the first and so on.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
i need help
16
Years of Service
User Offline
Joined: 20th Nov 2006
Location:
Posted: 26th May 2008 18:53 Edited at: 28th May 2008 16:08
if there is still the problem with the allies facing the other way near the end of the script where it says "settargetname=AI,rotatetotarget," put rotate=180, after the comma after rotatetotarget and it should be fixed it worked for me

also if you lower your allies view cone angle it should make them more accurate and the should be able to kill enemies quicker

just a thought is the name of the player what the name of the start marker is because if it is you could do what you did with the allies targeting the enemy with the enemy script and call all of the allies what the player start marker is
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 27th May 2008 13:43
Quote: "if there is still the problem with the facing
the other way"


What are you talking about when you said that.

I understand the view cone, and all it doses is make the cone of bullets narrower and bit more accurate, although the reload thing really depends on the weapon.

I just don't know what you mean by the first statement.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
i need help
16
Years of Service
User Offline
Joined: 20th Nov 2006
Location:
Posted: 28th May 2008 16:06
well when i downloaded this and used it for the first time when i pressed the Z key the ally would turn so his back was facing to the enemy and started shooting 4125 said that it didn't work and i thought that might be the problem
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 29th May 2008 04:38
I understand what you mean. There were some problems with the script at first but Version 2 has some of those problems solved...Hopefully.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 31st May 2008 22:49
Version 3 of the ally script released. First Post.

Enjoy

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 31st May 2008 23:46
Thx for this gamer x i really could use this!

where do i download it too?

What you know wont hurt you- except me
castek
15
Years of Service
User Offline
Joined: 15th Aug 2007
Location: Right behind you!
Posted: 1st Jun 2008 07:09 Edited at: 1st Jun 2008 07:10
Awesome thank you!


first post
Quote: "
where do i download it too?"


"The Beginning is the end."
Swanny
15
Years of Service
User Offline
Joined: 23rd Jul 2007
Location:
Posted: 1st Jun 2008 12:12
I can't seem to get it to work on mine.
The ally just kind of bobs up and down really fast and doesnt do any of the commands.
Although, the health meter does work...

<a href="http://www.freewebs.com/fps-creator/">Check out my Site!</a>
Oakley Design
15
Years of Service
User Offline
Joined: 18th Jun 2007
Location: Uranus
Posted: 2nd Jun 2008 12:02
Quick question, can you modify the script so that the ally will play a sound when he spots an enemy, like "Hostile Spotted" or something?

Plystire
19
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Jun 2008 23:45
@Oakley Design:

I'm sure you could. It wouldn't be that hard if the ally already reacts to newly spotted enemies.


The one and only,


flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 3rd Jun 2008 21:53
gamerx when i press z my ally just faces the oposite way the the enemy and just sits and unloads at the wall

What you know wont hurt you- except me
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Jun 2008 22:30
To install just put the files in the respective folders.

If there are any major problems please e-mail me and I will try to get it all worked out.

Sorry for the inconvenience.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 4th Jun 2008 00:35
the dudes dont shoot the enemys!! thye just unload at the wall

What you know wont hurt you- except me
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 4th Jun 2008 03:05
To start off, I am sorry for my lack of repones.

Now for the those having trouble getting the ally to shoot at the enemy.
Make sure the enemy's name is AI NOT AI(Unarmed).

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 4th Jun 2008 03:06
how do u change the AIs name

and where do u put files...i put the fpi script in the script bank..do the other files in the download go somewhere else?

What you know wont hurt you- except me
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 4th Jun 2008 03:15
Move the ally folder that is in the gamecore/huds folder to the gamecore/huds.

The Script goes into the main script field in the charter properties. You can also change the charter's name there also, it is at the top of the Charter Properties.

@Swanny
You are probably to close to the ally.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 4th Jun 2008 03:37
gamer x now he just shoots at me

What you know wont hurt you- except me
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 4th Jun 2008 13:33
I have change the download. The new download has the script edited a bit.

For those still having problems here are some pics.
I underlined the Important details.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.

Attachments

Login to view attachments
flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 4th Jun 2008 20:08
ok now it works..just gotta put the right names

whats the edit to the new script?

What you know wont hurt you- except me
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 5th Jun 2008 00:23
I just changed up some of the scripting to stop some of the glitch problems others have had. Nothing major to worry about.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
flickenmaste
14
Years of Service
User Offline
Joined: 2nd May 2008
Location:
Posted: 5th Jun 2008 04:30
ok

What you know wont hurt you- except me
google merxitygames so join our forums!
Punk13
15
Years of Service
User Offline
Joined: 7th Oct 2007
Location: In EpikLand!
Posted: 11th Jun 2008 05:49
Looks and sounds great ill dl it later thanks Gamer X

4125
14
Years of Service
User Offline
Joined: 3rd Feb 2008
Location: Bronx, New York
Posted: 11th Jun 2008 10:09
it works great. but my only concern is that do i have to name my enemies AI? i use trigers to summon different ppl. and will AI 1 work? or if the name has the word "AI" in it?
++Will++
15
Years of Service
User Offline
Joined: 25th May 2007
Location: Where do you think I am?
Posted: 13th Jun 2008 05:27
I'm in complete and utter shock. Amazing job!

(\__/)
(O.o )
(> < ) This is bunny. Copy bunny into your sig and help him on his quest for world domination!
kanom
14
Years of Service
User Offline
Joined: 15th Jun 2008
Location:
Posted: 16th Jun 2008 06:36
where can i download it?? i cant find a link or anything can u post one plz!!!

hey just one new noob in the forums!!!
kanom
14
Years of Service
User Offline
Joined: 15th Jun 2008
Location:
Posted: 16th Jun 2008 06:37
plz can u post a donwload link to the script i cant find on1 thanks!!!

hey just one new noob in the forums!!!
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 18th Jun 2008 02:47
Sorry I been having problems with my Internet Connection latly.

The first post contains the download.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
kanom
14
Years of Service
User Offline
Joined: 15th Jun 2008
Location:
Posted: 18th Jun 2008 22:31
ohh... sorry didnt see the small download button but i just made a quick level to test it and this is awesome definitely gonna try to learn something from this and with your permission use it on my games nice done Gamer X

hey just one new noob in the forums!!!
kanom
14
Years of Service
User Offline
Joined: 15th Jun 2008
Location:
Posted: 18th Jun 2008 22:41
well after i tested the script for a first time it worked but now that im taking a closer look at the ally's behavior i see that he acts a little weird when the shooting script runs so im thinking that the shooting script is the problem!!! but then i ask so if i put ally script set as the main script of my ally on the shooting script what do i use so it well acts normally and follows the formal behavior of the ally script.

hey just one new noob in the forums!!!
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jun 2008 05:29
Yes I relize that there are a few bugs with the script and I been trying to work them out.

Any one can use this script for commercial/non-commercial games as long as credit is given.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
kanom
14
Years of Service
User Offline
Joined: 15th Jun 2008
Location:
Posted: 19th Jun 2008 22:18
well i tested this script all night and found that when people say that the ally "crouches and looks at the wall doing nothing" is when they have version 103. how do i know that? well i have 2 computers that have fps creator and one haves the older version because i dont use it anymore on that computer and when i test the script there it just looks at the wall doing nothing.

but then i made a test o my other pc with v109 and it works with some mayor glitches it basically just follows you and sometimes shoots at the enemy but if the enemy moves he stops shooting and shoots at the wall.

so maybe i think you did this script with version107 or with v109 but if you did it with v109 it basically breaks your rules of posting a script because its till a WIP maybe in v107 it does work well but i dont have that version so if anyone haves version 107 and can run it ok plz tell me!!! but then again GAMER X you did a very nice job because you did something very complex in a very simple way and with some work you will have an amazing script witch you could even sell a lot of people like me is looking for allys for their game but dont have that experience you have with scripts

hey just one new noob in the forums!!!
Gamer X
14
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 20th Jun 2008 05:38
I just downloaded the download to make sure that everything is correct with it and it is ecept the minor glitches every once in a while.

This is what you need to keep in mind if you plan on using this script ALRIGHT.

1.The ally shoots the enemy that matches the target name and he
will only shoot them in the order that you put them in the level.
2.Use the B button to make him stop shooting the wall or any enemy.
3.The key commands are in sync so if you want him to move forward
then crouch, you can.

By number 1. I mean this line in the script:

This states the targets name when engaging the target.

I relize the minor freeze while shooting glitch but I been working on it.

I made back when I had FPSC V7 or 8 Maybe 9 not sure either way it is spose to be used with the higher versions of the game creator.

I relize it vilates my rules, but These are realy just beta versions of sorts any ways.

I have been keeping a list of glitchs and been trying to work them out. It will be a while before the next version is posted, mainly due to lack of time.

Most of my thanks go to plystire for his tutorials and findings and xplosys for I started with his shoot and follow script in order to make this script.

And to tell the truth this is my first script.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.

Login to post a reply

Server time is: 2022-12-07 03:47:56
Your offset time is: 2022-12-07 03:47:56