• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Campaign Mission Choice Question

Status
Not open for further replies.
Level 12
Joined
Jun 10, 2008
Messages
1,043
If you have a campaign mission - after which you can choose between 3 missions that will be set next (but you evenually have to do them all), how would you do it in GUI?

The problem I can't figure out is to keep track of which missions you've already done. For example, if you beat mission A and choose to do Mission C, the options at the end of mission C should not be A and B, but just B. On the other hand, if you choose Mission C first, it should be both A and B. Anybody know how to do this?
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
In map init, you set all missions to a boolean variable.

Once you complete a mission, you set its variable to ''true''.

When you get the option to pick one of the other missions, you just put an ''if, then, else, multiple actions'' action that checks for each completed mission.

For example:
If - ''Boolean_MissionA_Completed'' is false.
Then - Allow player to pick mission A.
Else - Do not allow player to pick mission A.

Etc.
 
Status
Not open for further replies.
Top