Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Custom Battle Effect>
- //Initialize all the variables
- user._graspOfTheUndying = user._graspOfTheUndying || 0;
- user._graspStartTimer = user._graspStartTimer || 0;
- user._graspCounter = user._graspCounter || 0;
- var myBaseMaxHealth = user.mhp;
- user._graspOfTheUndying = 0;
- user._graspStartTimer = 0;
- user._graspCounter = 0;
- </Custom Battle Effect>
- <Custom Regenerate Effect>
- if(user._graspStartTimer === 1)
- {
- user._graspOfTheUndying += 1;
- user._graspOfTheUndying = user._graspOfTheUndying.clamp(0, 3);
- user.setStateCounter(stateId, user._graspOfTheUndying);
- }
- </Custom Regenerate Effect>
- <Custom React Effect>
- if(value > 0 && (this.isAttack() || this.isMagical() || this.isPhysical() || this.isCertain()))
- {
- user._graspStartTimer = 1;
- }
- </Custom React Effect>
- <Custom Confirm Effect>
- if(value > 0 && (this.isAttack() || this.isMagical() || this.isPhysical() || this.isCertain()))
- {
- user._graspStartTimer = 1;
- }
- if(value > 0 && user._graspOfTheUndying === 3 && (this.isAttack() || this.isMagical() || this.isPhysical() || this.isCertain()))
- {
- user._graspStartTimer = 0;
- user._graspOfTheUndying = 0;
- user.setStateCounter(stateId, user._graspOfTheUndying);
- //Error here Suppose to Increase MaxHP base on 3% of the original MaxHP
- var bonusHp = Math.floor(myBaseMaxHealth * .03);
- user.addMaxHp(bonusHp);
- var members = user.friendsUnit().aliveMembers();
- var dmg = Math.floor(user.mhp * .1);
- for(var i = 0; i < members.length; ++i)
- {
- var member = members[i];
- if(member)
- {
- member.startAnimation(45);
- //Take Party Member Recovery Amplifier into consideration
- var dmg2 = Math.floor(member.rec * dmg);
- member.gainHp(dmg2);
- member.startDamagePopup();
- member.clearResult();
- }
- }
- }
- </Custom Confirm Effect>
- <Custom Victory Effect>
- user.clearParamPlus();
- </Custom Victory Effect>
- <Custom Defeat Effect>
- user.clearParamPlus()
- </Custom Defeat Effect>
- <Custom Escape Effect>
- user.clearParamPlus()
- </Custom Escape Effect>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement