- Joined
- Jan 14, 2014
- Messages
- 567
Hey y'all. As some of you may know, I'm working on a "fully functional" Diablo Map, called The Darkening of Tristram.
I came across with a problem that perhaps need help or some greater attention from me.
I intend to make a For Loop Trigger that detects the Weapon Type I'm currently using, then the Hero can have its Attack Damage modified. I want the modification of the damage to work like this:
Minimum Damage: Number of Dices (Swords_MinDmg[])
Maximum Damage: Number of Dices * Sides per Dice (Swords_MaxDmg[])
"Base" Damage: Complement + Formula (Swords_BaseDmgMightDmg[0])
Formula: Percentage of Might Attribute
Note: The Complement number is to make the damage numbers from Diablo Weapons correct, check the Bastard Sword as an example.
SETUP:
TRIGGER:
Using the Short Sword weapon as base, if the Trigger worked correctly, the Attack Damage shown was supposed to be:
Minimum Damage: 2
Maximum Damage: 3
"Base" Damage: 0 + 15
Formula: 0.60 x 25 (base Might)
Total Damage: 15 + (2 - 6) = 17 - 21
But this is what I get when testing it ingame. Some of you may think: "Well, perhaps you just didn't set the Attack Index correctly, or you didn't enabled any Attack mode."
But the Hero Type and the Attack Index (Attacks Enabled) were both correct. I guess, the greatest proof will be shown below when I'll use numbers to make the damage modification.
If the trigger is wrong, I guess that the result will be the same as when using the Variables instead of Numbers.
BUT this time worked because I used numbers. I guess the trigger isn't wrong at all, perhaps the system doesn't accept to change the Base, Number of Dices and Sides per Dice using variables. Just like the Game Interface doesn't accept commas when writing.
And that's the help I want and need. If the trigger is wrong because it's not showing the damage number, I would like to know how to correct it. If the system simply doesn't accept some changes by using variable, I'll have to think how to make this work.
That's all for now. Sorry for the long read.
I came across with a problem that perhaps need help or some greater attention from me.
I intend to make a For Loop Trigger that detects the Weapon Type I'm currently using, then the Hero can have its Attack Damage modified. I want the modification of the damage to work like this:
Minimum Damage: Number of Dices (Swords_MinDmg[])
Maximum Damage: Number of Dices * Sides per Dice (Swords_MaxDmg[])
"Base" Damage: Complement + Formula (Swords_BaseDmgMightDmg[0])
Formula: Percentage of Might Attribute
Note: The Complement number is to make the damage numbers from Diablo Weapons correct, check the Bastard Sword as an example.
SETUP:
TRIGGER:
Using the Short Sword weapon as base, if the Trigger worked correctly, the Attack Damage shown was supposed to be:
Minimum Damage: 2
Maximum Damage: 3
"Base" Damage: 0 + 15
Formula: 0.60 x 25 (base Might)
Total Damage: 15 + (2 - 6) = 17 - 21
But this is what I get when testing it ingame. Some of you may think: "Well, perhaps you just didn't set the Attack Index correctly, or you didn't enabled any Attack mode."
But the Hero Type and the Attack Index (Attacks Enabled) were both correct. I guess, the greatest proof will be shown below when I'll use numbers to make the damage modification.
If the trigger is wrong, I guess that the result will be the same as when using the Variables instead of Numbers.
BUT this time worked because I used numbers. I guess the trigger isn't wrong at all, perhaps the system doesn't accept to change the Base, Number of Dices and Sides per Dice using variables. Just like the Game Interface doesn't accept commas when writing.
And that's the help I want and need. If the trigger is wrong because it's not showing the damage number, I would like to know how to correct it. If the system simply doesn't accept some changes by using variable, I'll have to think how to make this work.
That's all for now. Sorry for the long read.