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 / need a script

Author
Message
ARMIN1
12
Years of Service
User Offline
Joined: 16th May 2012
Location:
Posted: 27th Jun 2012 13:25
Hello.I want a script for talking with enemies and sweetheart in the game.And also i want another one for artificial intelligence of enemies as they attack us after hearing our fire sound or seeing us.And they shelter if there were any objects.
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 27th Jun 2012 22:24
Armin,

Ok before someone gets on here and starts lambasting you for this post. Let me tell you that noone will probably write the script for you without you making an attempt at it yourself. Try checking out some of the scripting tuts out there. Thats how I am learning. It's actually pretty easy once you wrap your head around the concepts of the FPI language. It is a lot easier than it seems at first.
ARMIN1
12
Years of Service
User Offline
Joined: 16th May 2012
Location:
Posted: 28th Jun 2012 11:27
Yes, but i didn't find a source for scripting. and one more question, i wanna put a tank(panzer) that can move and shoot, and also be destroyed by RPGs(gun).
pouriasahra ( Jun 28 12:50 PM ) :‎
ARMIN1
12
Years of Service
User Offline
Joined: 16th May 2012
Location:
Posted: 28th Jun 2012 11:28
Yes, but i didn't find a source for scripting. and one more question, i wanna put a tank(panzer) that can move and shoot, and also be destroyed by RPGs(gun).
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 28th Jun 2012 13:43
Another point is, that you probably have a conversation style or AI behaviour in mind that is a lot more complex and precise than what a simple FPSC script can deliver.

When I look at the best 50 FPSC games I've ever played (and that doesn't mean, they have all been good), I can assure you that conversation was not a prominant feature, AI detection by sound was rarely attempted and I cannot remember ever seeing an enemy ducking behind cover or retreating.

Speaking of it, have you played all the BotB games? Doing so gives you a perfect insight of FPSCs strengths.

In case you find my grammar and spelling weird ---> native German speaker ^^
ARMIN1
12
Years of Service
User Offline
Joined: 16th May 2012
Location:
Posted: 28th Jun 2012 19:43
ok but how im get a script for tank?
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 28th Jun 2012 21:22 Edited at: 28th Jun 2012 21:29
Check out the community guide there is a good tut on scripting that will get you started with basic scripts.http://forum.thegamecreators.com/?m=forum_view&t=170978&b=21&msg=2025564#m2025564

If you want to have a conversation style script it would be fairly easy to write a script that displays the conversation through a series of huds and play the audio at the same time as the words appear on the screen. It would be vastly easier to accomplish than what I think your trying to do.

As youll read a script is a set of conditions and actions
:state=1,plrwithinzone=1:setposteffect=sharpen,state=2
In the above line the first part before the colon is the conditions which the engine checks to see if the are true.
another words the engine keeps checking to see if the player is in the trigger zone. If the player is in the trigger zone then the engine continues on with the script and starts executing the actions, in this case setting a post effet, and changeing to a different state, state=2
Kinda a simplified crash course I guess. Go to your scipt folder and open a script and practice following the script and understand what it's doing. Like a doorkey script would be a good one to look at.

You have to get into a certain state of mind to write them, because you have to think how the engine thinks, and do things in steps.

To get the tank to move.

Set a way point and lay down the path you want the tank to follow.
Place the tank at the begining of the route.
in the tanks settings change it to dynamic
change the main to people/follow
adjust the speed as desired.
make sure the the "isimobile" field is set to no
That should do it.
ARMIN1
12
Years of Service
User Offline
Joined: 16th May 2012
Location:
Posted: 30th Jun 2012 09:30
tanks but how im do somting to tank shoot me and enmeys
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 1st Jul 2012 02:55
Well that's a whole mother ball of wax. You would have to rig firing animations to the tank model. I suppose there might be a way to "fake it". But I'm not sure. Might be able to find a shooting version. Try searching for a shooting tank. The tank I neither a character or a weapon as far a the engine is concerned. To get it to turn toward the target and fire would require animations as well as scripting to tell it where the player is turn the gun toward the player and fire. The tank your probably using is no different from a crate or say a desk. It's there to make the scene more like say an office or warehouse. Sure we can sort of trick it into moving along a path. But if you notice nothing is moving on the tank. If you did the same settings you did with the tank you could make the crate or desk do the same thing. Another words it maybe eAsir to find a lifelike tank that shoots someone has already made. Or learn to model and make and animate your own.

Login to post a reply

Server time is: 2024-11-24 00:29:55
Your offset time is: 2024-11-24 00:29:55