Page 1 of 1

scripting problems

Posted: Fri Feb 18, 2011 9:24 am
by balor13
I have trouble in scripting getting the player to lose cause when he does nothing happens
I have tried dark victory flag I have tried dark victory with failure flag I have also tried plain old failure and light victory with failure
p.s. all the time I use failure in the third box I have tried all the combonations with true and false in the third box

Re: scripting problems

Posted: Fri Feb 18, 2011 12:36 pm
by balor13
PLEASE HELP ME.

Re: scripting problems

Posted: Fri Feb 18, 2011 1:24 pm
by vinylrake
be patient young grasshopper, not everyone is monitoring the forums 24 hours a day.

Re: scripting problems

Posted: Fri Feb 18, 2011 1:57 pm
by A-Red
All you need is the dark victory flag. Don't use the failure flag--that is used to send the player to a secret level. Make sure you're activating the endgame action?

Re: scripting problems

Posted: Fri Feb 18, 2011 2:42 pm
by Pyro
vinylrake wrote:be patient young grasshopper, not everyone is monitoring the forums 24 hours a day.

And the few people that might are pretending like they aren't.


To add to what A-Red has said. You need to trigger that map action. For example, if you have a Test Unit action marked as "Initially Active" that tests to see if all of the player units are dead would be one action you could use. When it succeeds it triggers the Endgame action for a "dark victory". Technically you don't even need the Dark Victory Flag because the action assumes that unless the Light Victory Flag is placed.

Actions don't just activate themselves, they need to be activated by others. Only actions with "Initially Active" will active when the map loads. Those are the ones that start the script going and eventually activate others.

Re: scripting problems

Posted: Fri Feb 18, 2011 6:22 pm
by Graydon
A good piece of advice would be to open up some bungie maps and read their scripting to see how they've set certain sequences of things up.

You should also read through Ares and A-Reds scripting tutorials. Both available on the tain.