Win condition

Post Reply
GP71-PG-
Squad Member
Squad Member
Posts: 4
Joined: Sat Jul 03, 2021 8:09 pm

Win condition

Post by GP71-PG- »

I decided to get back in to map making. But after I completed a few maps and started testing I have come to discover that the maps I made in Nile. Everything works except the win condition. Not sure how to write that so it works in BO mod DFX2
Image
User avatar
Bubbachuk-PG-
Site Admin
Site Admin
Posts: 4914
Joined: Sun May 16, 2010 1:59 pm
Location: Marshville, North Carolina
Contact:

Re: Win condition

Post by Bubbachuk-PG- »

It works the same as any other objective. Set up your events with the objectives (Subgoals)
Set up an Event with a "Show Win Subgoal" (Objective) i.e. destroy crates, destroy mercenaries, etc.
When the subgoal is completed, set up another event showing that the objective has been completed, "Win Subgoal"
Repeat this until you have all your events set up with objectives shown & completed.
Once all objectives are completed, the last event would include "Win Blue".

We have a system in place where players can't advance to the next objective until all preceding objectives have been completed. We call it "Stacking" the objectives. Without this, a player can bypass all objectives to get to the last on, complete that objective, and win the game. This same stacking procedure also requires all objectives be completed before the game will end.

Hope this helps you. CJ will probably have some input for you too.
Image
Image

The democracy will cease to exist when you take away from those who
are willing to work and give to those who would not.
~ Thomas Jefferson

Website: http://pgsquad.com
Facebook: https://www.facebook.com/oliver.holmes.357
User avatar
Red Dog-PG-
Squad Member
Squad Member
Posts: 1005
Joined: Thu Jan 10, 2013 1:21 pm

Re: Win condition

Post by Red Dog-PG- »

To end a game using the WAC script: if never() then win(1) endif

I use a oil barrel and set it to indestructible and bury it 300 meters under ground.
Then in events, I stack up all the events that pertain to accomplishing all mission goals.

IF:
If event 1 has been triggered
if event 2 has been triggered
if event 3 has been triggered.......... and so on

THEN:
kill ssn (12) (the Oil Barrel)
__________________________________________________

The WAC script:
if ssndead(12) and never() then
consol("All Mission Goals Completed")
consol("Good work Men!") endif

if chain(10) then win(1) endif //sets a 10 second delay before the game ends
Image

Image

Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
Post Reply