Skip to content

Current questions and answers regarding the map editor.

#4854
Auto-translated
inQizitOr
Can I use this variable, for example, to create a reputation system? For instance, in the first mission of the campaign, the player chooses to side with the Bone Dragons instead of the Twilight Dragons, and in the second mission, the Bone Dragons will come to our aid, or vice versa – the Twilight Dragons, depending on the player's choice?

Yes, after completing the mission, use SetGameVar("name", "value" (a number, I think)), and in the next mission: if GetGameVar("that name") == value then...