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 / More than one Main AI on entity

Author
Message
Gun_Guy
17
Years of Service
User Offline
Joined: 11th Nov 2007
Location: UK
Posted: 16th Nov 2008 10:37
is it possible.
i want a boss to die so that a door can open i have put the script on the entity but it won't attack and i wanted dark ai script on there as well. so more than one Main AI
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 16th Nov 2008 11:52
Can't you combine the two scripts?
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 17th Nov 2008 15:38
I think the following question has been asked before, but I don't remember....

Is it possible to have a script call another script? Either with or without a modded version of FPSC? I ask because then you could write each script independently, and then have a third script call each of them as needed. It would also allow you to write small, custom scripts for individual functions instead of 1 large script to handle everything.

Anyone know the answer to this?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Nov 2008 20:43
@Leon Kennedy:

"RUNFPI=X"

"RUNDEFAULTFPI=X"

Are the commands you're looking for.

As for accomplishing:
Quote: "individual functions instead of 1 large script to handle everything."


Sadly, the new script has no idea what the previous script was and so, you'll need to use another "RUNFPI" type command with a hardcoded script given to it.


On the other hand, Ply's Mod does have:
"RETURN"

Which will execute the LAST script given to the entity.
Example:
Entity is running "shootbadguy.fpi", but in that script, it uses "RUNFPI=scriptbank\runaway.fpi". If the runaway.fpi script uses "RETURN", it will go back to using the shootbadguy.fpi script.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 17th Nov 2008 20:52
more and more I want to use Ply's mod, but for the big puzzle compo, I can't have a modded version of FPSC.

Login to post a reply

Server time is: 2024-11-24 16:24:12
Your offset time is: 2024-11-24 16:24:12