User Tools

Site Tools


macros:example:ratemasters

Example

Masters - Rate Master Functions

by: Alex del Bondio
published: April 2019
description: Macros for rate masters.
remarks: This is based on the fixed Titan IDs which we found exactly for these macros.

functions

The Titan IDs have slightly changed from v10 to v11 see titanId, and while the mentioned reserved IDs are a good starting point, there is no guarantee they haven't changed in your show. If these macros do not work for you then try to find the Titan IDs of your masters and adjust the macros accordingly.

Code

These are examples for Rate Master 1. For other Rate Masters (including Rate Grand Master) please refer to the Titan IDs mentioned above

ratemaster.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
  <macro id="Macros.Ratemaster1.full" name="Set Ratemaster 1 to full">
    <sequence>
      <step>Masters.SetMaster(1613, 1)</step>
    </sequence>
  </macro>
 
  <macro id="Macros.Ratemaster1.50" name="Set Ratemaster 1 to 50%">
    <sequence>
      <step>Masters.SetMaster(1613, 0.5)</step>
    </sequence>
  </macro>
 
  <macro id="Macros.Ratemaster1.zero" name="Set Ratemaster 1 to 0">
    <sequence>
      <step>Masters.SetMaster(1613, 0)</step>
    </sequence>
  </macro>  
 
  <macro id="Macros.Ratemaster1.Freeze" name="Set Ratemaster 1 to 0 (temp.)">
    <sequence>
      <step>Masters.DeadBlackOut(1613)</step>
    </sequence>
  </macro>
 
  <macro id="Macros.Ratemaster1.UnFreeze" name="Set Ratemaster 1 to previous value">
    <sequence>
      <step>Masters.ClearFlash(1613)</step>
    </sequence>
  </macro>
 
  <macro id="Macros.Ratemaster1.NudgeUp" name="Increase Ratemaster 1 by +10%">
    <sequence>
      <step>Masters.NudgeUp(1613)</step>
    </sequence>
  </macro>
 
  <macro id="Macros.Ratemaster1.NudgeDown" name="Decrease Ratemaster 1 by 10%">
    <sequence>
      <step>Masters.NudgeDown(1613)</step>
    </sequence>
  </macro>
 
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

How to use it

  1. apply when needed (you'll see the results when you have the relevant master assigned)
You could leave a comment if you were logged in.
macros/example/ratemasters.txt · Last modified: 2019/05/03 16:12 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki