Okxa 1 Posted November 21, 2016 Is it possible to for example, make {{v.nation}} output country codes by doing something like this: "vnation": { "germany": "GER", "uk": "GBR", "usa": "USA", "ussr": "USSR", "japan": "JPN", "france": "FR", "czech": "CSHH", "china": "CHN" }, Is there anyway to do something like this? Quote Share this post Link to post Short link Share on other sites
Kapany3uk 948 #366650 Posted November 21, 2016 Is there anyway to do something like this? yes. you can use custom macros {{.}} for example, based on your post {{.vnation.{{v.nation}}}} and you must to insert section with your custom macros in @xvm.xc Quote Share this post Link to post Short link Share on other sites
Okxa 1 #366652 Posted November 21, 2016 (edited) and you must to insert section with your custom macros in @xvm.xc How do I insert them there? I can't get it to work with the following: EDIT: NVM it works @xvm.xc: // The minimum required version of the XVM mod. "modMinVersion": "6.4.1.1" }, "vnation": { "germany": "GER", "uk": "GBR", "usa": "USA", "ussr": "USSR", "japan": "JPN", "france": "FRA", "czech": "CSHH", "china": "CHN" }, // Parameters for login screen. "login": ${"login.xc":"login"}, Edited November 21, 2016 by Okxa Quote Share this post Link to post Short link Share on other sites
konrad509 445 #366684 Posted November 21, 2016 It doesn't necessarily need to be in @xvm.xc. Quote Share this post Link to post Short link Share on other sites