SHARE
TWEET

Untitled

a guest Aug 12th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Patch name="Support Rewrite (Physical)">
  2.     <Description>Rewrite of the Physical Support routines courtesy of Emmy. All variables are divided by 128.&#13;&#10;Two Swords and Two Hands can both trigger off of Weapon Ranged abilities.</Description>
  3.    
  4.     <Variable name="Two Hands" file="BATTLE_BIN" offset="11F094" default="0100" bytes="2" />
  5.     <Variable name="Attack Up" file="BATTLE_BIN" offset="11F0BC" default="00A0" bytes="2" />
  6.     <Variable name="Martial Arts" file="BATTLE_BIN" offset="11F0EC" default="00C0" bytes="2" />
  7.     <Variable name="Two Swords" file="BATTLE_BIN" offset="11F120" default="0096" bytes="2" />
  8.     <Location file="BATTLE_BIN" offset="11F054">
  9.         19800A3C
  10.         FF384391<!-- Load Weapon Traits -->
  11.         E8FFBD27
  12.         1000BFAF
  13.         D9384491<!-- Load Two Hand Flag -->
  14.         CE384995<!-- Load XA -->
  15.         942D4B8D<!-- Load Attacker Stats -->
  16.         01006230
  17.         0C004014<!-- Skip if Forced Two Handed -->
  18.         04006230
  19.         0A004010<!-- Skip if two hands not enabled -->
  20.         00000000
  21.         5B18060C<!-- Check Ability Two Handed -->
  22.         00000000
  23.         06004010<!-- Branch if Ability cannot use two hands -->
  24.         00000000
  25.     </Location>
  26.     <Location file="BATTLE_BIN" offset="11F096">
  27.         0234<!-- Set variable -->
  28.         18004900<!-- XA * Variable -->
  29.         12100000
  30.         C2110200<!-- XA * Variable / 128 -->
  31.         CE3842A5<!-- Store new XA -->
  32.         90006291<!-- Load Support Set -->
  33.         CE384995<!-- Load XA -->
  34.         10004230
  35.         06004010<!-- Branch if Attack Up is not active -->
  36.         00000000
  37.     </Location>
  38.     <Location file="BATTLE_BIN" offset="11F0BE">
  39.         0234<!-- Set variable -->
  40.         18004900<!-- XA * Variable -->
  41.         12100000
  42.         C2110200<!-- XA * Variable / 128 -->
  43.         CE3842A5<!-- Store new XA -->
  44.         D8384391<!-- Load Used Weapon ID -->
  45.         91006291<!-- Load Support Set -->
  46.         09006014<!-- Branch if item is equipped -->
  47.         20004230
  48.         07004010<!-- Branch if Martial Arts is not active -->
  49.         00000000
  50.         CE384995<!-- Load XA -->
  51.     </Location>
  52.     <Location file="BATTLE_BIN" offset="11F0EE">
  53.         0234<!-- Set variable -->
  54.         18004900<!-- XA * Variable -->
  55.         12100000
  56.         C2110200<!-- XA * Variable / 128 -->
  57.         CE3842A5<!-- Store new XA -->
  58.         91006291<!-- Load Support Set -->
  59.         F3384391<!-- Load Ability Flags -->
  60.         01004230
  61.         09004010<!-- Branch if Two Swords not active -->
  62.         20006330
  63.         07006010<!-- Branch if Ability is not using Weapon Range -->
  64.         00000000
  65.         CE384995<!-- Load XA -->
  66.     </Location>
  67.     <Location file="BATTLE_BIN" offset="11F122">
  68.         0234<!-- Set variable -->
  69.         18004900<!-- XA * Variable -->
  70.         12100000
  71.         C2110200<!-- XA * Variable / 128 -->
  72.         CE3842A5<!-- Store new XA -->
  73.         1000BF8F
  74.         1800BD27
  75.         0800E003
  76.         00000000
  77.         00000000
  78.         00000000
  79.         E8FFBD27
  80.         1000BFAF
  81.         1518060C
  82.         00000000
  83.         1000BF8F
  84.         1800BD27
  85.         0800E003
  86.         00000000
  87.         1D008014<!-- Branch if two hands already determined to be active -->
  88.         01000224
  89.         91006291<!-- Load Support Set -->
  90.         1D006491<!-- Load Right Hand Weapon -->
  91.         02004230
  92.         18004010
  93.         00000000
  94.         FF000334
  95.         07008314<!-- Branch if carrying a weapon -->
  96.         00000000
  97.         1E006491<!-- Load Right Hand Shield -->
  98.         00000000
  99.         03008314
  100.         00000000
  101.         73180608<!-- jump to check ability weapon range -->
  102.         00000000
  103.         1F006491<!-- Load Left Hand Weapon -->
  104.         00000000
  105.         0B008314<!-- Branch to end if carrying an item -->
  106.         21100000<!-- clear r2 -->
  107.         20006491<!-- Load Left Hand Shield -->
  108.         00000000
  109.         07008314<!-- Branch to end if carrying an item -->
  110.         21100000<!-- Clear r2 -->
  111.         F3384391<!-- Load Ability Flags -->
  112.         00000000
  113.         20006330
  114.         02006010<!-- Branch if Ability is not flagged for Weapon Range -->
  115.         21100000
  116.         01000224<!-- Pass following check -->
  117.         0800E003
  118.         00000000
  119.     </Location>
  120. </Patch>
RAW Paste Data
Top