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 / players with more than one script

Author
Message
jono gamer
12
Years of Service
User Offline
Joined: 29th Oct 2012
Location: check your closest
Posted: 12th Sep 2013 21:32
i am making a game and i have a thug talker who greets you and asks you to collect an item for him so his main script is behaviours\greet player.fpi but i want him to dissapear as soon as i collect his item but that is another script.
what i want to know is can you have 2 scripts or merge to scripts fpr 1 npc
thanks in advance

living a sweet death
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 13th Sep 2013 22:46
Hi jono gamer
Quote: "can you have 2 scripts or merge two scripts"

If I understand you correctly, short answer is "yes". One can "merge" the actions of two scripts into "one" but usually needs be rewritten. You can not just "copy & paste" the two together. A lot of times it just wont work. Are they "stock" scripts?
jono gamer
12
Years of Service
User Offline
Joined: 29th Oct 2012
Location: check your closest
Posted: 15th Sep 2013 11:08
yes it is the stock thug talker script but the dissapear script is off the forum

living a sweet death
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 15th Sep 2013 19:22
ok jono gamer
Quote: "it is the stock thug talker script "

I have a feeling it is the "greet player" script??
Also the "disappear" script, they usually go into the "destroy" properties of a character. Are you trying to "merge" these two scripts? Do you want the character to just "disappear" after talking
jono gamer
12
Years of Service
User Offline
Joined: 29th Oct 2012
Location: check your closest
Posted: 16th Sep 2013 00:19
I want to talk to him and wen I go yo do his job 4 him I wlk thru a trigger zone and he dissapears

living a sweet death
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 16th Sep 2013 17:40
Hi jono gamer
Destroying an entity/character with a trigger zone has been done many times. A quick search at the bottom will yield many results on this subject. Here is a quick one....http://forum.thegamecreators.com/?m=forum_view&t=206051&b=23
But remember, this is just basic destroy an entity" script.
You will have to apply it to your characters "main AI" script.
best

Login to post a reply

Server time is: 2024-11-23 10:55:02
Your offset time is: 2024-11-23 10:55:02