Page 1 of 1

Win condition

Posted: Thu Dec 09, 2021 7:15 pm
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

Re: Win condition

Posted: Sat Dec 11, 2021 7:09 pm
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.

Re: Win condition

Posted: Mon Jan 03, 2022 11:08 am
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