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 / please help a scripting noob with ally script...

Author
Message
The challenge master
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: 645378463586th dimension
Posted: 7th Apr 2009 17:58
hi, i am new to scripting and am eager to make an allies script.
i don't know many commands and are wondering since there's a plrcanbeseen command is there a enemycanbeseen command? I am asking this because if there is it should be an easy way to convert this script
;Artificial Intelegence Script

;Header

desc = Strafe Shoot

;Triggers

:state=0,ifweapon=0:state=8,setframe=6
:plrcanbeseen:settarget,rotatetotarget,resethead
:plrdistwithin=200:rotatetoplr,resethead

:state=0,random=20:state=9
:state=0,shotdamage=1:rotatetoplr,state=7
:state=0,ifweapon=1,plrcanbeseen:state=2

:state=1:incframe=3,strafe=-90,rotatetoplr
:state=1,frameatend=3:state=0,animate=1

:state=5:useweapon,rundecal=6,state=0
:state=4:state=5
:state=3:state=4
:state=2:state=3

:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=0,animate=1

:state=7,random=1:state=6,setframe=4
:state=7:state=1,setframe=3

:state=8:incframe=6
:state=8,frameatend=6:state=0,reloadweapon,sound=audiobank\guns\reload.wav

:state=9,plrcannotbeseen:state=10
:state=9:state=0
:state=10,random=1:rotatetoplr,strafe=135
:state=10,random=1:rotatetoplr,strafe=-135
:state=10,random=1:rotatetoplr,strafe=-65
:state=10,random=1:rotatetoplr,strafe=65
:state=10:state=7

;End of Script

into the first step of creating an ally script.

NOTE:if the code is out side the code snippet it is because i am not sure how to use it.

dodulee du du!
knxrb
FPSC Tool Maker
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: United Kingdom
Posted: 7th Apr 2009 20:53
Quote: "if the code is out side the code snippet it is because i am not sure how to use it."

Select/highlight the text you want to have inside the code tags and then click the 'Code' button.
You'll then get code tags put around the text.

knxrb

Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 7th Apr 2009 20:56
I do not believe that there is an ENEMYCANBESEEN command. I'm having a problem downloading the community guide (I'm not at my home PC right now), so I cannot verify if there are any commands that might be useful in its place. Take a look at the community guide and see what you can come up with?
The challenge master
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: 645378463586th dimension
Posted: 7th Apr 2009 21:53
@knxrb
thanks!
@leon kennedy
what community guide?

dodulee du du!
The challenge master
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: 645378463586th dimension
Posted: 9th Apr 2009 03:16
@leon kennedy
ignore my post about the community guide. i found it. and there is no
ENEMYCANBESEEN command. any idea how to synthesize one?

dodulee du du!
The challenge master
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: 645378463586th dimension
Posted: 14th Apr 2009 03:39
hello?you guys still there? (the challenge master looks around)

dodulee du du!
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
The challenge master
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: 645378463586th dimension
Posted: 15th Apr 2009 03:58
not helping apple slicer...
I already have it...

dodulee du du!
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 17th Apr 2009 22:18 Edited at: 17th Apr 2009 22:18
There are some inhereant underlying conflicts in the FPSC command set as I see it, notwithstanding the source when trying to build a good ally script. As we do not have an exact capability one has to attempt a workaround to force FPSC to go against what it understands by default. That is and never has been easy with FPSC as it is rather uncompromising and can trash our brains.

Patience is needed and a clear line of thought. In all honesty perfection in an ally is a little beyond capability no matter how hard you might try. You can not make the engine understand that which it has not been taught.

If and when the elusive - (I'm almost afraid to say the word) "migration" version or FPSC II or whatever it might be called (Lets call it FPSC II) ever becomes a reality perhaps there may be more potential for end users but its a long shot.

Not sure theres anything much anyone can do right now.



The challenge master
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: 645378463586th dimension
Posted: 19th Apr 2009 04:12
(the challenge master sighs)thanks anyway guys...

dodulee du du!

Login to post a reply

Server time is: 2024-11-24 23:47:36
Your offset time is: 2024-11-24 23:47:36