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 / Question on scripting

Author
Message
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 2nd Nov 2008 08:19
I was having a think today and I have a great idea for a game, but I need to know if something like this would be possible. Basically, when an object (such as a chair) is destroyed, a fire decal appears, and a character is spawned. Can anyone point me in the right direction on which commands will need to be used?

Thanks

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Nov 2008 12:41
rundecal
activateifused


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.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 5th Nov 2008 13:43
Thanks Plystire, i'll see what i can do

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 5th Nov 2008 13:58 Edited at: 5th Nov 2008 13:59
Great, I got it working. Buttt the decal doesn't run, as I don't know how to tell the script which decal to run. Here's what I've written so far:

;Header
desc = Runs Decal Loop

;Triggers
:state=0:activateifused=1,sound=$0,state=1
:state=1:rundecal=2,state=1


;End of Script

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Nov 2008 01:59 Edited at: 6th Nov 2008 01:59
The decal to be used needs to be specified in the entity's FPE file. Look into the FPE file for the Teleporter entity to see how it's done.


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.

Login to post a reply

Server time is: 2024-11-24 14:09:29
Your offset time is: 2024-11-24 14:09:29