scripting problems

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
balor13
Posts: 40
Joined: Thu Feb 17, 2011 1:30 pm

scripting problems

Post 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
balor13
Posts: 40
Joined: Thu Feb 17, 2011 1:30 pm

Re: scripting problems

Post by balor13 »

PLEASE HELP ME.
vinylrake
Posts: 3591
Joined: Wed Apr 07, 2004 12:52 pm
Location: here
Contact:

Re: scripting problems

Post by vinylrake »

be patient young grasshopper, not everyone is monitoring the forums 24 hours a day.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Re: scripting problems

Post 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?
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Re: scripting problems

Post 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.
Graydon
Posts: 1605
Joined: Sun Mar 21, 2004 5:10 pm

Re: scripting problems

Post 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.
Image
Post Reply