BlackSun 0 Posted December 20, 2016 (edited) Hi! I started doing a XVM config to show the turret damage (like with the vehicle info mod when you mouseover a tank) above everyone's head in the marker to see how scary someone is.However I quickly ran into a problem: I have no idea how macros work in XVM and if it is even possible to do it. I know that I can do simple check like {{vehicle=something?yes|no}}, but: Is there a way to get which turret he has? Is it possible to do lesser-greater check? {{level<5?yes|no}} Is it possible to get my vehicle tier to compare to the marker vehicle? {{level<{{mylevel}}?yes|no}} Is it possible to do basic math inside a macro? {{level<{{mylevel}}-2?yes|no}} Only these macros are available? https://github.com/xergio/xvm/blob/master/doc/macros.txt Tried to search those, but didn't really find any information, Thank you! Edited December 20, 2016 by BlackSun Quote Share this post Link to post Short link Share on other sites
konrad509 445 #370828 Posted December 20, 2016 (edited) That's some old list. Go to https://bitbucket.org/XVM/xvm/src/a2baa8a7cc59323285e19f997d4c268aca275008/release/doc/?at=default or on your PC to res_mods\mods\shared_resources\xvm\doc to find up-to-date list of available macros. 1. The {{turret}} macro. 2. Yes. 3. Not sure what you want to compare. 4. No. Use Python macros for this. Edited December 20, 2016 by konrad509 Quote Share this post Link to post Short link Share on other sites
BlackSun 0 #370830 Posted December 20, 2016 (edited) That's some old list. Go to https://bitbucket.org/XVM/xvm/src/a2baa8a7cc59323285e19f997d4c268aca275008/release/doc/?at=default or on your PC to res_mods\mods\shared_resources\xvm\doc to find up-to-date list of available macros. oh, thank you very much!! edit: it seems like {{turret}} shows only if it's the stock turret or not, some vehicle has more than 2 turrets, so I cannot use that to decide which turret they use (to show the correct alpha dmg they have) edit2: I'm done with it, used the python macro and it was easy, thanks for the help (again)! Edited December 21, 2016 by BlackSun Quote Share this post Link to post Short link Share on other sites