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 Product Chat / [Question] How can I do this ?

Author
Message
Bertanx
14
Years of Service
User Offline
Joined: 10th Jan 2012
Location:
Posted: 11th Jan 2012 17:05
Hello everyone, I have created a few maps with this software. However, there is something that I couldn't do, and because of that, I can't continue developing my game.
My problem: I have added some entities using Dark AI to make them as allies and enemies. But just after all the enemies are killed, I want to activate story zone and then immediately win zone. I mean I don't want to place the story zone to a certain place, I want the video I prepared to play just after all the enemies are cleaned up.
How can I do this?
ASTECH
18
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 11th Jan 2012 19:37
You can search the forums with "storyzone" or "story zone" and you might get some answers. It's all just scripting and knowing how
the FPSC works around trigger zones. So far you can't just use a winzone when you want without implementing objectives. That in
itself I found to be finicky. I guess you just have to experiment like I have been or perhaps someone else will have a better answer.

Whoever said that Intel graphics fail, obviously never owned a Core i5.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 11th Jan 2012 20:02
Quote: "But just after all the enemies are killed, I want to activate story zone and then immediately win zone. I mean I don't want to place the story zone to a certain place, I want the video I prepared to play just after all the enemies are cleaned up.
How can I do this? "


There are a variety of methods you can use to achieve this, depending on your map layout. There is a command (video=x") which allows a video to play and you do not need a story zone.

Method 1:

You can use a variable to track how many enemies were killed. When the value is reached to what you want, the video can be played.

Method 2:

If the player is battling enemies down a corridor, you can script the final enemy the player would reach to run the video once it was killed.

There are other methods, some more complex, but that gives you an idea.


Twitter: @NFoxMedia
Bertanx
14
Years of Service
User Offline
Joined: 10th Jan 2012
Location:
Posted: 11th Jan 2012 20:15
Quote: "There are a variety of methods you can use to achieve this, depending on your map layout. There is a command (video=x") which allows a video to play and you do not need a story zone.

Method 1:

You can use a variable to track how many enemies were killed. When the value is reached to what you want, the video can be played.

Method 2:

If the player is battling enemies down a corridor, you can script the final enemy the player would reach to run the video once it was killed.

There are other methods, some more complex, but that gives you an idea."


It is a outdoor war, so I guess I will have to use to first method. But I'm new so I don't know many things, can you explain the first method a bit more detailed
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 11th Jan 2012 23:06
Quote: "It is a outdoor war, so I guess I will have to use to first method. But I'm new so I don't know many things, can you explain the first method a bit more detailed"


Well... what you would do is create the destroy script for the characters to use a variable and increase the value by 1 as each character is destroyed (killed). So I kill one character, that character's destroy script uses the specified variable and adds 1; I kill a second character and that character's destroy script uses that same variable and adds 1 to the vale (would now be 2); and so on.

Then you have a trigger sitting in the map and the script for that trigger checks that variable value- if it equals x, then the video can be played. So using my above example, I kill 2 characters and my trigger script checks the variable value- if i want it to play the video after 2 kills, then it will play. If the value is not 2, then it loops back to the beginning and checks again until that value has been reached and plays the video.

If you want to know about global variables, there is a tutorial here. There is also a short thread here asking about variables.


Twitter: @NFoxMedia

Login to post a reply

Server time is: 2026-07-01 10:46:11
Your offset time is: 2026-07-01 10:46:11