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 / Runfpi= Question

Author
Message
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 4th Jun 2011 06:36 Edited at: 4th Jun 2011 07:13
When you run a fpi in the middle of a script with the "runfpi=" does the current script end or continue?
Also, would it go like this:


Thanks.


Cheers.

EDIT:
Never mind. I got it to work.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 5th Jun 2011 01:36
This is why people ask so many questions when they can't find the information they search for. A new user wants to learn about the runfpi command, puts it in the search field, sees that your thread appears in the list, and they get:

Quote: "EDIT:
Never mind. I got it to work.
"


Let's try to be a bit more helpful to those that will be joining and learning after us. What did you find out? Did the original script end, or continue to run as the other script was called upon?

- BlackFox

The function of good software is to make the complex appear to be simple.
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 5th Jun 2011 05:22
@BlackFox
Yeah sorry about that.

It seems that the only way for it to end is to put a "state=X" to a number that doesn't exist in the script already.
Trying to run 2 scripts at a time though is really frustrating, because the 2 can cause each other to malfunction.


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Jun 2011 06:26 Edited at: 5th Jun 2011 06:40
Quote: "When you run a fpi in the middle of a script with the "runfpi=" does the current script end or continue?"

If memory serves, the current script stops running when you use that runfpi=x action.
This is because any one entity can only run one script at a time, so that action simply reassigns the script that the entity is using.
So the old one stops running when the new one starts.


Quote: "Trying to run 2 scripts at a time though is really frustrating, because the 2 can cause each other to malfunction."

activated=1

OR

activated=31

Don't forget you can activate targets and then their scripts can act accordingly to the activation.

That is how I do it, so if I activate a target to a specific number like 69 then the target can have a stateless condition checking for that, like...

:activated=69:activate=0,state=20

Note that I reset the entity's activation so I do not get stuck in a loop.
Anyway, that is how I use two script to work together without conflict, because either can call the other entity as a target and trigger it for any number of actions.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 5th Jun 2011 06:39
@Conjured Entertainment
I tried the exact same thing but with vars and the character just stood there as if it didn't know what to do... I'll see if activated works better.


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators

Login to post a reply

Server time is: 2024-11-24 08:23:37
Your offset time is: 2024-11-24 08:23:37