Jump to: navigation, search

Difference between revisions of "Attack"

 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
  
=====Attack.Full(defenderIsPlayer As Boolean, attackerIsPlayer As Boolean, defenderID As Integer, attackerID As Integer, AttackMessageToModify As String, DefendMessageToModify As String, OtherMessageToModify As String, damageExtra As Integer, damageMultiplier As Double, attackDodgeModifier As Double, defenderDodgeModifier As Double) As Integer=====
+
=====Attack.Full(defenderIsPlayer As Boolean, attackerIsPlayer As Boolean, defenderID As Integer, attackerID As Integer, AttackMessageToModify As String, DefendMessageToModify As String, OtherMessageToModify As String, Optional damageExtra As Integer = 0, Optional damageMultiplier As Double = 1.0, Optional attackDodgeModifier As Double = 1.0, Optional defenderDodgeModifier As Double = 1.0, Optional defenderArmorModifier As Double = 1.0, Optional defenderPassiveArmorModifier As Double = 1.0, Optional attackType As Short = 0) As Integer=====
 
*Description=''  ''
 
*Description=''  ''
 
;'''Values'''
 
;'''Values'''
Line 16: Line 16:
 
:* attackDodgeModifier=''  ''
 
:* attackDodgeModifier=''  ''
 
:* defenderDodgeModifier=''  ''
 
:* defenderDodgeModifier=''  ''
 +
:* defenderArmorModifier=''  ''
 +
:* defenderPassiveArmorModifier=''  ''
 +
:* attackType=''  ''
 
*Returns=''  ''
 
*Returns=''  ''
 
*Example=''Attack.Full(  )''
 
*Example=''Attack.Full(  )''
 
  
 
=====Attack.FullPower(AttackerStrength As Integer, AttackerLevel As Integer, Enchantment As Integer, DamageMin As Integer, DamageMax As Integer, Modifier As Integer) As Integer=====
 
=====Attack.FullPower(AttackerStrength As Integer, AttackerLevel As Integer, Enchantment As Integer, DamageMin As Integer, DamageMax As Integer, Modifier As Integer) As Integer=====
Line 54: Line 56:
  
  
=====Attack.Dodge(AttackerAgility As Integer, AttackerLevel As Integer, DefenderAgility As Integer, DefenderLevel As Integer, isPVP As Boolean) As Boolean=====
+
=====Attack.Dodge(AttackerAgility As Double, AttackerAgilityBonus As Double, AttackerMultiplier As Double, AttackerLevel As Integer, DefenderAgility As Double, DefenderAgilityBonus As Double, DefenderMultiplier As Double, DefenderLevel As Integer, dodgeBonus As Double, defenderDodgeBonus As Double, isPVP As Boolean) As Boolean=====
 
*Description=''  ''
 
*Description=''  ''
 
;'''Values'''
 
;'''Values'''
 
:* AttackerAgility=''  ''
 
:* AttackerAgility=''  ''
 +
:* AttackerAgilityBonus=''  ''
 +
:* AttackerMultiplier=''  ''
 
:* AttackerLevel=''  ''
 
:* AttackerLevel=''  ''
 
:* DefenderAgility=''  ''
 
:* DefenderAgility=''  ''
 +
:* DefenderAgilityBonus=''  ''
 +
:* DefenderMultiplier=''  ''
 
:* DefenderLevel=''  ''
 
:* DefenderLevel=''  ''
 +
:* dodgeBonus=''  ''
 +
:* defenderDodgeBonus=''  ''
 
:* isPVP=''  ''
 
:* isPVP=''  ''
 
*Returns=''  ''
 
*Returns=''  ''
Line 66: Line 74:
  
  
=====Attack.AttackPower(AttackerStrength As Integer, AttackerLevel As Integer, Enchantment As Integer, DamageMin As Integer, DamageMax As Integer, Modifier As Integer) As Integer=====
+
=====Attack.AttackPower(attackerIsPlayer As Boolean, AttackerStrength As Double, AttackerStrengthBonus As Double, AttackerLevel As Integer, Enchantment As Integer, DamageMin As Integer, DamageMax As Integer, Modifier As Double, Multiplier As Double, extraDamage As Integer, defenderArmor As Integer) As Integer=====
 
*Description=''  ''
 
*Description=''  ''
 
;'''Values'''
 
;'''Values'''
 +
:* attackerIsPlayer=''  ''
 
:* AttackerStrength=''  ''
 
:* AttackerStrength=''  ''
 +
:* AttackerStrengthBonus=''  ''
 
:* AttackerLevel=''  ''
 
:* AttackerLevel=''  ''
 
:* Enchantment=''  ''
 
:* Enchantment=''  ''
Line 75: Line 85:
 
:* DamageMax=''  ''
 
:* DamageMax=''  ''
 
:* Modifier=''  ''
 
:* Modifier=''  ''
 +
:* Multiplier=''  ''
 +
:* extraDamage=''  ''
 +
:* defenderArmor=''  ''
 
*Returns=''  ''
 
*Returns=''  ''
 
*Example=''Attack.AttackPower(  )''
 
*Example=''Attack.AttackPower(  )''
Line 99: Line 112:
  
  
=====Attack.DamageReduction(ArmorDefender As Integer, IsShield As Boolean, Optional ArmorMultiplier As Double = 0.1) As Double=====
+
=====Attack.DamageReduction(ArmorDefender As Integer, IsShield As Boolean, Optional ArmorMultiplier As Double = 0.1, Optional ShieldAbsorbPercent As Double = 1) As Double=====
 
*Description=''  ''
 
*Description=''  ''
 
;'''Values'''
 
;'''Values'''
 
:* ArmorDefender=''  ''
 
:* ArmorDefender=''  ''
 
:* IsShield=''  ''
 
:* IsShield=''  ''
:* ArmorMultiplier 0.1=''  ''
+
:* ArmorMultiplier=''  ''
 +
:* ShieldAbsorbPercent=''  ''
 
*Returns=''  ''
 
*Returns=''  ''
 
*Example=''Attack.DamageReduction(  )''
 
*Example=''Attack.DamageReduction(  )''

Latest revision as of 23:33, 18 June 2021

Contents

Attack

Attack.Full(defenderIsPlayer As Boolean, attackerIsPlayer As Boolean, defenderID As Integer, attackerID As Integer, AttackMessageToModify As String, DefendMessageToModify As String, OtherMessageToModify As String, Optional damageExtra As Integer = 0, Optional damageMultiplier As Double = 1.0, Optional attackDodgeModifier As Double = 1.0, Optional defenderDodgeModifier As Double = 1.0, Optional defenderArmorModifier As Double = 1.0, Optional defenderPassiveArmorModifier As Double = 1.0, Optional attackType As Short = 0) As Integer
  • Description=
Values
  • defenderIsPlayer=
  • attackerIsPlayer=
  • defenderID=
  • attackerID=
  • AttackMessageToModify=
  • DefendMessageToModify=
  • OtherMessageToModify=
  • damageExtra=
  • damageMultiplier=
  • attackDodgeModifier=
  • defenderDodgeModifier=
  • defenderArmorModifier=
  • defenderPassiveArmorModifier=
  • attackType=
  • Returns=
  • Example=Attack.Full( )
Attack.FullPower(AttackerStrength As Integer, AttackerLevel As Integer, Enchantment As Integer, DamageMin As Integer, DamageMax As Integer, Modifier As Integer) As Integer
  • Description=
Values
  • AttackerStrength=
  • AttackerLevel=
  • Enchantment=
  • DamageMin=
  • DamageMax=
  • Modifier=
  • Returns=
  • Example=Attack.FullPower( )


Attack.FullPowerReduction(AttackerStrength As Integer, PercentageRemoved As Double) As Integer
  • Description=
Values
  • AttackerStrength=
  • PercentageRemoved=
  • Returns=
  • Example=Attack.FullPowerReduction( )


Attack.FullBonusCalculate(AttackerIsPlayer As Boolean, AttackerIndex As Integer, AttackerStrength As Integer, DefenderIsPlayer As Boolean, DefenderIndex As Integer) As Integer
  • Description=
Values
  • AttackerIsPlayer=
  • AttackerIndex=
  • AttackerStrength=
  • DefenderIsPlayer=
  • DefenderIndex=
  • Returns=
  • Example=Attack.FullBonusCalculate( )


Attack.Dodge(AttackerAgility As Double, AttackerAgilityBonus As Double, AttackerMultiplier As Double, AttackerLevel As Integer, DefenderAgility As Double, DefenderAgilityBonus As Double, DefenderMultiplier As Double, DefenderLevel As Integer, dodgeBonus As Double, defenderDodgeBonus As Double, isPVP As Boolean) As Boolean
  • Description=
Values
  • AttackerAgility=
  • AttackerAgilityBonus=
  • AttackerMultiplier=
  • AttackerLevel=
  • DefenderAgility=
  • DefenderAgilityBonus=
  • DefenderMultiplier=
  • DefenderLevel=
  • dodgeBonus=
  • defenderDodgeBonus=
  • isPVP=
  • Returns=
  • Example=Attack.Dodge( )


Attack.AttackPower(attackerIsPlayer As Boolean, AttackerStrength As Double, AttackerStrengthBonus As Double, AttackerLevel As Integer, Enchantment As Integer, DamageMin As Integer, DamageMax As Integer, Modifier As Double, Multiplier As Double, extraDamage As Integer, defenderArmor As Integer) As Integer
  • Description=
Values
  • attackerIsPlayer=
  • AttackerStrength=
  • AttackerStrengthBonus=
  • AttackerLevel=
  • Enchantment=
  • DamageMin=
  • DamageMax=
  • Modifier=
  • Multiplier=
  • extraDamage=
  • defenderArmor=
  • Returns=
  • Example=Attack.AttackPower( )


Attack.AttackPowerReduction(AttackerStrength As Integer, PercentageRemoved As Double) As Integer
  • Description=
Values
  • AttackerStrength=
  • PercentageRemoved=
  • Returns=
  • Example=Attack.AttackPowerReduction( )


Attack.RawDamageValue(defenderIsPlayer As Boolean, attackerIsPlayer As Boolean, defenderID As Integer, attackerID As Integer) As Integer
  • Description=
Values
  • defenderIsPlayer=
  • attackerIsPlayer=
  • defenderID=
  • attackerID=
  • Returns=
  • Example=Attack.RawDamageValue( )


Attack.DamageReduction(ArmorDefender As Integer, IsShield As Boolean, Optional ArmorMultiplier As Double = 0.1, Optional ShieldAbsorbPercent As Double = 1) As Double
  • Description=
Values
  • ArmorDefender=
  • IsShield=
  • ArmorMultiplier=
  • ShieldAbsorbPercent=
  • Returns=
  • Example=Attack.DamageReduction( )


Attack.Percentage(PercentDamage As Double) As Integer
  • Description=
Values
  • PercentDamage=
  • Returns=
  • Example=Attack.Percentage( )


Attack.AttackPowerReduction(AttackerStrength As Integer, PercentageRemoved As Double) As Integer
  • Description=
Values
  • AttackerStrength=
  • PercentageRemoved=
  • Returns=
  • Example=Attack.AttackPowerReduction( )


Attack.AttackBonusCalculate(AttackerIsPlayer As Boolean, AttackerIndex As Integer, AttackerStrength As Integer, DefenderIsPlayer As Boolean, DefenderIndex As Integer) As Integer
  • Description=
Values
  • AttackerIsPlayer=
  • AttackerIndex=
  • AttackerStrength=
  • DefenderIsPlayer=
  • DefenderIndex=
  • Returns=
  • Example=Attack.AttackBonusCalculate( )


Attack.SelectWeapon(Index As Integer) As Integer
  • Description=
Values
  • Index=
  • Returns=
  • Example=Attack.SelectWeapon( )


Attack.Fizzle(index As Integer, minimumAmount As Double, startAmount As Integer, multiplyIntelligence As Double, spellOrSkill As Integer) As Boolean
  • Description=
Values
  • index=
  • minimumAmount=
  • startAmount=
  • multiplyIntelligence=
  • spellOrSkill=
  • Returns=
  • Example=Attack.Fizzle( )


Attack.Resist(index As Integer, dIndex As Integer, isPlayer As Boolean, dIsPlayer As Boolean, Optional multiplier As Double = 1) As Boolean
  • Description=
Values
  • index=
  • dIndex=
  • isPlayer=
  • dIsPlayer=
  • multiplier 1=
  • Returns=
  • Example=Attack.Resist( )


Attack.SpellNegation(index As Integer, isPlayer As Boolean, damage As Integer) As Integer
  • Description=
Values
  • index=
  • isPlayer=
  • damage=
  • Returns=
  • Example=Attack.SpellNegation( )


Attack.StaffSpellModifier(pID As Integer) As Double()
  • Description=
Values
  • pID=
  • Returns=
  • Example=Attack.StaffSpellModifier( )


Attack.WeaponModifier(pID As Integer) As Double()
  • Description=
Values
  • pID=
  • Returns=
  • Example=Attack.WeaponModifier( )