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 / How to trigger after monster/entity is killed?

Author
Message
NeonGames
15
Years of Service
User Offline
Joined: 8th Jul 2009
Location:
Posted: 12th Jul 2009 02:52
How can I trigger a door to be unlocked or something after you kill 5 or 6 monsters/entities?
Wiseberry12851
15
Years of Service
User Offline
Joined: 2nd Jun 2009
Location: Some Parallel Universe
Posted: 13th Jul 2009 00:04
That's Fairly Easy

1 Monster is quite easy but 5 or 6 is just slightly harder not very much

Each Monster is assigned the old script I made ages ago and probably dozens of other people

To be used in the destroy script below Main
:state=0:state=1,settargetname=TargetDoor
:state=1:activatetarget=1,destroy

Now the difficult part comes in below, The first part requires 5 activations, which are your 5 enemies dying afterwards it functions like an Automatic Door

:state=0,activated=1:state=1,activate=0
:state=1,activated=1:state=2,activate=0
:state=2,activated=1:state=3,activate=0
:state=3,activated=1:state=4,activate=0
:state=4,activated=1:state=5,activate=0

:state=5,anywithin=75:state=6,setframe=0,sound=$0
:state=6:incframe=0
:state=6,frameatend=0:state=7,coloff
:state=7,anyfurther=100:state=8,sound=$1,colon
:state=8:decframe=0
:state=8,frameatstart=0:state=5,setframe=0

Just Make sure you name the door TargetDoor or frankly you can change the target name above just make sure the door is named the same

---------------------------------------
Advanced Licensed Computer Programmer and Custom Programming Language Interfacing. Graphics / Video Designer.
NeonGames
15
Years of Service
User Offline
Joined: 8th Jul 2009
Location:
Posted: 13th Jul 2009 04:42
Thank you so much! (I love how the community can help you if your stumped )

Login to post a reply

Server time is: 2024-11-25 03:56:41
Your offset time is: 2024-11-25 03:56:41