This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ///////////////////////////////////////////////// | |
| /***********************************************/ | |
| var BloodAndHonor = { | |
| author: { | |
| name: "John C." || "Echo" || "SplenectomY", | |
| company: "Team Asshat" || "The Alehounds", | |
| contact: "[email protected]", | |
| }, | |
| version: "0.8", | |
| gist: "https://gist.github.com/SplenectomY/097dac3e427ec50f32c9", | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | LogPlatformFile: Not using cached read wrapper | |
| LogInit:Display: RandInit(-2051586448) SRandInit(-2051586445). | |
| LogTaskGraph: Started task graph with 4 named threads and 9 total threads. | |
| LogStats: Stats thread started at 0.315340 | |
| LogInit: Version: 4.11.1-2934540+++UE4+Release-4.11 | |
| LogInit: API Version: 2927265 | |
| LogInit: Compiled (64-bit): Apr 6 2016 02:14:16 | |
| LogInit: Compiled with Visual C++: 19.00.23026.00 | |
| LogInit: Build Configuration: Development | |
| LogInit: Branch Name: ++UE4+Release-4.11 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <fieldset class="repeating_test"> | |
| <input type="text" name="attr_foo" /> | |
| </fieldset> | |
| <script type="text/worker"> | |
| on("change:repeating_test", function() { | |
| log("Heard repeating test change"); | |
| }); | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CLICKED | |
| compiled.js:29153 Updating character sheet values | |
| compiled.js:29155 Really updating character sheet values | |
| compiled.js:29257 Setting up repeating sections took until 8ms | |
| compiled.js:29311 Finding list of dirty attributes took until 9ms | |
| VM45:1543 TRACE:updateAbility ability:STR | |
| compiled.js:29320 Querytest took until 10ms | |
| compiled.js:29463 Set values took until 15ms | |
| compiled.js:29474 Took 19ms | |
| compiled.js:29153 Updating character sheet values | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <div class="compendium-drop-target"> | |
| <input type="hidden" name="attr_ImportedComponents" accept="Components" /> | |
| <input type="checkbox" value="1" name="attr_ComponentV" /> V | |
| </div> | |
| <script type="text/worker"> | |
| on("change:ImportedComponents", function() { | |
| getAttrs(["ImportedComponents"], function(data) { | |
| var splitComponents = data.ImportedComponents.split(" "); | |
| var attrsToSet = {}; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Test: <input type="text" name="attr_Test" /><br /> | |
| test: <input type="text" name="attr_test" /><br /> | |
| TEST: <input type="text" name="attr_TEST" /><br /> | |
| <hr /> | |
| SheetWorker: <input type="text" name="attr_SheetWorker" style="pointer-events: none;" /><br /> | |
| SHEETWORKER: <input type="text" name="attr_SHEETWORKER" style="pointer-events: none;" /> | |
| <script type="text/worker"> | |
| on("change:test", function() { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <input name="attr_repeating_test_0_field" type="text" /> | |
| <fieldset class="repeating_inventory"> | |
| <table> | |
| <tr border="1"> | |
| <td><input type="text" style="width:50px" name="attr_weight" value="0" title="item's weight" /></td> | |
| </tr> | |
| </table> | |
| </fieldset> | |
| <script type="text/worker"> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // define a function that increments a counter in a loop | |
| function closureExample() { | |
| var i = 0; | |
| for (i = 0; i< 3 ;i++) { | |
| setTimeout(function() { | |
| console.log('counter value is ' + i); | |
| }, 1000); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //TO USE THIS: | |
| // To make an initiative roll, have the player do their normal intiiative roll, and add "!init" on the end. For example | |
| // /roll 3d6+5 !init | |
| // This will show the roll like normal, plus auto-add turns to the turn tracker for them for each multiple of 7. | |
| // | |
| // The GM can also easy clear the turn tracker by doing: | |
| // !clearinit | |
| // | |
| on("chat:message", function(op) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var timeoutRef = new Firebase(window.FIREBASE_ROOT + window.campaign_storage_path + "/players/" + window.currentPlayer.id + "/lastActive"); | |
| var timeoutTimeout; | |
| var timeoutRefTimedOut = false; | |
| $connerror = $("#connectionerror"); | |
| var notifyInterrupted = function() { | |
| console.log("Timeout ref showed error!"); | |
| timeoutRefTimedOut = true; | |
| $connerror.show(); |