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 / [Help] How do I do this?

Author
Message
OverBlack
13
Years of Service
User Offline
Joined: 17th Nov 2011
Location:
Posted: 17th Nov 2011 18:07
Hi all! I am new to the forum and could not know where this topic, but I need to ask a question about making a script ...

How do I get a door open when they die X zombies or monsters?

Survival something like a game, to open doors and entrances to kill a certain amount of zombies and then up to a Boss.

OverBlack Design..

Coming Soon...
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 17th Nov 2011 21:02 Edited at: 17th Nov 2011 21:05
hello and welcome
you may want to be a bit more descriptive
with your post title .. may get more help from peps

anyways .. give this a try





this link explians how to use
http://forum.thegamecreators.com/?m=forum_view&t=75003&b=23
hope it helps
M61Vulcan
13
Years of Service
User Offline
Joined: 21st Oct 2011
Location:
Posted: 18th Nov 2011 15:47
The code of Xymore it`s good but I think that is more easy if you use variables!

If you use V1.18 of greater:

Example:

If you want open a door if 5 zombies die;

In a trigger zone this script:

:state=0:dimvar=count001,state=1
:state=1,varequal=count001 5:activateifused=1--This activate and open the door when variable is equal to 5.


Put a Zombie, in character properties--> Destroy script --> you can use this:

:state=0:incvar=count001 1,state=1--When you die a zombie, the count increment one point.


If you use V1.17 or inferior, you can use the same example but use globalvaribles.

Cheers!

Login to post a reply

Server time is: 2024-11-24 03:45:26
Your offset time is: 2024-11-24 03:45:26