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 / Noob scripts-Enemy repeats action

Author
Message
The Eye of the Storm
16
Years of Service
User Offline
Joined: 1st Mar 2008
Location:
Posted: 5th Mar 2008 04:57
So I'm trying to use the doctordead script but modify it. Using the original as a template this is what I can up with, Unfortunatly all it will do is stand up over and over. I'm sure this is cause i have scripted some thing so the the ai cant proceed past this action...could some one take a look and help me see what I need to do, thanks


------------------------------------------
;Artificial Itelligence Script

; BY The Eye of the Storm



;desc = Zombie Lays on floor/gets up/homes in player and attacks.




:state=0:animate=93,:plrcanbeseen,plrdistfurther=70:settarget,state=10
:state=10,plrdistwithin=601:sound=audiobank\user\moan.wav,animate=94,
:state=11,plrdistwithin=600:movetotarget,state=12
:state=12,plrdistwithin=60:animate=92,plraddhealth=-20,state=1
:state=1,plrdistfurther=601:animate=1,state=10


;End of script

And even in our sleep, pain which cannot forget falls drop by drop upon the heart, until in our own despite, against our will, comes wisdom.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 10th Mar 2008 02:51
check your animation states.

The Cake is a Lie!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Mar 2008 12:17 Edited at: 10th Mar 2008 12:27
1) Try uncommenting the description. (take the semicolon off that line)

2) Line zero has two extra colons, and an action on the condition side

:state=0:animate=93,:plrcanbeseen,plrdistfurther=70:settarget,state=10

What is that??? Is that supposed to be...

:state=0,plrcanbeseen,plrdistfurther=70:settarget,animate=93,state=10 ????

3) state=10 goes nowhere (ends with a comma?)

Try again.

Don't forget to visit Conjured Entertainment

The Eye of the Storm
16
Years of Service
User Offline
Joined: 1st Mar 2008
Location:
Posted: 14th Mar 2008 13:00


And even in our sleep, pain which cannot forget falls drop by drop upon the heart, until in our own despite, against our will, comes wisdom.
The Eye of the Storm
16
Years of Service
User Offline
Joined: 1st Mar 2008
Location:
Posted: 14th Mar 2008 13:02
:state=0,plrcanbeseen,plrdistfurther=70:settarget,animate=93,state=10

:state=10,plrdistwithin=601:sound=audiobank\user\moan.wav
:state=10,animate=94,state=11
:state=11,plrdistwithin=600:movetotarget,state=12
:state=12,plrdistwithin=60:animate=92,plraddhealth=-20,state=1
:state=1,plrdistfurther=601:animate=1,state=10


;End of script

And even in our sleep, pain which cannot forget falls drop by drop upon the heart, until in our own despite, against our will, comes wisdom.
The Eye of the Storm
16
Years of Service
User Offline
Joined: 1st Mar 2008
Location:
Posted: 14th Mar 2008 13:07
I've got it working all most to where I want it. I still want the doctor to get up when the player is further away. I also would like this code to work on the stock sci fi zombies(unarmed) but I dont think that standing up is one of the actions. i tried using this script and manually lying down the zombie...and when I got near it, lol, it started moving its legs and and came at me like a swimming mosnter. too funny.

And even in our sleep, pain which cannot forget falls drop by drop upon the heart, until in our own despite, against our will, comes wisdom.

Login to post a reply

Server time is: 2024-11-24 06:51:05
Your offset time is: 2024-11-24 06:51:05